/quoin:spec-reviewfrom quoin
Validates requirements artefacts before implementation using quality gates from a checklist. Measures diffs, selects review scope (small/large), and records method choices without asking the user.
Ships in quoin. 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.
If this plugin is not initialized or an Agent IX command fails, read the quoin setup guide for its prerequisites and local diagnosis.
Use this skill to validate requirements artefacts before implementation.
See references/checklist.md for the detailed quality gates.
Inspect applicable active AssuranceProfile documents using the installed catalog.
The current contract is review_policy.mode (recommend or require) and
review_policy.operations (spec-review, code-review, gap-analysis).
Record the actual profile paths and an applicability disposition, or explicitly
state why none applies. Resolve ambiguous applicability with the owner.
A required spec-review operation needs an accepted enforced review run.
The profile does not select individual analysis lenses. Requirements for
code-review or gap-analysis remain separate operations; a specification
review cannot mark those complete. Never author or interpret review_selection.
Review effort is proportional to the change. The agent measures the change, selects the methods itself, and records the choice. It never stops to ask the user which methods to run; ask only when the review would otherwise be impossible (no diff or target can be determined, or profile applicability is ambiguous). The user may still name methods up front; follow that instead.
Measure from the diff (git diff --name-status <base>...HEAD and the changed
hunks). Classify each touched file and requirement id by what changed:
refines, depends, and similar),Count the requirements touched and the cross-references the change adds or alters.
One count rule decides the scope:
| Scope | Condition |
|---|---|
| Small | At most 3 requirements touched, and no ADR, no shared type or format change, and no new rule spanning areas. Review the changed text, the requirements it links to by frontmatter relationships, the tests and code criteria it constrains, and the sibling requirement that must agree. |
| Large | 4 or more requirements touched, or any ADR or shared type or format change, or a new rule spanning areas (including a change of who owns a responsibility or boundary). Review every requirement touched and its linked neighbours. |
Small scope never reads the whole spec tree. Frontmatter-link-only, test-row-only and typo edits are always small unless they touch 4 or more requirements.
Base (the Checklist, scoped to the changed text and its neighbours) always runs. Add methods by what the change needs:
| What changed | Scope | Methods added to base |
|---|---|---|
| Frontmatter links only | Small | dependency (links check only) |
| Test-case rows only | Small | evidence on the touched criteria |
| Wording change in one requirement | Small | ears-conformance and integrity, on that requirement |
| New criterion or rule in 1 to 3 requirements | Small | ears-conformance, integrity, evidence on those requirements |
| New rule across routes or several requirements (4 or more, or spanning areas) | Large | integrity, dependency, object review (spec-object-review), failure-domain |
| Restructure, new shared type or format | Large | the row above plus scope-boundary |
| New component, responsibility or interface boundary | Large | scope-boundary, dependency, integrity |
| Volatile, novel or hard to estimate requirement | either | risk-complexity |
| ADR or security-relevant change (trust boundary, authz, secrets, input handling) | Large for an ADR, else as measured | the matching rows above plus spec-security-analysis |
| Criteria that may be unfalsifiable | either | spec-criterion-strength-analysis on those criteria |
A small change never gets the four-method set (integrity, dependency, object review, failure-domain); that set is for large changes.
Rows combine: take the union. Run only the methods the union names. The seven
lenses are failure-domain, integrity, dependency, evidence, risk-complexity,
scope-boundary and ears-conformance (skills spec-failure-domain-analysis,
spec-integrity-analysis, spec-dependency-analysis, spec-evidence-analysis,
spec-risk-complexity-analysis, spec-scope-boundary-analysis,
spec-ears-analysis). Object review, security and criterion-strength are
additional direct methods, not enforced-run lenses.
Put this block in every review document, directly under ## Summary, with the
exact heading and keys below so it can be found with grep -A5 "^### Review selection":
### Review selection
- Scope: small | large (measured: <requirements touched>, <what changed>)
- Methods: <comma-separated list, starting with base>
- Reason: <why these methods>
- Skipped: <method: reason; or "none">
The agent fills it in; it is never a question to the user.
In an enforced run, record review_set: base when only base runs, all only
when the table selects all seven lenses, otherwise subset with the chosen
lenses in selected_analyses. Direct-only methods go in the Summary and their
own documents, not in selected_analyses.
After a fix round, check the fix diff only, plus any requirement the fix newly touches (apply sections 1 to 4 to that diff). Do not repeat the full review unless a rule changed; if a rule changed, review that rule and what links to it.
base):
high finding with a FAIL verdict (see the
Hash / Digest / Pin Antipattern section of the Checklist). The fix is removal;
do not accept an existing use as a reason to keep it.quoin write . --types SpecReview
from the target repository — use its skeleton + schema as the contract.SpecReview document per analysis to the repo-root
reviews/YYYY-MM-DD-<slug>-<analysis>.md (plus reviews/YYYY-MM-DD-<slug>-base.md
for the base checklist), the same root gap-analysis uses; never spec/reviews/.
A repo that pins a different review root wins. Findings go in a validated
## Findings table (| ID | Severity | Summary | Refs |, FND-NNN ids, Severity ∈
low/medium/high).quire validate --scope <repo> "spec/**/*.md" and fix any errors.
--scopeis the repository root, and must be passed explicitly. The command derives two roots from it and never interchanges them: spec documents are read from<repo>/speconly, trace tags from the source tree at<repo>excludingspec/. A repo with nospec/exits with a diagnostic naming the missing document root rather than scanning the whole tree, and a matrix outsidespec/(a fixture, aplan/copy) mints nothing. A relative glob resolves under--scopeonly in scoped mode (no--module); with--moduleit resolves against the process working directory, and an omitted--scopedefaults to.— so a run launched from a parent directory validates the wrong tree and exits 0 for whatever it matched.
- Do not proceed to implementation until reviewed.
This installed skill contains workflows/review/def.yaml. Start from the subject
repository, using the absolute directory containing this SKILL.md:
ix-flow run review --path <this-skill-directory> --id <run-id> --target <repo-relative-path> --json
Before advancing, use ix-flow add-item <run-id> quoin_context --item '<json>'
to record exactly one item with id: quoin-launch-context, absolute repo_root,
absolute config_root (normally ~/.ix), and absolute contained targets.
Alternatively quoin review --path <this-skill-directory> --target <repo-relative-path> --id <run-id> --json starts the same definition and initializes that context.
Both commands require the installed ix-flow CLI >=0.3.1 and Quoin CLI >=0.29.1
on PATH. The plugin supplies the definitions; no archived provider is used.
Use the same --config-root and --state-dir for every ix-flow command.
See workflow instructions. Record the request interview with review_set,
selected_analyses, assurance_profiles, and profile_disposition. Register
one review_doc item per analysis, including base, with its id, analysis,
and repository-relative path. The Rust provider opens and validates every
required document before validation and again before acceptance. Names or old
validation claims alone cannot pass. all always includes the seven lenses above; the agent chooses the set (see Review scope and method selection).
The final transition requires explicit human acknowledgement; never automatically acknowledge it. A failed enforced run cannot be claimed complete from direct analyses. Direct review remains available when no applicable policy requires an enforced spec-review operation. The gate verifies artifact validity, not reasoning quality. Existing documents can be registered in a new owned run and revalidated; old external-provider runs are not silently migrated or retrospectively accepted.
US-1 instead of US-001. -> Fix formatting.The SpecReview this skill emits carries analysis: base — the generic review value — this skill runs the analysis lenses and writes one document per lens, so it is the default rather than a lens of its own.
Stated here because nothing checked it (quoin#202): a skill and its declared output were unlinked, so drift between them was invisible until a document failed validation in an unrelated session.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agent-ix/quoin --plugin quoin23 skills in this plugin
/assurance-status-reportProduce an evidence-backed status report for a Quoin/Quire epic, phase, or assurance campaign. Use when asked for progress, percent complete, before/after metrics, completed-ticket inventory, open-work classification, or readiness for the next phase. The workflow is read-only and does not comment on, close, or modify tickets or repositories./design-gatePropose and check a data-flow design, revise bounded denials, and leave acceptance to a person./formalize-requirementDraft and type-check one QSL rule for a requirement.Other plugins' skills for the same job