/quoin:spec-ears-analysisfrom quoin
Analyzes requirement statements (FR/NFR/StR) for EARS grammar conformance using quire-rs engine and semantic judgment, then authors a SpecReview document.
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.
None: SKILL.md is the whole skill.
If this plugin is not initialized or an Agent IX command fails, read the quoin setup guide for its prerequisites and local diagnosis.
This skill analyzes the natural-language requirement statements in a spec
(FR Description/Behavior/Constraints, NFR Statement, StR Stakeholder Need)
against EARS (Easy Approach to Requirements Syntax), and authors one
SpecReview document recording the findings.
It pairs the deterministic engine check (quire-rs FR-042, the iso-spec-core
grammar) with the semantic judgment the engine cannot make — together they
form the lens.
Run the engine check. From the repo root:
quire validate --scope . "spec/**/*.md" --summary
--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.
Read the `[ears:<check>]` warnings and the `GrammarSummary` line. The engine
flags, per statement:
- `non-singular` — more than one `shall` (can't map cleanly to one AC).
- `vague-response` — `support`/`handle`/`manage`/`process`/`provide`/
`enable`/`be able to` (unverifiable).
- `missing-subject` — no named system/actor before `shall`.
- `non-canonical-trigger` — `On …`/`Upon`/`After`/`During` instead of
`When …`/`While …`.
- `unclassifiable` — has `shall` but matches no EARS pattern.
These are advisory (they never fail `quire validate`); this lens records
them as review findings.
2. Add the semantic judgment (what the engine cannot check deterministically):
- Keyword-vs-intent — does a When … statement describe a momentary
event, or is it really a continuous While … state (or vice-versa)?
- Genuinely concrete response — a statement can pass the vague-verb
lexicon yet still be unmeasurable ("shall be fast", "shall be robust").
- Right pattern for the obligation — an unwanted condition stated as
When … instead of If … then ….
Author the SpecReview. Fetch the template once:
quoin write . --types SpecReview
Write one document to reviews/YYYY-MM-DD-<slug>-ears-conformance.md with
analysis: ears-conformance in the frontmatter, a ## Summary (one or two
sentences: how many statements, how many clean, the dominant defect), and a
validated ## Findings table:
| ID | Severity | Summary | Refs |
|---|---|---|---|
| FND-001 | medium | FR-001 Description packs two shall into one statement — split into atomic requirements | FR-001 |
| FND-002 | low | FR-003 leads with On startup, …; use When the service starts, … | FR-003 |
Severity ∈ low/medium/high. Suggested mapping: non-singular
and missing-subject → medium (they degrade traceability);
vague-response/unclassifiable → medium when the response is truly
unverifiable, else low; non-canonical-trigger → low (cosmetic).
Raise to high any statement whose ambiguity changes what gets built.Refs names the offending FR/NFR/StR id.Validate + record.
quire validate --scope . "reviews/YYYY-MM-DD-<slug>-ears-conformance.md"
Fix any structural errors in the review doc.
As a / I want / So that) and tests are out of scope.quire validate --strict in that repo's CI — --strict escalates
the EARS warnings to a failing exit.The X SHALL: + numbered list is one statement; StR may use a
stakeholder subject; an NFR with no trigger is fine.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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