/sdd-pipeline:verifyfrom sdd-pipeline
Verifies that a spec's acceptance criteria are covered by green tests before opening a PR. Maps each AC to a test, runs the suite, and reports gaps. Automatically iterates with tdd until spec is satisfied.
Ships in sdd-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The closing gate of the SDD pipeline. Map every acceptance criterion in the spec to a green test, surface any gaps, decide whether the work is ready for review.
## Acceptance criteria section — the upstream skill (interview-to-spec or diagnose) was abandoned mid-way. Finish that first.Identify the spec. A path or slug for an existing spec/<slug>.md. If neither was provided, ask the user — do not guess.
Validate it. The spec must contain ## Acceptance criteria. If missing, abort and tell the user to complete the spec first.
Read the spec. Focus on Acceptance criteria and Edge cases (or Related risks for bug specs).
Find the tests. Locate the relevant test files in the project's test directory (tests/, __tests__/, *_test.go, *_spec.rb, etc). Read them.
Map AC → test. For each acceptance criterion, find the test that observably proves it. Match on behaviour, not on naming similarity. A test named close to an AC does not count if it asserts something different.
Find gaps. Two categories — handled differently:
Blocking gaps (auto-fixed via handoff to tdd):
skip / xfail / it.skip / @pytest.mark.skip / t.Skip / equivalent.TODO, commented-out assertions, or empty body.Warnings (surface only, do not auto-fix):
Confirm green. Run the project's test command (from .agents/tdd/test-command.txt if it exists, otherwise infer it the same way the tdd skill does). All tests must pass.
Report and persist the verdict. Use the format below, and write the one-word verdict to .agents/verify/last-verdict.txt (see Persisting the verdict).
## Verify report — <slug>
### Acceptance criteria coverage
- ✅ AC1 — `tests/auth/test_token.py::test_expired_tokens_rejected`
- ✅ AC2 — `tests/auth/test_token.py::test_valid_tokens_accepted`
- ❌ AC3 — no test found
### Edge cases
- ✅ Empty input — `tests/auth/test_token.py::test_empty_token_returns_400`
- ❌ Concurrent refresh — no test
### Tests without spec mapping (warning — your call)
- ⚠️ `tests/auth/test_token.py::test_token_internal_repr` — does not map to any AC. Intentional extra coverage, or scope-creep test to delete?
### Test run
✅ 47 passed, 0 failed, 0 skipped.
### Verdict
**Not ready.** 2 items lack coverage. See gaps above.
When all blocking gaps are absent and the suite is green, the verdict is Ready for review. Tests-without-mapping warnings do not affect the verdict.
Every run of verify ends by writing the one-word verdict to .agents/verify/last-verdict.txt (create the directory if missing). The file is a single line, no trailing newline:
Ready — all blocking gaps resolved and the suite is green.Not ready — at least one blocking gap remains.The Stop hook reads this file. If you forget to write it, the previous run's verdict persists; if you never write it, the hook never blocks. Always overwrite at the end of every run.
review (built-in) or proceed to PR.tdd with the gap list as the new test queue. After tdd is green, re-invoke verify. Repeat until the verdict is Ready.The Stop hook forces this iteration: while the verdict file says Not ready, the turn cannot end. Do not try to skip the loop — fix the gaps via tdd, re-verify, repeat.
Do not try to fix gaps inside verify itself — that's tdd's job. Verify only inspects, iterates, and reports.
What SKILL.md sets; muted values are Claude Code's defaults
bash ${CLAUDE_PLUGIN_ROOT}/skills/verify/hooks/iteration-gate.shThree short reads, in order
spec-verification, acceptance-criteria, test-coverage, tdd, pr-readiness
npx claudepluginhub eduwxyz/my-awesome-skills --plugin sdd-pipeline6 skills in this plugin
/diagnoseTurn a bug symptom into a fix with a regression test that locks it down. If the user opens vague ("there's a bug", "/diagnose"), interview them one question at a time until you have enough to attempt a reproduction; if you still cannot reproduce, say so explicitly. Then drive the work through five phases — build a deterministic feedback loop, reproduce, hypothesise, probe, write a spec — and hand off to TDD for the regression test. Trigger when the user reports something broken, slow, wrong, or regressed: "X is failing", "this throws", "something regressed", "diagnose this", "debug this", "investigate why..."./featureKick off the full feature workflow — interview-to-spec, optional spec-approach, tdd, verify, then review — when starting a new feature from scratch. Thin orchestrator: confirms intent in one sentence, then hands off to the first stage and lets each downstream skill activate on its own. Trigger when the user says "new feature", "let's build a feature", "start a feature", "build feature X end-to-end", "kick off a feature", "/feature"./interview-to-specConduct a focused interview to draft a spec.md for an upcoming task (the input step of SDD — spec-driven development). Walks through goal, behaviors, acceptance criteria, edge cases, and out-of-scope one branch at a time, then writes the spec to disk. If during the interview the scope turns out to be multiple independent features, pauses and asks the user to pick one — the chosen one becomes the spec, the rest stay outside the repo. Trigger when the user wants to draft a spec before implementation, mentions "draft the spec", "let's spec this out", "what should we build", or starts an SDD workflow./spec-approachAdd a refined `## Approach` section to an existing feature spec.md before TDD executes it. Reads the spec, explores the codebase to ground the approach in real modules and patterns, proposes 2–3 alternatives when they exist, validates with the user, then appends `## Approach` to the same spec file. Trigger after `interview-to-spec` for non-trivial features when the user says "plan the approach", "spec the implementation", "design the approach", "how are we building this", or before invoking `tdd` on a feature whose HOW is unclear./tddDrives feature work and bug fixes through a tight failing-test-first loop. Trigger when implementing, fixing, or refactoring behavior in a codebase that already has tests. Skip for spikes, visual-only edits, throwaway scripts, and generated files.Other plugins' skills for the same job