/repertoire:verification-gatefrom repertoire
Enforces that claims of completion, fixes, or passing tests are backed by fresh evidence. Maps each claim to a specific proof, reruns the proving command after the final edit, inspects the diff, and reports untestable items. Use before reporting completion or committing.
Ships in repertoire. 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; scripts run unread.
Rule: no claim of done, fixed, passing, or working leaves this session without evidence produced after the final edit and read in full. The claim comes from this session, so the check runs in this session. A reviewer can catch a false "done" later, but by then the user has read it and maybe acted on it.
CLAUDE.md, and the project's check configuration.Before running anything, list each claim you are about to make, one per line, as a specific statement: "all 212 tests in packages/api pass", not "tests pass". Strip hedges while you write. These words mark a claim you have not verified:
should, probably, seems to, looks like, appears to, I believe, ought to, likely, I'm confident, as expected, must be, I think.
If you can't drop the hedge without evidence you don't have yet, the claim stays on the list as unverified until step 3 produces the evidence. Don't drop the claim to avoid the work; the user will assume it anyway.
Different claims need different proof. Pick the better column, or say why you can't.
| Claim | Not evidence | Evidence |
|---|---|---|
| Tests pass | A run from before the last edit; a filtered run; "no tests found" with exit 0 | Full output with the summary line, counts, and exit code, from a run started after the final edit |
| It builds, lints, or type-checks | "I didn't change anything relevant" | The command's exit code and summary from after the final edit |
| The bug is fixed | The new code reads correctly | The reproduction that failed before now passes, and the regression test exists in the diff |
| It renders | The component code looks right | A screenshot, or a DOM query, that you or a tool inspected |
| It works in the UI | A screenshot | Role, name, and state assertions (the Save button exists and is disabled), as in the browser-check skill |
| The feature is done | Tests pass | Each acceptance criterion mapped to its evidence, rerun after the final edit, and the final diff inspected |
| A subagent finished | Its own report | Its diff, the checks run on it, or a repertoire:referee verdict |
| It's delivered | It merged | Merged, CI green on the base branch after the merge, review threads resolved |
Find the proving command before guessing one. In order: the verified commands in CLAUDE.md (the project-initializer skill writes them with what passing looks like), package.json scripts, a Makefile or justfile, then the steps in .github/workflows/*.yml. CI's list wins when it exists. A command that runs only the file you changed proves only that file; when the claim is about the suite, run the suite. No command exists for a claim: it's unverified, and the report says what would prove it.
For each claim with a command:
skip or todo counts that grew, only left in a test, a watcher that never exited, a timeout that was reported as success, warnings the project treats as errors.git status matches what you expect. Output from another revision proves nothing about this one.Give each command a timeout suited to the check. A hang is unverified, not passed.
Normal case: bun test exits 0, the summary reads 212 pass, 0 fail, 0 skip, and the run started after your last Edit. The claim "all 212 tests pass" is now backed.
Most common false success: the test script exits 0 after printing No tests found or 0 passed, because a path filter or a config change excluded the file you wrote. Exit 0 with nothing run is not passing. Say so and find out why.
Run the scanner for the ways a "done" gets faked, then read every hunk yourself:
node "${CLAUDE_SKILL_DIR}/scripts/scan-diff.mjs" --base <ref>
--base <ref> diffs the working tree (staged and unstaged) against <ref>; omit it to diff against HEAD. Untracked files are not in a git diff, so list them with git status --porcelain and read them directly. To scan a diff you already have, pipe it in with --stdin.
It prints {"findings":[{"kind","file","line","text"}]} on stdout and a one-line count on stderr. For added lines line is the new-file line; for removed lines it is the old-file line. Exit codes:
0: no findings. Still read the diff; the scanner knows only the patterns below.1: findings. Each one comes out before the claim, or goes in the report by name with the reason it stays. Kinds: test-file-deleted, assertion-removed, test-skipped (.skip, .only, xit, xdescribe, and similar), expected-value-edited (a test's expected value changed in the same diff as source code), lint-or-type-rule-disabled (eslint-disable, @ts-ignore, @ts-expect-error, # noqa, and similar), threshold-lowered (coverage or similar limits in config), snapshot-updated.2: the scan did not run (bad arguments, not a git repository, unknown ref). The diff is unscanned: fix the invocation, or report the diff as unverified.Then read every hunk for what the scanner can't see:
Anything on either list either comes out before the claim or goes in the report by name.
For each claim:
When done takes judgment that a command can't give, such as acceptance criteria written in prose, or a stopping condition written before a loop started, hand the condition and the evidence to repertoire:referee. Withhold your summary and transcript; the referee judges artifacts, and its verdict is the evidence. Don't grade your own prose criteria.
When you notice yourself reaching for a reason to skip any of steps 3 to 5, read references/rationalizations.md and find the one you're using.
Done is observable: the report's completed section contains, for each claim, a command, an exit code, and result lines from a run that started after the final edit, and the report names the diff it inspected (git diff --stat output or the commit).
Lead with the four parts, and put the evidence beside each claim rather than in a summary:
"Could not verify" is a correct outcome. A claim moved from completed to unverified is a better report, not a worse one.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/agentic-coding-patternsRoutes a recurring failure with coding agents, or a task about to start, to one of fifteen patterns, checks the pattern's reasons not to use it, and names the repertoire component or mechanism that implements it. Use when an agent claims done too early, a plan went wrong late, a session repeats a past dead end, or an unattended run must be made safe. Not for executing a pattern, debugging one bug (debugging-protocol), writing a plan or spec (plan-writer, interview-to-spec), or authoring a component (skill-builder)./browser-checkChecks the agent's own UI work in a real browser by starting the app locally, writing short Playwright scripts that look before they act, reading the console, and fixing what it finds in the same session. Use after changing anything a user sees in a web app, before calling the change done. Not for writing the permanent end-to-end suite, reviewing visual design, browsing external sites, or checking a deployed environment unless the user names one, or proving non-UI work before completion (repertoire:verification-gate)./commit-and-pr-authorTurns a session's changes into a reviewable history. Splits unrelated changes into separate commits, writes each message to the repository's commit convention (discovered first) with the why taken from the conversation, and fills a pull request description with the problem, approach, rejected alternatives, the verification commands actually run with their output, and where to review first. Use when work is ready to commit or a pull request needs writing. Never pushes or opens the pull request unless asked. Not for reviewing the change (/repertoire:review-change), not for fixing CI or review comments on an open pull request (pr-shepherd, taking-review-feedback), and not for merging.npx claudepluginhub stevekinney/repertoire --plugin repertoireOther plugins' skills for the same job