Explore, plan, code, commit
The four-step workflow Anthropic recommends.
Letting Claude jump straight into coding can solve the wrong problem. Anthropic recommends separating thinking from doing with .
The four steps
- Explore. Switch to plan mode (Shift+Tab until the status bar says plan mode, start a single with
/plan, or launch withclaude --permission-mode plan). Ask Claude to read and explain. Nothing is changed. - Plan. Ask for a detailed plan. You can open it in your editor with Ctrl+G and edit it before Claude continues.
- Implement. Leave plan mode and let Claude build, checking its work against the plan.
- Commit. Ask Claude to save the work with a clear message (git commit).
Describe the finish line, then step back
Current models handle multi-step work well. Anthropic's advice for Opus 5.5 is to give the complete task in one message and let the model plan the steps, instead of steering it one tiny step at a time. Your job is to make the finish line clear and to say where Claude must stop and ask.
Prompt: whole task with a finish line
Add a contact form to my website.
Done means: the form appears on the contact page, sends to {{email}}, shows a thank-you message, and works on a phone.
Check it by opening the page and submitting a test entry.
Stop and ask me before adding any new service or paid tool.Goal, definition of done, a way to check, and a clear limit.
Give Claude a way to check its work
Anthropic calls this the single most useful habit: give Claude something that returns pass or fail, like tests, a build, or a screenshot to compare. Without it, "looks done" is the only signal and you become the checker.
| Instead of | Try |
|---|---|
| "Make the page look better" | "Here is a screenshot of the design I want. Match it, take a screenshot of the result and list the differences." |
| "The build is failing" | "The build fails with this error: [paste]. Fix it and run the build to confirm. Fix the cause, do not hide the error." |
| "Add email validation" | "Write a validateEmail function. These must pass: user@example.com is valid, invalid is not. Run the tests after." |
| Plan first when… | Just do it when… |
|---|---|
| the change touches several files | it is one file and one sentence |
| you are not sure how the project works | you already know exactly what should change |
| a mistake would be hard to undo | it is easy to undo with git |
Plan-first prompt
I want to add a contact form to my site. Do not change any files yet. Read the project, then give me a plan: which files change, what could go wrong, and how we will check it works. Wait for my approval.
You review the plan before anything changes.
Let Claude interview you
I want to build [short description]. Interview me in detail: ask about what it must do, who uses it, edge cases and trade-offs. Skip obvious questions. When we have covered everything, write a complete spec to SPEC.md.
Adapted from Anthropic's best practices. Start a fresh session afterwards and build from the spec.
Check yourself
Tip: use ← and → to move between lessons.