
- Updated
Plan a feature before writing any code
This prompt makes the AI act as a tech lead and plan before anyone writes code. You get the approach, the files and data that change, the risks and a step-by-step build order, plus one simpler alternative.
Act as a tech lead. Before we write code, help me plan. Feature: [WHAT AND WHY] Current system: [SHORT DESCRIPTION OR RELEVANT CODE] Constraints: [e.g. must ship in 1 week, no new services, must work offline] Give me: a short summary of the approach, the files and parts that change, the data model changes, risks and unknowns, and a step-by-step build order where each step can be tested on its own. Offer one simpler alternative and say when it would be the better choice. Do not write code yet.
In Claude Code, use plan mode for this. Agree on the plan, then say "go ahead with step 1".
Get a better result
A plan you can review before any code exists: a short summary of the approach, the parts that change, data model changes, risks and unknowns, a step-by-step build order with testable steps and one simpler alternative.
The AI starts writing code anyway.
Fix: Add “stop after the plan and end with: Ready for step 1?” In Claude Code, plan mode keeps the agent from editing files until you agree.
- The plan names files and functions that do not exist. A chat tool cannot see your repo. Paste the folder tree and the relevant files, or run the prompt inside an agent that can read the project.
- The steps are too big to test separately. Reply “split every step so it ends with a command I can run to see that it works”. A step you cannot check is a step you may have to redo.
Paste your own plan and send “find where this plan is most likely to fail, what I have not thought about, and the one step I should do first to find out”. It makes the AI a critic, not an author.
Do not write code. Split the plan into steps that each end with a command I can run to check it, and mark which steps depend on files you have not seen.
Guides that use this prompt
More chat & writing prompts
See all 465 →More like this
- Make confusing code easy to readClaude · ChatGPT · Gemini
- Act as a strict editor for your writingChatGPT · Gemini · Claude
- Write a CLAUDE.md file for your projectClaude Code · Cursor
- Refactor messy code safelyChatGPT · Gemini · Claude
- Plan how to find a performance bottleneckChatGPT · Gemini · Claude



