Work like a pro

Explore, plan, code, commit

The four-step workflow Anthropic recommends.

5 min11 / 18

Letting Claude jump straight into coding can solve the wrong problem. Anthropic recommends separating thinking from doing with .

ExplorePlan mode. Claude reads, changes nothing.
→
PlanAsk for a plan. Edit it. Approve it.
→
ImplementClaude builds and checks against the plan.
→
CommitSave the work with a clear message.
Skip the plan when you can describe the change in one sentence.

The four steps

  1. Explore. Switch to plan mode (Shift+Tab until the status bar says plan mode, start a single with /plan, or launch with claude --permission-mode plan). Ask Claude to read and explain. Nothing is changed.
  2. Plan. Ask for a detailed plan. You can open it in your editor with Ctrl+G and edit it before Claude continues.
  3. Implement. Leave plan mode and let Claude build, checking its work against the plan.
  4. Commit. Ask Claude to save the work with a clear message (git commit).
When to skip planningPlanning adds overhead. If you could describe the change in one sentence (fix a typo, rename a variable), just ask for it directly.

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 ofTry
"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 filesit is one file and one sentence
you are not sure how the project worksyou already know exactly what should change
a mistake would be hard to undoit 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.

Try it now: Pick a small improvement in your practice folder. Run it once in plan mode: explore, get a plan, edit one thing, then approve.

Check yourself

1. What is plan mode for?
2. Which request gives Claude a way to check itself?
3. When can you skip plan mode?
4. What makes the “whole task” prompt work well with current models?

Tip: use ← and → to move between lessons.