Plan Before You Code Prompt
Make the agent read first and write later. Get a step-by-step plan with the files it will touch and the risks, before a single line of code changes.
The prompt
Before writing any code, investigate the codebase and produce a plan for the task below. List the files you read and what you learned, the files you'll change and why, the order of the steps, the risks or unknowns, and how you'll verify the result. Stop after the plan and wait for my approval:
{{task}}Works in ChatGPT, Claude, Gemini and other assistants. Replace the highlighted placeholders with your own content.
How to use it
Put the task at {{task}} and send it to a coding agent that can read your repository. It investigates first and stops at a plan, so you can correct a wrong assumption before any file changes.
Tips for better results
- Read the list of files it plans to touch. A surprise there is the cheapest thing to catch.
- Ask it to explain any step you don’t understand before approving.
- For large tasks, approve the plan in pieces and review after each one.
Save this prompt in Promta
Keep it in your library and paste it from the menu bar, a hotkey or your iPhone keyboard, without leaving the app you're in.
Download Free on App Store
Free to start · iPhone & Mac