一键导入
spec-ears-analysis
Analyze requirement statements (FR/NFR/StR) for EARS requirement-grammar conformance and author a SpecReview of the findings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze requirement statements (FR/NFR/StR) for EARS requirement-grammar conformance and author a SpecReview of the findings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | spec-ears-analysis |
| description | Analyze requirement statements (FR/NFR/StR) for EARS requirement-grammar conformance and author a SpecReview of the findings. |
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
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.
Add the semantic judgment (what the engine cannot check deterministically):
When … statement describe a momentary
event, or is it really a continuous While … state (or vice-versa)?When … instead of If … then ….Author the SpecReview. Fetch the template once:
quoin write --types SpecReview
Write one document to spec/reviews/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 . "spec/reviews/ears-conformance.md"
Fix any structural errors in the review doc. The doc syncs into filament-core
as a SpecReview artifact like every other analysis lens.
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.Convert ISO spec requirements (StR, FR, NFR) into a TDD-based project plan with dependency analysis, parallel execution tracks, quality gates, and task decomposition. Selects or starts a plan and writes a frontmatter-typed plan bundle under plan/<Plan-id>-<slug>/ (Plan + Task + index + log).
Create or update spec artifacts from a design or change request. Orchestrates authoring each requested requirement type (StR/US/FR/NFR/IT) as a discrete file using quoin catalog templates and Quire validation.
Build and maintain the requirements Test Matrix ensuring 100% coverage.
Review requirements for quality, consistency, and completeness.
Verify a targeted plan is complete and validated — every task done, the Test Matrix backed by real tracking tags in tests, and code fully traced to spec (flagging underspecified code with no owning requirement). Optional semantic review checks that intent↔test↔code actually agree. Emits a quire-validated SpecReview artifact to reviews/YY-MM-DD-<slug>.md.
Convert validated requirements into an implementation plan.