Plan-First Methodology
The Architect Prompt
Stop asking AI to "write the code." The top vibe coding communities — r/vibecoding and r/ChatGPTCoding — have converged on a Plan-First approach: clarify first, architect second, execute third. The result is fewer hallucinations, tighter scope, and code that actually ships.
Why most AI coding sessions fail
When you ask an AI to "build me an invoice app," it hallucinates scope, picks the wrong stack, and produces code you'll delete in 20 minutes. Andrej Karpathy calls the real skill context engineering — filling the AI's context window with exactly the right information at each step. The bottleneck has shifted: clear intent and structured context now matter more than fast typing.
Clarify
Before writing a single line — align intent
Paste this into Claude or Codex with your idea filled in. The AI asks you 5–7 questions before producing anything. This single step eliminates 80% of the hallucinations that kill vibe coding sessions.
Architect
After you answer — generate the technical spec
Once you've answered the clarifying questions, the AI produces a full Technical Specification and a phased MVP Plan. This becomes the shared context for everything that follows.
Create Context File
Before opening your IDE — lock the context
This is the step most vibe coders skip — and why their sessions drift after 30 minutes. Karpathy calls it context engineering: filling the AI's context window with exactly the right information at every step. A context file does that automatically. Start a fresh IDE session for each phase — long threads cause model drift.
ℹ️ AGENTS.md is the 2026 universal standard — supported by Claude Code, Cursor, Windsurf, Sourcegraph Cody, and Google Jules. Use it as-is, or rename for tool-specific compatibility.
⚠️ Start a fresh chat for each phase (SETUP → CORE FEATURES → STRETCH GOALS). Paste the context file every time. Long threads cause model drift — fresh sessions + context file = consistent output.
Execute
In Cursor or Windsurf — one task at a time
One task per prompt — never batch steps. Verify it works before moving on. After each step, run the Critique Loop. This is the quality gate that stops technical debt compounding.
Every idea on this site includes an Architect Prompt
Pre-filled with the idea's tech stack, architecture pattern, per-feature done-when checklist, first-run requirements, V1 scope boundaries, and known pitfalls. One click — paste straight into Claude or Cursor.
Browse ideas and get your prompt →FAQ
How is this different from just asking AI to write the code?
Standard prompts ask the AI to immediately produce code. The Architect Prompt first asks clarifying questions, then produces a structured spec, then creates a context file before the first line is written, then executes one task at a time with a quality gate after each step. It matches how senior engineers actually work.
Which AI tools work best with this methodology?
Steps 1 and 2 work best in Claude or Codex (long context, strong at specs and planning). Step 2.5 generates your AGENTS.md context file (rename to CLAUDE.md for Claude Code, or .cursorrules for Cursor). Step 3 works best in Cursor, Windsurf, or Claude Code where the AI can read and write files directly.
What is AGENTS.md and why use it instead of CLAUDE.md?
AGENTS.md is the 2026 cross-tool standard for AI context files — agreed on by Claude Code, Cursor, Windsurf, Sourcegraph Cody, and Google Jules. Writing your context file as AGENTS.md means it is automatically picked up by any of these tools. CLAUDE.md and .cursorrules are tool-specific alternatives that work identically — just rename the file if your team uses only one tool.
What is context engineering?
A term Andrej Karpathy advocates for — the practice of filling the AI's context window with exactly the right information at each step: the spec, the plan, the constraints, the coding conventions. The context file (Step 2.5) is how you do this systematically across every session.
Why start a fresh session for each phase?
AI models drift in long conversations — they start making assumptions based on earlier context that no longer applies. Starting fresh for SETUP, CORE FEATURES, and STRETCH GOALS, and pasting your context file each time, keeps the model grounded to the plan rather than the thread history.
What is the Critique Loop?
After each build step, you ask the AI to review its own output as a senior engineer doing a PR review — checking for security gaps, performance traps, missing edge cases, test coverage on the happy path, whether the AGENTS.md is still accurate, and anything painful to refactor later. It's the quality gate that stops technical debt from compounding across the build.
Is "Architect Prompt" an official term?
Not formally. The r/vibecoding and r/ChatGPTCoding communities use variations of this pattern under different names — "Plan-First", "context engineering", "Senior Architect Mode". CodingIdeas.ai uses Architect Prompt as the unified label for this 4-step methodology.
Also: AI Coding Best Practices
20 rules for strategic AI development — mindset, prompting, workflow, and when to stop.
Methodology synthesised from r/vibecoding, r/ChatGPTCoding, Andrej Karpathy's context engineering writing, and the Senior Architect Mode prompt pattern from the Windsurf/Cursor community.