Skip to content
zeeshare.com

writing / FDE and agents

Spec-driven development, for real

Spec-driven development, for realPart 9

Skills and reviewers

On this page
  1. Wednesday, 15:00
  2. Build, then check
  3. The skills
  4. The reviewers
  5. Five at once
  6. Which reviewer for which change?
  7. In the kit
  8. Three rules of thumb

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.

Skills: how to build Reviewers: how to check Claude Findings

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

Build with a recipe /new-endpoint gated serializer tests, export same shape every time Check with specialists spec-reviewer api-designer field-security report, not fix
The person who built the wall is the worst person to inspect it. Building and checking are different jobs.

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.

write-spec

Read REQ, DEC, ADRs and definitions; ask what is unclear; write ACs; stop for approval.

write-adr

Search for an earlier record, number it, options with for and against, cite it in code.

open-question

Never guess; record OQ-##; restate in code; build as a setting; log the fallback.

new-endpoint

Gated serializer, layered permissions, If-Match, idempotency, error envelope, tests, export.

sync-contract

Regenerate, read the types, build against them, render what arrives, test field security.

verify-done

One verify command, every AC with evidence, check each test can fail.

handoff

Tracker, handoff with a next step, STATUS row, context drop if something was learned.

pr-merge-safety

How stale, what it deletes, and the detectors for work that went missing.

kit-init

Copy the starter files into a repository without overwriting anything.

Here is the one Maya used for the endpoint:

skills/new-endpoint/SKILL.md (excerpt)
---
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.
Only the description sits in Claude’s context until a request matches it. Then the steps load, and every endpoint comes out the same shape.

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.

agents/field-security-reviewer.md
---
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.
Read-only tools, a smaller model, one checklist and a report. A reviewer that can edit stops being a reviewer.

Five at once

spec-reviewerevery AC, evidence api-designergating, 409, 404 field-securityfee_basis absent? tenant-isolationA cannot read B silent-failureOQ-07 fallback logged? PR #88late fees
Each one starts with its own clear desk and returns a short report. Your conversation only sees the findings.

Here is what the field-security reviewer said:

what came back from field-security-reviewer
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.
Specific, located and short. Finding 1 is not a leak today, but it is the habit that becomes one.
Under the hood: skills, subagents and cost
  • Skills live in .claude/skills/<name>/SKILL.md, or in a plugin’s skills/ 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’s agents/. The frontmatter sets tools and model. 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.md says 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, from write-spec to pr-merge-safety.
  • agents/: spec-reviewer, api-designer, field-security-reviewer, tenant-isolation-auditor, silent-failure-hunter.

Three rules of thumb

Recipes for repeated changes

If the team builds it more than twice, it gets a skill, so the third one matches the first two.

Reviewers report, builders fix

Read-only tools. Separate roles catch more than one colleague doing both.

Some reviews are mandatory

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.

See services
Next in this seriesSpec-driven development, for realGuardrail hooks4 min read