Take a planned ticket and build it with Claude — breaking requirements into small steps and developing iteratively rather than asking for a whole feature at once.
Read time14 min
LevelBasic → Advanced
Quiz3 questions
SectionBootcamp 2026
01 — what & why
Build in thin vertical slices
A feature is a stack of small, verifiable changes — not one giant generation. Ship the smallest end-to-end slice first, then grow it.
Start from a planned ticket (competency 2). Have Claude implement one slice — a route, its handler, and a test — then run it before moving on. Ground your work in the patterns from Backend and Frontend modules.
Every slice should compile and run. If you can't verify a slice, it's too big — split it.
02 — the technique
Requirement → slice → verify → repeat
Iterating with Claude beats one-shot generation because you catch drift early.
✓
One slice at a time
Route + logic + test, then run it.
✓
Point at the ticket
Give Claude the acceptance criteria as the target.
✗
Don't batch-generate
"Build the whole module" produces code you can't review.
✗
Don't skip running it
Unrun code is unverified code.
03 — effective implementation
Slice it, plan it, then implement — with the right model
Slicing tells you what to build next. Before you build, decide how: the order is always slice → plan → implement, never straight to code.
Once a slice is planned, most implementation is routine pattern-following. That work is faster and cheaper on Sonnet, which is more than capable for it — reserve the heavier model for thinking, not typing.
When a slice is genuinely complex — unfamiliar domain logic, tricky edge cases, an architectural call — raise the planning effort: plan with Opus 4.8, or pull in a second opinion using the advisory strategy. Once the plan is solid, you can still hand the implementation to Sonnet. See Planning for how to produce the plan itself.
1
Slice
Break the ticket into the smallest end-to-end step.
2
Plan
Simple slice → plan inline. Complex slice → Opus 4.8 or the advisory strategy.
3
Implement
Hand the agreed plan to Sonnet — fast and capable for routine build.
✗
Don't default to the heavy model
Reach for Opus 4.8 / advisory only when the slice is actually hard.
Rule of thumb: plan complex work with the strongest model, implement routine slices with the fastest one. The plan is the handoff between them.
04 — worked example (Leave Management)
The first vertical slice, in three iterations
Build LEAVE-2 + LEAVE-3 as small verified steps, not one big generation.
Iteration 1: route + service stub returns 201. Iteration 2: real insert via the repo. Iteration 3: the balance check rejects over-limit requests. Run it after each step.
A valid request inserts a row; an over-limit request returns 422. Each iteration was run.
✗
Watch out
Don't let Claude generate all three iterations before you run anything.
Now do this on YOUR project: build the first slice of one of your tickets in verified steps, running it after each.
05 — working in a large / monorepo codebase
Point Claude at the package, not the repo
Real projects are rarely one folder. A monorepo or a fullstack framework holds many packages — apps/api, apps/web, packages/ui, packages/config — and "read the whole repo first" burns the context window before Claude writes a line.
The same slice discipline scales up: scope Claude to the package the ticket touches. Point it at the specific workspace, give that package its own context, and let the shared root explain how the pieces fit — not every line of every package.
Move
Why it works in a monorepo
Root CLAUDE.md = the map
Names the workspaces, the package manager, and which package owns what — so Claude knows where to look without reading everything.
Per-package context
A short CLAUDE.md (or docs/) inside each app/package carries its own stack & conventions. See Context Engineering.
Work one workspace at a time
"Implement LEAVE-2 in apps/api only" keeps the session small and the diff reviewable.
Name the cross-package contract
When a change spans packages/ui → apps/web, state the shared type/API explicitly rather than making Claude infer it.
Fullstack frameworks (Next.js, Nest + a web app, Turborepo): the win is that frontend, backend, and shared types live in one repo — Claude can follow a feature end to end if you scope each slice to one layer at a time. That shared-repo advantage is exactly what makes cross-layer integration testing easier — see Testing.
06 — fixing bugs
Reproduce → isolate → fix → regression-test
Bug fixing is its own loop, not just "more building." The failure mode is asking Claude to "fix the bug" with no reproduction — it guesses, changes three things, and you can't tell which mattered.
Give Claude the same discipline you'd use yourself: a reproduction first (the failing input + expected vs actual), then let it isolate the cause, apply the smallest fix, and add a regression test that fails before and passes after. When Claude gets stuck at "90% fixed," see the frontend Fix Error Patterns for the snapshot / isolate / revert moves.
1
Reproduce
A failing test or exact steps — expected vs actual. No repro, no fix.
2
Isolate
Ask Claude to find the cause and explain it before changing code.
3
Smallest fix + regression test
One change, plus a test that fails before and passes after.
✗
"Just fix it"
No repro → Claude changes several things and hides the real cause.
Make it repeatable — capture it as a skill. Debugging follows the same steps every time, so encode them once as a project-specific debug skill (e.g. a debug.SKILL.md that knows your logs, stack, and repro commands). Then "run the debug skill on this failure" replaces re-explaining the loop. See Backend → Skills & Patterns for the debug-skill example.
07 — best practices
Build in slices you can verify
Thin vertical slices keep AI output reviewable and keep you in control of the build.
✓
Give Claude a verifiable check
State a pass/fail signal up front — failing test, build command, expected output — so Claude knows "done" before it starts.
✓
Reference existing code directly
"Follow the pattern in OrderService.createOrder" beats "add a service layer" — concrete anchors prevent invented abstractions.
✗
Trust assertions, not evidence
Ask for exact test output, the command run, or a screenshot — never accept "it works now" without a reproducible signal.
✗
The kitchen-sink session
Explore → Plan in Plan Mode → Implement → Commit in separate sessions; mixing all phases in one conversation is the most common failure mode.
Check your understanding
1. What is a "thin vertical slice"?
Correct.Not quite — the correct answer is highlighted above.
2. Why develop iteratively with Claude instead of one-shot?
Correct.Not quite — the correct answer is highlighted above.
3. A slice touches five files and you can't run it yet. What does that signal?
Correct.Not quite — the correct answer is highlighted above.
Basic · GuidedProject: Leave Management System
Scaffold one endpoint from a ticket
Objective: implement the smallest slice of one ticket — a single endpoint/component plus a check that it works.
prompt
Implement ticket [ID]: [one line].
Do the smallest slice only: [route/handler OR component].
Match our patterns (see CLAUDE.md). Show me how to run it.
Pick one ticket from your Planning backlog.
Have Claude implement the smallest slice.
Run it and confirm the acceptance criterion.
✓
Done when
One slice runs and meets its acceptance criterion.
✗
Watch out
A slice that touches five files — scope it down.
Discuss with your facilitator: what was the smallest slice you could have shipped, and did you actually stop there?
Intermediate · Semi-guidedProject: Leave Management System
Grow the feature iteratively
Objective: extend the slice into a working feature over 3–4 iterations, verifying each step.
Add the next slice; run it before continuing.
Refine via follow-up prompts, keeping what works.
Stop when the ticket's criteria are all met.
✓
Done when
The ticket is complete and every step was run.
✗
Watch out
Generating ahead of what you've verified.
Discuss with your facilitator: where did iterating catch something a one-shot prompt would have missed?
Advanced · Open challengeProject: Leave Management System
Add a feature to existing code
Objective: implement a new requirement inside code you already have, respecting its existing patterns and without breaking current behaviour.
✓
Done when
The new feature works and existing behaviour is unchanged.
✗
Watch out
New code that ignores the existing conventions.
Discuss with your facilitator: how did you make Claude follow the existing patterns rather than invent new ones?