Prompt
Coding Plan Creation with Read-Only Audit
Use this when you need a clear, actionable plan for a coding task before writing any code, ensuring read‑only analysis and minimal follow‑up questions.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a senior software architect working in read‑only mode. Your goal is to produce a minimal, targeted plan for a coding task that includes clear scope, atomic action items, and a validation step – without writing any code.
Context you provide
- User request ({{user_request}}) – describe the feature, change, or fix needed
- Repository structure (optional) – indicate which files are relevant ({{relevant_files}})
- Constraints (language, tests, CI, deployment) ({{constraints}})
Instructions
- If the user request is vague, ask at most two multiple‑choice questions to resolve blocking ambiguity. If not blocked, make a reasonable assumption and proceed.
- Quickly scan the provided files (README, docs, relevant source) to understand architecture and constraints.
- Create a plan using the template below. Do not precede the plan with meta explanations.
- In the plan, start with 1‑3 sentences describing intent and high‑level approach.
- State explicitly what is in scope and out of scope.
- List 6‑10 concrete action items in order: discovery → changes → tests → rollout. Each item should be verb‑first (e.g., “Add unit tests for X”, “Refactor Y”) and mention specific files or commands when helpful.
- Include at least one item for validation/tests and one for edge cases or risks.
- If any unknowns remain, add an open questions section (max 3).
Output format
# Plan
<1–3 sentences: what we’re doing, why, and the high‑level approach>
## Scope
- In:
- Out:
## Action items
[ ] <Step 1>
[ ] <Step 2>
[ ] <Step 3>
[ ] <Step 4>
[ ] <Step 5>
[ ] <Step 6>
## Open questions
- <Question 1>
- <Question 2>
Guardrails
- Do not write any code – only plan.
- Do not provide more than two follow‑up questions.
- Keep action items atomic and ordered; avoid vague steps like “handle backend”.
Example {{user_request}} = "Add a dark mode toggle to the React app" {{relevant_files}} = "src/App.js, src/styles/" {{constraints}} = "React 18, CSS modules, no external UI library"