What you're doing
You'll build a small tool you'd actually use: a study timer or a tip splitter. The steps use the study timer; swap in the tip splitter if you like it better. The order matters more than the tool. Write down what you want, have Claude Code plan it in plan mode, fix the plan, and only then let it write code.
Steps
Make a new project folder
Terminalmkdir study-timer cd study-timerWrite a five-line spec
A spec says what the thing is, who it's for, what it must do, what it must show, and how you'll know it works. Make a file called
spec.mdin the folder with any text editor (or ask Claude Code to save it for you in the next step). Here's one you can start from:spec.mdWhat: a study timer that runs in the browser. Who: me, studying for exams. Must do: run a 25-minute focus round, then a 5-minute break, and repeat. Must show: the time left in big numbers, and one Start/Pause button. Done when: I can run two focus rounds with a break between them without touching any code.Tip splitter instead? Try: what it is, who uses it (friends splitting a dinner bill), the bill and tip percentage it takes, what each person owes, and a check you can do by hand.
Start Claude Code in plan mode
Terminalclaude --permission-mode planAlready inside Claude Code? Press Shift + Tab until the bar at the bottom says plan mode is on. In plan mode Claude reads and proposes, but it doesn't edit your files until you approve a plan.
Ask for a plan
Type into Claude CodeRead spec.md. Make a plan for building it as a single index.html file with plain HTML, CSS and JavaScript. Don't write any code yet. Tell me what the page will contain, how the timer will work, and how I can test each line of the spec.If you haven't saved
spec.md, paste the five lines into your message instead.Read the plan and change one thing
Read it the way you'd read a friend's directions before a road trip. Then change one thing. There are two ways:
- Tell Claude, for example: "Change the plan: play a short sound when a round ends."
- Press Ctrl + G to open the plan in your text editor and edit it yourself.
Approve the plan
When the plan is right, Claude asks how to go on. The choices include approving with auto mode, approving while you check each edit, and "No, keep planning". For your first build, take the one that lets you approve edits by hand, so you see every change before it happens.
Test it against your spec
Open
index.htmlin your browser (open,startorxdg-open, as in lesson 1) and go down the spec line by line. When something's off, say what you saw and what you expected:Type into Claude CodeWhen the focus round ends, the break doesn't start on its own. It should start automatically, like the spec says. Fix it and tell me how to check.Know how to back up
If a change makes things worse, press Esc twice on an empty prompt, or type
/rewind. You can put the code, the conversation or both back to an earlier point. This only covers edits Claude made itself, so it isn't a replacement for Git. Lesson 3 sets that up.
When to skip the plan
Planning takes time. If you could describe the change in one sentence, like fixing a typo or renaming a button, just ask for it. Plan when you're unsure how to do something, when a change touches several files, or when the code is new to you.
Exercise
Proof of doneWrite a five-line spec for a study timer or a tip splitter. Get a plan in plan mode, change one thing in it, build it, and use it for real: one study session, or one bill.
You're done when
spec.mdis in your project folder with five lines in it.- You changed one thing in the plan before approving it.
- Each line of the spec works when you test it in the browser.
- You've used the tool once for its real job.
Sources
Read on October 4, 2026.
- Choose a permission mode: plan mode,
--permission-mode plan, Shift + Tab, the approve choices, Ctrl + G. - Best practices for Claude Code: explore, plan, then code; when to skip the plan; rewinding with checkpoints.
- Interactive mode: double Esc opening the rewind menu.
- Checkpointing: what a rewind can and can't restore.