Spec-driven development, for real
Spec-driven development, for realPart 9
Skills and reviewers
On this page
New to the short codes like REQ, ADR or AC? See the vocabulary in Part 1, or hover over any code.
In short: A skill is a recipe for a change the team makes again and again: a new endpoint, wiring a screen to the API, a spec, an ADR, a handoff. Every instance comes out the same shape, so every instance can be checked the same way. A reviewer is a read-only subagent with one checklist: the spec, the API rules, field security, tenant isolation, silent failures. They run in parallel before merge and report, never fix.
Part 8 made Claude read before it writes. This part covers block 8: how it builds, and who checks what it built. The team and product are invented.
Wednesday, 15:00
Maya’s endpoint and Jonas’s screen are both done, and every test passes. Neither of them is going to review their own work. Maya asks Claude to run five reviewers in parallel. Four minutes later there are five short reports. Four say nothing is wrong. One finds a line in Jonas’s screen that checks the user’s role before showing the fee basis.
It is not a leak today: the server already leaves that field out for customers. But it is exactly the habit that becomes one.
Think of it like this: A franchise kitchen has laminated cards at each station, so the burger is the same in every branch. And it has inspectors: one for hygiene, one for fire safety, one for allergens. Each walks in with one checklist. None of them cooks.
Build, then check
The skills
Each skill encodes one repeated change. Claude loads only the one-line description of each until a request matches; then it reads the steps.
Read REQ, DEC, ADRs and definitions; ask what is unclear; write ACs; stop for approval.
Search for an earlier record, number it, options with for and against, cite it in code.
Never guess; record OQ-##; restate in code; build as a setting; log the fallback.
Gated serializer, layered permissions, If-Match, idempotency, error envelope, tests, export.
Regenerate, read the types, build against them, render what arrives, test field security.
One verify command, every AC with evidence, check each test can fail.
Tracker, handoff with a next step, STATUS row, context drop if something was learned.
How stale, what it deletes, and the detectors for work that went missing.
Copy the starter files into a repository without overwriting anything.
Here is the one Maya used for the endpoint:
--- name: new-endpoint description: Add or change a Django REST Framework endpoint the standard way, with field gating, layered permissions, pagination, optimistic concurrency, the error envelope, tests and an exported OpenAPI contract. Use for any new or changed API surface. --- 1. Start from the spec. Note the AC IDs and, per role, the fields. 2. Serializer with field gating: absent, never null. 3. Permissions in layers. Missing access is 404, not 403. 4. Lists are paginated with a cursor. 5. Writes require If-Match (409 if stale) and an Idempotency-Key. 6. Errors use the uniform envelope. 7. Describe it with @extend_schema, every response code. 8. Tests first: the AC, isolation, field security, concurrency. 9. Export the contract. 10. Review with api-designer.
Rule: the skill is the standard. When the team changes how endpoints are built, they change the skill, and the next endpoint follows the new way.
The reviewers
A reviewer is a subagent: its own context, its own tools, one job. Giving it only read tools is what keeps it a reviewer.
--- name: field-security-reviewer description: Reviews screens and serializers for field-level security. Mandatory for any screen or serializer that shows business data. tools: Read, Grep, Glob model: sonnet --- The rule: a field a role may not see is absent from the API response, so it is absent from the screen. Hiding it in the client is not security; it is still in the network tab. Server: every sensitive field is gated, and a test asserts the raw JSON for the restricted role has no such key. Client: no role check decides whether a data field shows; values render through a component that renders nothing for undefined; a test renders the restricted role and asserts the label is absent. Report: file:line, what leaks or could leak, the fix.
Five at once
Here is what the field-security reviewer said:
FINDINGS (2)
1. web/src/features/returns/fee-panel.tsx:31
`{isStaff && <FeeBasis value={ret.fee_basis} />}`
A role check decides whether a data field shows (F1). The server
already omits fee_basis for customers. Render
<FeeBasis value={ret.fee_basis} />; it renders nothing for undefined.
2. api/src/rentals/tests/test_return_fields.py
No test that a customer's raw JSON lacks "fee_basis".
Add: assert "fee_basis" not in response.json()
No leaks found in the serializer.
Under the hood: skills, subagents and cost
- Skills live in
.claude/skills/<name>/SKILL.md, or in a plugin’sskills/folder, where they are named after the plugin (/spec-driven-kit:new-endpoint). Only the name and description are in context until used. See skills. - Subagents live in
.claude/agents/or a plugin’sagents/. The frontmatter setstoolsandmodel. Running reviewers in parallel keeps their reading off your desk: you get five short reports, not five reviews’ worth of file contents. See subagents. - A smaller model (
model: sonnet) is usually enough for a checklist review and costs less. - Mandatory reviewers are written down. The root
CLAUDE.mdsays field security is required for any screen showing business data. A “should” in someone’s head is not a rule. - The real repositories behind this series carry five backend reviewers (tenant isolation, policy, API design, migrations, adapters) and eight frontend ones (accessibility, API contract, design system, field security, React, silent failures, type design, TypeScript). Start with the five in the kit and add what your mistakes teach you.
Which reviewer for which change?
- Any feature, before calling it done: spec-reviewerChecks every AC against code and a test that can fail.
- A new or changed endpoint: api-designerGating, layered permissions, pagination, If-Match, the envelope, the schema.
- A screen or serializer with business data: field-security-reviewerMandatory. Server omits, client renders what arrives, tests on both sides.
- Queries, tasks, caches or files changed: tenant-isolation-auditorAny path where one company could read another’s data.
- Error handling, integrations or money: silent-failure-hunterSwallowed errors, unlogged fallbacks, retries that give up quietly.
In the kit
skills/: nine skills, fromwrite-spectopr-merge-safety.agents/:spec-reviewer,api-designer,field-security-reviewer,tenant-isolation-auditor,silent-failure-hunter.
Three rules of thumb
If the team builds it more than twice, it gets a skill, so the third one matches the first two.
Read-only tools. Separate roles catch more than one colleague doing both.
Field security on business data, isolation on data access. Written in CLAUDE.md, not left to memory.
QuizThe field-security reviewer finds a problem. Should it fix the code itself?
Show the answer
Answer: No, it reports; the builder fixes, and the reviewer can run again
A reviewer with edit tools starts making changes nobody reviewed. Keeping it read-only keeps the roles separate, and running it again after the fix is cheap.
Words in this post:
- Skill: a recipe Claude follows for a repeated kind of change.
- Reviewer: a read-only subagent with one checklist.
- Subagent: a helper with its own context that returns only its result.
- In parallel: several reviewers running at the same time.
- Mandatory review: a check the rules require for a kind of change.
Next, Part 10: Guardrail hooks puts alarms on the moments that quietly go wrong: merges, pushes, pull requests and edits.
Setting up Claude Code or AI agents for your team?
I help teams build this: agents, RAG search and Claude Code setups that hold up in production.
Series
Spec-driven development, for real
- Spec-driven development, for realThe building blocks
- Spec-driven development, for realThe paper trail
- Spec-driven development, for realPrinciples and scoped rules
- Spec-driven development, for realDecision records
- Spec-driven development, for realDefinitions and open questions
- Spec-driven development, for realFeature specs and plans
- Spec-driven development, for realThe contract
- Spec-driven development, for realGates that make Claude show its work
- Spec-driven development, for realSkills and reviewersyou are here
- Spec-driven development, for realGuardrail hooks
- Spec-driven development, for realProof of done
- Spec-driven development, for realMemory and handoffs
- Spec-driven development, for realOne ticket, end to end