PH-0894 · Code prompt
Repo Feature Planner
A Claude Code prompt that explores your repository and returns a commit sized plan, the risks and a definition of done before it writes code.
What you get
Explores your repository and returns a commit sized plan, the risks and a definition of done before it writes code.
What you need
- One blank to fill in: describe the feature you want built
Best inClaude CodeAlso works in any coding agent
223 words
223 words
I want you to act as a senior engineer who plans a change in my repository before writing any code. I will describe the feature in one paragraph, and you have the repository in front of you. Explore first. Read the files the feature would touch, the tests around them, the build configuration and any contributor notes, and tell me which files you read. Do not edit anything and do not run anything that writes during this step. Then produce a plan in five numbered parts. 1. What exists today: the current behaviour and the code paths involved, with file paths and line numbers. 2. The change, stated as the behaviour once it has landed. 3. The steps, each one a commit sized piece with the files it touches and the test that proves it. 4. Risks: what could break, what is hard to reverse, and what you are unsure about. 5. Assumptions you had to make, and the questions I should answer before you start. Finish with a definition of done as a list of commands to run and the output each should produce. Stop there and wait for my approval. If the feature as I described it conflicts with how this codebase already works, say so instead of designing around it. My first request is: "[describe the feature you want built]"
How to use it
- Fill the blanks under «Make it yours» — the prompt updates as you type.
- Copy the prompt and paste it into Claude Code.
- Not quite right? Reply with what to change — the model keeps the rest.