> cat ./x_thread.md
[terminal_mode]AI Coding Mastery: The Ultimate Guide for Newbies
Senior developers don't just write code; they orchestrate context. 🎼 The new "Mastery Stack" for AI-first engineering: 1. Cursor (IDE) 2. Kilo Code (Local AI) 3. Claude (Architect) 4. Antigravity (Integration) Here's the 4-phase workflow to 10x your output. 🧵👇 #AI #SoftwareEngineering
Phase 1: Discovery & Context 🕵️♂️ In brownfield projects, "just coding" = regressions. - DON'T touch code yet. - DO prompt for high-level architecture diagrams. - Map service interactions first. Context is king. Give the AI the map before asking for directions. #LegacyCode
Phase 2: Planning Mode 📝 Move from "Builder" to "Architect". - Stop writing code immediately. - Use "Planning Mode" to discuss features and generate a plan. - Verify steps BEFORE generation. Claude 3.5 Opus is your best friend here for complex reasoning. #SystemDesign
Phase 3: Sub-agent Execution 🤖 The Superpower Phase. - Use a mono-repo structure. - Instruct sub-agents to work on multiple services in PARALLEL. - Reduce 3-hour tasks to 3 minutes. This is where the 10x multiplier actually happens. #Productivity
Phase 4: Multi-Threaded Review ⚖️ Trust, but verify with a "Council of AIs": - Claude Opus: Logic & Architecture - Claude Sonnet: Syntax & Standards - Gemini 1.5: Broad Context Synthesize their findings. You are the judge, they are the jury. #CodeReview
Configuration is Key 🔑 Your `.cursorrules` file is your project's constitution. Define: - Stack & Architecture - Coding Standards (Naming, State Mgmt) - Behavioral Rules ("No yapping", "Always plan first") Without rules, you get generated spaghetti. 🍝
Mastery: Green Field vs. Brown Field Green Field 🌱: - Semantic naming for AI retrieval. - Small files (<200 lines) for local context. Brown Field 🍂: - Read before writing (80/20 rule). - Use Kilo Code to learn legacy patterns. - Snapshot functions before refactoring.
The definition of "Senior" is shifting. It's no longer about knowing the syntax by heart. It's about: - Managing context - Orchestrating agents - Verifying architectural intent Read the full guide on my blog: https://nelsonstr.xyz/blog/ai-workflow-mastery