SDLC Playbook

Stage 3: Build

Four plays. Claude writes the code and the tests. People own the plan, the rules and the review.

Four plays

Pick a play

Plays are modular. Start with the one that fits where your team is today.

The shift

Claude writes the code. People own the plan.

Traditional

Tests and code are handwritten. Documentation is written after development.

AI-native

Tests and code are generated by AI. Institutional knowledge lives in versioned, machine-readable CLAUDE.md files and skills.

A person decidesClaude does the workA gate or controlA committed artifact

Who does what in Build

Engineer

Corrects and accepts plan.md. Runs plan mode and the sessions. Writes skills from the policy owner's source. Owns CLAUDE.md corrections.

Claude

Drafts plan.md in plan mode. Implements. Verifies its own work.

Policy owners

Own the source of truth for each skill. Sign off skill changes.

Tech lead or architect

Approves higher-risk plans.

Play 1

Plan mode first

1

Plan mode first

Engineers start in plan mode with the approved spec. The plan is committed as plan.md.

Watch it run

Traditional

The engineer reads the design and starts coding. Which files change and which tests to write stay in their head or a ticket comment, so nobody else can review it. The reviewer first sees the finished diff, and by then rework is slow.

AI-native

Work starts with a written plan from plan mode, where Claude can read the codebase but cannot change anything. The engineer corrects the plan. The approved version is committed as plan.md for later stages to check against.

Auto mode

Auto mode comes later, once guardrails mature

You iterate on and approve the plan. Claude then applies each change without a per-edit prompt. Auto mode becomes the default for routine work as these four guardrails mature:

A tuned CLAUDE.md
Skills that encode policy
Hooks that block unsafe actions
A test suite Claude can run
Auto mode for routine work
  • Good fit: a tight spec.md, a small blast radius, and code the tests already cover.
  • The shift is from watching the agent edit to reviewing artifacts after longer autonomous sessions.
  • With worktrees, auto mode enables parallelism across people and teams. The course calls it fundamental to running the SDLC autonomously and closing the loop in Stage 6.
Legacy systems

Fit around what exists: one source of truth per artifact

Teams already track work in Jira, requirements in a traceable tool, designs in Figma and approvals with a change board. Auditors accept these, so they are hard to replace. Start with linkage, then name one source of truth for each artifact.

1. Linkage first

The minimum bar and a good place to start. Artifacts note the record ID. Legacy records carry the commit SHA of the Markdown file. There are two sources of truth, and that is accepted for now.

2. The repo is the truth

Markdown artifacts are authoritative. The legacy system references files within commits. One of the cleanest setups for engineering-led organizations: one tool, one timestamp authority.

3. The legacy system is the truth

Jira, ServiceNow or the requirements tool is authoritative. The Markdown files are working copies. Claude reads the record at session start and writes the outcome back through an MCP connector in the same session.

The choice can differ for each artifact. Both can coexist as long as they are linked or one is declared the source of truth.

Play 2

CLAUDE.md

2

CLAUDE.md

The context a new joiner needs, read by Claude at the start of every session.

What goes in

CLAUDE.mdStays under a page
Commands

make build, make test, make itest (needs docker), make lint (runs in CI), make run (portal on :3000, claims-api on :8000)

Conventions

claims-api is Python 3.12 and FastAPI. The portal is TypeScript and React. Every endpoint needs a test. Dates cross the API as ISO 8601.

Architecture

portal/, claims-api/ and intent/. Only claims-api talks to claims-core, which allows 50 requests per second. Cache reads, never poll it.

Things Claude gets wrong

Do not log request or response bodies in claims-api (they can hold PII). Do not bump dependency versions, the platform team owns them.

Claude reads all of it at the start of every session, so stale lines waste context. Example from the course's insurer claims portal.

How it is owned and corrected

Traditional

Knowledge lives in heads and wikis. A new joiner learns the conventions and the common mistakes by asking around.

AI-native

Claude reads a versioned file at the start of every session. The whole team maintains it and updates it each time Claude makes a mistake.

Play 3

Skills as institutional knowledge

3

Skills as institutional knowledge

Rules that must apply the same way every time, owned by the people who own the policy.

Where does this rule go?

Place each rule in CLAUDE.md, a skill or a hook, using the course's guidance. Write a skill for institutional knowledge that must be applied consistently. Leave the rest in CLAUDE.md or a prompt.

CLAUDE.mdContext a new joiner needs: commands, conventions, architecture, common mistakes.
SkillInstitutional knowledge applied consistently. A control, though an advisory one.
HookThe deterministic layer. It blocks the action or puts the message in front of Claude.

Policy owners own the skill's source

Traditional

Standards live in documents and in a few experienced heads. They are applied inconsistently, and violations show up late, in review.

AI-native

The instructions are explicit, version controlled, applied broadly, and updated centrally when policy changes. A skill carries the knowledge. A hook backs the rules that must always hold.

Hooks

Hooks as build-time guardrails

A skill is advisory. The course says the skill makes violations rare and the hook makes them close to impossible. Most Claude actions in build are file edits and shell commands, so hooks fire most often here.

Block

Edits to protected paths, such as generated classes or a frozen package.

Tidy

Run the formatter and linter after edits.

Protect

Keep credentials out of the diff.

Back a skill

Back any skill whose policy must hold without exception.

Worked example: the API policy hook

  • Hooks run on every matching action. Keep them fast and scoped to the changed file. Heavier checks, such as the full test suite, belong at commit or PR.
  • A hook that asks a human for approval belongs in Stage 5. In build it puts a person back on the critical path of every parallel session.
Play 4

Parallel sessions and subagents

4

Parallel sessions and subagents

More tasks in flight. Subagents keep each session focused. You steer and review all of it.

Watch it run

Traditional

One engineer, one task at a time, with a lot of time spent on builds, tests and reviews. Switching tasks while waiting is tiring enough that few people choose to.

AI-native

One engineer runs several sessions at once, each in its own worktree. Repeated jobs become subagents. The job shifts to orchestrating, and eventually to building and monitoring loops.

Hand-off

What Build hands to Stage 4

Inspec.md

An approved spec triggers plan mode.

Stage 3: Buildplan.md

Committed, so later stages can check against it.

Outthe diff + its tests

Stage 4 begins by reading them.

Next: Stage 4, Test

Key takeaways

  • Start in plan mode. Claude reads, you correct the plan, then Claude implements. The approved plan.md joins the audit trail.
  • Keep CLAUDE.md short and shared. When Claude makes a mistake twice, the correction goes in.
  • A skill is advisory. Back any rule that must always hold with a hook and a check on the PR.
  • Start with two or three parallel sessions. Add more only while review keeps up.
  • With legacy systems, link first, then name one source of truth for each artifact.

Based on Anthropic's The AI-native SDLC playbook course (Claude Academy). Summarized by Bitovi to guide client transitions.