specpro-cli 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. specpro_cli/__init__.py +16 -0
  2. specpro_cli/assets/commands/specpro.analyze.md +1102 -0
  3. specpro_cli/assets/commands/specpro.checklist.md +335 -0
  4. specpro_cli/assets/commands/specpro.clarify.md +581 -0
  5. specpro_cli/assets/commands/specpro.constitution.md +488 -0
  6. specpro_cli/assets/commands/specpro.feature.md +115 -0
  7. specpro_cli/assets/commands/specpro.implement.md +1881 -0
  8. specpro_cli/assets/commands/specpro.manual-test.md +206 -0
  9. specpro_cli/assets/commands/specpro.plan.md +3284 -0
  10. specpro_cli/assets/commands/specpro.qc.md +1489 -0
  11. specpro_cli/assets/commands/specpro.scenarios.md +154 -0
  12. specpro_cli/assets/commands/specpro.specify.md +1449 -0
  13. specpro_cli/assets/commands/specpro.status.md +863 -0
  14. specpro_cli/assets/commands/specpro.tasks.md +1207 -0
  15. specpro_cli/assets/commands/specpro.test-implement.md +462 -0
  16. specpro_cli/assets/commands/specpro.test-plan.md +383 -0
  17. specpro_cli/assets/commands/specpro.user-manual.md +178 -0
  18. specpro_cli/assets/scripts/bash/check-anti-coupling.sh +293 -0
  19. specpro_cli/assets/scripts/bash/check-prerequisites.sh +176 -0
  20. specpro_cli/assets/scripts/bash/common.sh +88 -0
  21. specpro_cli/assets/scripts/bash/create-new-feature.sh +336 -0
  22. specpro_cli/assets/scripts/bash/qc-auto-fix.sh +121 -0
  23. specpro_cli/assets/scripts/bash/setup-plan.sh +60 -0
  24. specpro_cli/assets/scripts/bash/verify-cumulative-records.sh +203 -0
  25. specpro_cli/assets/scripts/bash/verify-deliverables-tracked.sh +147 -0
  26. specpro_cli/assets/scripts/bash/verify-deployment.sh +239 -0
  27. specpro_cli/assets/scripts/bash/verify-frontmatter-yaml.sh +63 -0
  28. specpro_cli/assets/scripts/bash/verify-ledger.sh +376 -0
  29. specpro_cli/assets/scripts/bash/verify-shapes.sh +1082 -0
  30. specpro_cli/assets/scripts/git-hooks/pre-commit +243 -0
  31. specpro_cli/assets/scripts/install-git-hooks.sh +67 -0
  32. specpro_cli/assets/scripts/powershell/check-anti-coupling.ps1 +249 -0
  33. specpro_cli/assets/scripts/powershell/check-prerequisites.ps1 +148 -0
  34. specpro_cli/assets/scripts/powershell/common.ps1 +95 -0
  35. specpro_cli/assets/scripts/powershell/create-new-feature.ps1 +229 -0
  36. specpro_cli/assets/scripts/powershell/qc-auto-fix.ps1 +110 -0
  37. specpro_cli/assets/scripts/powershell/setup-plan.ps1 +61 -0
  38. specpro_cli/assets/scripts/powershell/verify-cumulative-records.ps1 +133 -0
  39. specpro_cli/assets/scripts/powershell/verify-deliverables-tracked.ps1 +112 -0
  40. specpro_cli/assets/scripts/powershell/verify-deployment.ps1 +278 -0
  41. specpro_cli/assets/scripts/powershell/verify-frontmatter-yaml.ps1 +56 -0
  42. specpro_cli/assets/scripts/powershell/verify-ledger.ps1 +383 -0
  43. specpro_cli/assets/scripts/powershell/verify-shapes.ps1 +978 -0
  44. specpro_cli/assets/templates/agent-context-template.md +49 -0
  45. specpro_cli/assets/templates/assumptions-template.md +248 -0
  46. specpro_cli/assets/templates/checklist-template.md +40 -0
  47. specpro_cli/assets/templates/clarifications-template.md +155 -0
  48. specpro_cli/assets/templates/constitution-template.md +50 -0
  49. specpro_cli/assets/templates/feature-spec-template.md +66 -0
  50. specpro_cli/assets/templates/plan-overview-template.md +150 -0
  51. specpro_cli/assets/templates/plan-template.md +387 -0
  52. specpro_cli/assets/templates/protocol-golden-bytes-guide.md +195 -0
  53. specpro_cli/assets/templates/requirements-template.md +356 -0
  54. specpro_cli/assets/templates/spec-template.md +267 -0
  55. specpro_cli/assets/templates/tasks-template.md +252 -0
  56. specpro_cli/assets/templates/test-tasks-template.md +174 -0
  57. specpro_cli/cli/__init__.py +5 -0
  58. specpro_cli/cli/cmd_init.py +416 -0
  59. specpro_cli/cli/cmd_remove.py +122 -0
  60. specpro_cli/cli/entry.py +181 -0
  61. specpro_cli/integrations/__init__.py +36 -0
  62. specpro_cli/integrations/base.py +601 -0
  63. specpro_cli/integrations/claude/__init__.py +101 -0
  64. specpro_cli/integrations/copilot/__init__.py +153 -0
  65. specpro_cli/integrations/cursor_agent/__init__.py +51 -0
  66. specpro_cli/integrations/gemini/__init__.py +44 -0
  67. specpro_cli/integrations/opencode/__init__.py +48 -0
  68. specpro_cli/integrations/qodercli/__init__.py +54 -0
  69. specpro_cli/integrations/registry.py +88 -0
  70. specpro_cli/packaged/__init__.py +5 -0
  71. specpro_cli/packaged/sync.py +106 -0
  72. specpro_cli-0.1.0.dist-info/METADATA +117 -0
  73. specpro_cli-0.1.0.dist-info/RECORD +76 -0
  74. specpro_cli-0.1.0.dist-info/WHEEL +4 -0
  75. specpro_cli-0.1.0.dist-info/entry_points.txt +2 -0
  76. specpro_cli-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,335 @@
1
+ ---
2
+ description: Generate a custom checklist for the current feature based on user requirements.
3
+ writes:
4
+ # This command's write surface: only what it produces AS THE PRODUCER of that
5
+ # (artifact, unit) pair. A write this command makes on a non-producer path is a
6
+ # boundary violation by definition (FR-051) and MUST NOT be declared here.
7
+ # The full ownership map is the UNION of every command's writes: block.
8
+ - artifact: specs/checklists/<domain>.md
9
+ unit: "whole file for a new domain; for an existing domain the appended item block under its ## sections (CHK IDs never reset)"
10
+ ---
11
+
12
+ ## Checklist Purpose: "Unit Tests for English"
13
+
14
+ **CRITICAL CONCEPT**: Checklists are **UNIT TESTS FOR REQUIREMENTS WRITING** - they validate the quality, clarity, and completeness of requirements in a given domain.
15
+
16
+ **NOT for verification/testing**:
17
+
18
+ - ❌ NOT "Verify the button clicks correctly"
19
+ - ❌ NOT "Test error handling works"
20
+ - ❌ NOT "Confirm the API returns 200"
21
+ - ❌ NOT checking if code/implementation matches the spec
22
+
23
+ **FOR requirements quality validation**:
24
+
25
+ - ✅ "Are visual hierarchy requirements defined for all card types?" (completeness)
26
+ - ✅ "Is 'prominent display' quantified with specific sizing/positioning?" (clarity)
27
+ - ✅ "Are hover state requirements consistent across all interactive elements?" (consistency)
28
+ - ✅ "Are accessibility requirements defined for keyboard navigation?" (coverage)
29
+ - ✅ "Does the spec define what happens when logo image fails to load?" (edge cases)
30
+
31
+ **Metaphor**: If your spec is code written in English, the checklist is its unit test suite. You're testing whether the requirements are well-written, complete, unambiguous, and ready for implementation - NOT whether the implementation works.
32
+
33
+ ## User Input
34
+
35
+ ```text
36
+ $ARGUMENTS
37
+ ```
38
+
39
+ You **MUST** consider the user input before proceeding (if not empty).
40
+
41
+ **Rerun safety — detect the artifact, default to incremental** ⚠️ [settled 2026-09-13]:
42
+
43
+ **Before writing the checklist file, detect whether it already exists.** The filename is derived from the checklist domain chosen in Step 5 (`ux.md`, `api.md`, `security.md`, …) — substitute it below:
44
+
45
+ ```bash
46
+ # Example for the `ux` domain:
47
+ [ -s specs/checklists/ux.md ] && echo EXISTS || echo NEW # -s: exists AND non-empty (an empty placeholder counts as NEW)
48
+ ```
49
+
50
+ A domain whose file does not yet exist gets a **new** file; a domain whose file already exists is **appended to**, never replaced — the same detect-then-increment discipline as every other command.
51
+
52
+ | Detection | Mode |
53
+ |-----------|------|
54
+ | **NEW** (absent or empty) | **Initial** — generate from scratch |
55
+ | **EXISTS** | **Incremental** — evolve it; **never silently regenerate from scratch** |
56
+
57
+ **Overwriting an existing artifact requires explicit, confirmed intent:**
58
+ 1. Only when the user *explicitly* asks (in their own words) does the initial path run on an existing artifact.
59
+ 2. **Even then, confirm once more before writing** — name the artifact that will be replaced and what will be lost; wait for the answer.
60
+ 3. **Silence is not consent.** An unspecified run on an existing artifact is ALWAYS incremental.
61
+
62
+ > **Why a shared rule rather than per-command courtesy**: nine of the twelve non-implementation commands already had some protection, but each wrote it its own way (`EXISTING_SPEC` check · "creates a NEW file" · `NEVER overwrite` · "incremental regeneration" · `AUTO_MODE=false`), and **three had none at all** — not by decision, but because the discipline had no shared carrier. Overwriting an artifact the user has been evolving is not recoverable within the session; the cost of asking is one prompt.
63
+
64
+
65
+ ### Scope Resolution 🆕 (FR-063 / T050 · v0.23)
66
+
67
+ 1. **作用域判定**: 当前工作目录位于 `specs/fNNN-简称/` 内 ⇒ **feature 作用域**(读写范围 = 本 feature 目录,由 `check-prerequisites.sh` 的作用域感知解析);位于仓库根或 `specs/` 根 ⇒ **母作用域**(读写母规格链)。feature 作用域内 MUST NOT 写母产物——唯一例外:**发现登记**(台账路由,`[specify]`/`[plan]` 分区)。
68
+ 2. **新会话首次执行**: 若 `specs/features.md` 存在且含 `active` 行、而用户未指明作用域 ⇒ **询问用户**在母作用域还是某个 feature 内工作,MUST NOT 自行挑选。
69
+ 3. 本命令的产物路径随之解析:feature 作用域下落 `<feature 目录>/`,母作用域下落 `specs/`。
70
+
71
+ ## Execution Steps
72
+
73
+ 1. **Setup**: Run `.specpro/scripts/bash/check-prerequisites.sh --json` from repo root and parse JSON for FEATURE_DIR and AVAILABLE_DOCS list.
74
+ - All file paths must be absolute.
75
+ - For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
76
+
77
+ 2. **Clarify intent (dynamic)**: Derive up to THREE initial contextual clarifying questions (no pre-baked catalog). They MUST:
78
+ - Be generated from the user's phrasing + extracted signals from spec/plan/tasks
79
+ - Only ask about information that materially changes checklist content
80
+ - Be skipped individually if already unambiguous in `$ARGUMENTS`
81
+ - Prefer precision over breadth
82
+
83
+ Generation algorithm:
84
+ 1. Extract signals: feature domain keywords (e.g., auth, latency, UX, API), risk indicators ("critical", "must", "compliance"), stakeholder hints ("QA", "review", "security team"), and explicit deliverables ("a11y", "rollback", "contracts").
85
+ 2. Cluster signals into candidate focus areas (max 4) ranked by relevance.
86
+ 3. Identify probable audience & timing (author, reviewer, QA, release) if not explicit.
87
+ 4. Detect missing dimensions: scope breadth, depth/rigor, risk emphasis, exclusion boundaries, measurable acceptance criteria.
88
+ 5. Formulate questions chosen from these archetypes:
89
+ - Scope refinement (e.g., "Should this include integration touchpoints with X and Y or stay limited to local module correctness?")
90
+ - Risk prioritization (e.g., "Which of these potential risk areas should receive mandatory gating checks?")
91
+ - Depth calibration (e.g., "Is this a lightweight pre-commit sanity list or a formal release gate?")
92
+ - Audience framing (e.g., "Will this be used by the author only or peers during PR review?")
93
+ - Boundary exclusion (e.g., "Should we explicitly exclude performance tuning items this round?")
94
+ - Scenario class gap (e.g., "No recovery flows detected—are rollback / partial failure paths in scope?")
95
+
96
+ Question formatting rules:
97
+ - If presenting options, generate a compact table with columns: Option | Candidate | Why It Matters
98
+ - Limit to A–E options maximum; omit table if a free-form answer is clearer
99
+ - Never ask the user to restate what they already said
100
+ - Avoid speculative categories (no hallucination). If uncertain, ask explicitly: "Confirm whether X belongs in scope."
101
+
102
+ Defaults when interaction impossible:
103
+ - Depth: Standard
104
+ - Audience: Reviewer (PR) if code-related; Author otherwise
105
+ - Focus: Top 2 relevance clusters
106
+
107
+ Output the questions (label Q1/Q2/Q3). After answers: if ≥2 scenario classes (Alternate / Exception / Recovery / Non-Functional domain) remain unclear, you MAY ask up to TWO more targeted follow‑ups (Q4/Q5) with a one-line justification each (e.g., "Unresolved recovery path risk"). Do not exceed five total questions. Skip escalation if user explicitly declines more.
108
+
109
+ 3. **Understand user request**: Combine `$ARGUMENTS` + clarifying answers:
110
+ - Derive checklist theme (e.g., security, review, deploy, ux)
111
+ - Consolidate explicit must-have items mentioned by user
112
+ - Map focus selections to category scaffolding
113
+ - Infer any missing context from spec/plan/tasks (do NOT hallucinate)
114
+
115
+ 4. **Load feature context**: Read from FEATURE_DIR:
116
+ - spec.md: Feature requirements and scope
117
+ - plan.md (if exists): Technical details, dependencies
118
+ - tasks.md (if exists): Implementation tasks
119
+
120
+ **Context Loading Strategy**:
121
+ - Load only necessary portions relevant to active focus areas (avoid full-file dumping)
122
+ - Prefer summarizing long sections into concise scenario/requirement bullets
123
+ - Use progressive disclosure: add follow-on retrieval only if gaps detected
124
+ - If source docs are large, generate interim summary items instead of embedding raw text
125
+
126
+ 5. **Generate checklist** - Create "Unit Tests for Requirements":
127
+ - Create `FEATURE_DIR/checklists/` directory if it doesn't exist
128
+ - Generate unique checklist filename:
129
+ - Use short, descriptive name based on domain (e.g., `ux.md`, `api.md`, `security.md`)
130
+ - Format: `[domain].md`
131
+ - If file exists, append to existing file
132
+ - Number items sequentially starting from CHK001
133
+ - A **domain whose file does not yet exist** gets a new file; a **domain whose file already exists is appended to**, never replaced — **item IDs are never reset** (see the rerun-safety rule above, which this line previously contradicted by claiming every run creates a new file, 2026-09-17)
134
+
135
+ **CORE PRINCIPLE - Test the Requirements, Not the Implementation**:
136
+ Every checklist item MUST evaluate the REQUIREMENTS THEMSELVES for:
137
+ - **Completeness**: Are all necessary requirements present?
138
+ - **Clarity**: Are requirements unambiguous and specific?
139
+ - **Consistency**: Do requirements align with each other?
140
+ - **Measurability**: Can requirements be objectively verified?
141
+ - **Coverage**: Are all scenarios/edge cases addressed?
142
+
143
+ **Category Structure** - Group items by requirement quality dimensions:
144
+ - **Requirement Completeness** (Are all necessary requirements documented?)
145
+ - **Requirement Clarity** (Are requirements specific and unambiguous?)
146
+ - **Requirement Consistency** (Do requirements align without conflicts?)
147
+ - **Acceptance Criteria Quality** (Are success criteria measurable?)
148
+ - **Scenario Coverage** (Are all flows/cases addressed?)
149
+ - **Edge Case Coverage** (Are boundary conditions defined?)
150
+ - **Non-Functional Requirements** (Performance, Security, Accessibility, etc. - are they specified?)
151
+ - **Dependencies & Assumptions** (Are they documented and validated?)
152
+ - **Ambiguities & Conflicts** (What needs clarification?)
153
+
154
+ **HOW TO WRITE CHECKLIST ITEMS - "Unit Tests for English"**:
155
+
156
+ ❌ **WRONG** (Testing implementation):
157
+ - "Verify landing page displays 3 episode cards"
158
+ - "Test hover states work on desktop"
159
+ - "Confirm logo click navigates home"
160
+
161
+ ✅ **CORRECT** (Testing requirements quality):
162
+ - "Are the exact number and layout of featured episodes specified?" [Completeness]
163
+ - "Is 'prominent display' quantified with specific sizing/positioning?" [Clarity]
164
+ - "Are hover state requirements consistent across all interactive elements?" [Consistency]
165
+ - "Are keyboard navigation requirements defined for all interactive UI?" [Coverage]
166
+ - "Is the fallback behavior specified when logo image fails to load?" [Edge Cases]
167
+ - "Are loading states defined for asynchronous episode data?" [Completeness]
168
+ - "Does the spec define visual hierarchy for competing UI elements?" [Clarity]
169
+
170
+ **ITEM STRUCTURE**:
171
+ Each item should follow this pattern:
172
+ - Question format asking about requirement quality
173
+ - Focus on what's WRITTEN (or not written) in the spec/plan
174
+ - Include quality dimension in brackets [Completeness/Clarity/Consistency/etc.]
175
+ - Reference spec section `[Spec §X.Y]` when checking existing requirements
176
+ - Use `[Gap]` marker when checking for missing requirements
177
+
178
+ **EXAMPLES BY QUALITY DIMENSION**:
179
+
180
+ Completeness:
181
+ - "Are error handling requirements defined for all API failure modes? [Gap]"
182
+ - "Are accessibility requirements specified for all interactive elements? [Completeness]"
183
+ - "Are mobile breakpoint requirements defined for responsive layouts? [Gap]"
184
+
185
+ Clarity:
186
+ - "Is 'fast loading' quantified with specific timing thresholds? [Clarity, Spec §NFR-2]"
187
+ - "Are 'related episodes' selection criteria explicitly defined? [Clarity, Spec §FR-5]"
188
+ - "Is 'prominent' defined with measurable visual properties? [Ambiguity, Spec §FR-4]"
189
+
190
+ Consistency:
191
+ - "Do navigation requirements align across all pages? [Consistency, Spec §FR-10]"
192
+ - "Are card component requirements consistent between landing and detail pages? [Consistency]"
193
+
194
+ Coverage:
195
+ - "Are requirements defined for zero-state scenarios (no episodes)? [Coverage, Edge Case]"
196
+ - "Are concurrent user interaction scenarios addressed? [Coverage, Gap]"
197
+ - "Are requirements specified for partial data loading failures? [Coverage, Exception Flow]"
198
+
199
+ Measurability:
200
+ - "Are visual hierarchy requirements measurable/testable? [Acceptance Criteria, Spec §FR-1]"
201
+ - "Can 'balanced visual weight' be objectively verified? [Measurability, Spec §FR-2]"
202
+
203
+ **Scenario Classification & Coverage** (Requirements Quality Focus):
204
+ - Check if requirements exist for: Primary, Alternate, Exception/Error, Recovery, Non-Functional scenarios
205
+ - For each scenario class, ask: "Are [scenario type] requirements complete, clear, and consistent?"
206
+ - If scenario class missing: "Are [scenario type] requirements intentionally excluded or missing? [Gap]"
207
+ - Include resilience/rollback when state mutation occurs: "Are rollback requirements defined for migration failures? [Gap]"
208
+
209
+ **Traceability Requirements**:
210
+ - MINIMUM: ≥80% of items MUST include at least one traceability reference
211
+ - Each item should reference: spec section `[Spec §X.Y]`, or use markers: `[Gap]`, `[Ambiguity]`, `[Conflict]`, `[Assumption]`
212
+ - If no ID system exists: "Is a requirement & acceptance criteria ID scheme established? [Traceability]"
213
+
214
+ **Surface & Resolve Issues** (Requirements Quality Problems):
215
+ Ask questions about the requirements themselves:
216
+ - Ambiguities: "Is the term 'fast' quantified with specific metrics? [Ambiguity, Spec §NFR-1]"
217
+ - Conflicts: "Do navigation requirements conflict between §FR-10 and §FR-10a? [Conflict]"
218
+ - Assumptions: "Is the assumption of 'always available podcast API' validated? [Assumption]"
219
+ - Dependencies: "Are external podcast API requirements documented? [Dependency, Gap]"
220
+ - Missing definitions: "Is 'visual hierarchy' defined with measurable criteria? [Gap]"
221
+
222
+ **Content Consolidation**:
223
+ - Soft cap: If raw candidate items > 40, prioritize by risk/impact
224
+ - Merge near-duplicates checking the same requirement aspect
225
+ - If >5 low-impact edge cases, create one item: "Are edge cases X, Y, Z addressed in requirements? [Coverage]"
226
+
227
+ **🚫 ABSOLUTELY PROHIBITED** - These make it an implementation test, not a requirements test:
228
+ - ❌ Any item starting with "Verify", "Test", "Confirm", "Check" + implementation behavior
229
+ - ❌ References to code execution, user actions, system behavior
230
+ - ❌ "Displays correctly", "works properly", "functions as expected"
231
+ - ❌ "Click", "navigate", "render", "load", "execute"
232
+ - ❌ Test cases, test plans, QA procedures
233
+ - ❌ Implementation details (frameworks, APIs, algorithms)
234
+
235
+ **✅ REQUIRED PATTERNS** - These test requirements quality:
236
+ - ✅ "Are [requirement type] defined/specified/documented for [scenario]?"
237
+ - ✅ "Is [vague term] quantified/clarified with specific criteria?"
238
+ - ✅ "Are requirements consistent between [section A] and [section B]?"
239
+ - ✅ "Can [requirement] be objectively measured/verified?"
240
+ - ✅ "Are [edge cases/scenarios] addressed in requirements?"
241
+ - ✅ "Does the spec define [missing aspect]?"
242
+
243
+ 6. **Structure Reference**: Generate the checklist following the canonical template in `.specpro/templates/checklist-template.md` for title, meta section, category headings, and ID formatting. If template is unavailable, use: H1 title, purpose/created meta lines, `##` category sections containing `- [ ] CHK### <requirement item>` lines with globally incrementing IDs starting at CHK001.
244
+
245
+ 7. **Report**: Output full path to the checklist, item count, and — ⚠️ **state which of the two happened** (`T174`):
246
+ **created** (the file did not exist) or **appended to** (it did). 本节此前写的是 remind user that **each run
247
+ creates a new file**,而 Step 5 明写 a domain whose file already exists is **appended to**, never replaced —
248
+ **item IDs are never reset** ⇒ **同一份文档两处对同一件事给出相反的说明**,而「每次新建」会让用户以为
249
+ 上一轮的条目没了。Summarize:
250
+ - Focus areas selected
251
+ - Depth level
252
+ - Actor/timing
253
+ - Any explicit user-specified must-have items incorporated
254
+
255
+ **Important**: Each `/specpro-checklist` command invocation creates a checklist file using short, descriptive names unless file already exists. This allows:
256
+
257
+ - Multiple checklists of different types (e.g., `ux.md`, `test.md`, `security.md`)
258
+ - Simple, memorable filenames that indicate checklist purpose
259
+ - Easy identification and navigation in the `checklists/` folder
260
+
261
+ To avoid clutter, use descriptive types and clean up obsolete checklists when done.
262
+
263
+ ## Example Checklist Types & Sample Items
264
+
265
+ **UX Requirements Quality:** `ux.md`
266
+
267
+ Sample items (testing the requirements, NOT the implementation):
268
+
269
+ - "Are visual hierarchy requirements defined with measurable criteria? [Clarity, Spec §FR-1]"
270
+ - "Is the number and positioning of UI elements explicitly specified? [Completeness, Spec §FR-1]"
271
+ - "Are interaction state requirements (hover, focus, active) consistently defined? [Consistency]"
272
+ - "Are accessibility requirements specified for all interactive elements? [Coverage, Gap]"
273
+ - "Is fallback behavior defined when images fail to load? [Edge Case, Gap]"
274
+ - "Can 'prominent display' be objectively measured? [Measurability, Spec §FR-4]"
275
+
276
+ **API Requirements Quality:** `api.md`
277
+
278
+ Sample items:
279
+
280
+ - "Are error response formats specified for all failure scenarios? [Completeness]"
281
+ - "Are rate limiting requirements quantified with specific thresholds? [Clarity]"
282
+ - "Are authentication requirements consistent across all endpoints? [Consistency]"
283
+ - "Are retry/timeout requirements defined for external dependencies? [Coverage, Gap]"
284
+ - "Is versioning strategy documented in requirements? [Gap]"
285
+
286
+ **Performance Requirements Quality:** `performance.md`
287
+
288
+ Sample items:
289
+
290
+ - "Are performance requirements quantified with specific metrics? [Clarity]"
291
+ - "Are performance targets defined for all critical user journeys? [Coverage]"
292
+ - "Are performance requirements under different load conditions specified? [Completeness]"
293
+ - "Can performance requirements be objectively measured? [Measurability]"
294
+ - "Are degradation requirements defined for high-load scenarios? [Edge Case, Gap]"
295
+
296
+ **Security Requirements Quality:** `security.md`
297
+
298
+ Sample items:
299
+
300
+ - "Are authentication requirements specified for all protected resources? [Coverage]"
301
+ - "Are data protection requirements defined for sensitive information? [Completeness]"
302
+ - "Is the threat model documented and requirements aligned to it? [Traceability]"
303
+ - "Are security requirements consistent with compliance obligations? [Consistency]"
304
+ - "Are security failure/breach response requirements defined? [Gap, Exception Flow]"
305
+
306
+ ## Anti-Examples: What NOT To Do
307
+
308
+ **❌ WRONG - These test implementation, not requirements:**
309
+
310
+ ```markdown
311
+ - [ ] CHK001 - Verify landing page displays 3 episode cards [Spec §FR-xxx]
312
+ - [ ] CHK002 - Test hover states work correctly on desktop [Spec §FR-xxx]
313
+ - [ ] CHK003 - Confirm logo click navigates to home page [Spec §FR-xxx]
314
+ - [ ] CHK004 - Check that related episodes section shows 3-5 items [Spec §FR-xxx]
315
+ ```
316
+
317
+ **✅ CORRECT - These test requirements quality:**
318
+
319
+ ```markdown
320
+ - [ ] CHK001 - Are the number and layout of featured episodes explicitly specified? [Completeness, Spec §FR-xxx]
321
+ - [ ] CHK002 - Are hover state requirements consistently defined for all interactive elements? [Consistency, Spec §FR-xxx]
322
+ - [ ] CHK003 - Are navigation requirements clear for all clickable brand elements? [Clarity, Spec §FR-xxx]
323
+ - [ ] CHK004 - Is the selection criteria for related episodes documented? [Gap, Spec §FR-xxx]
324
+ - [ ] CHK005 - Are loading state requirements defined for asynchronous episode data? [Gap]
325
+ - [ ] CHK006 - Can "visual hierarchy" requirements be objectively measured? [Measurability, Spec §FR-xxx]
326
+ ```
327
+
328
+ **Key Differences:**
329
+
330
+ - Wrong: Tests if the system works correctly
331
+ - Correct: Tests if the requirements are written correctly
332
+ - Wrong: Verification of behavior
333
+ - Correct: Validation of requirement quality
334
+ - Wrong: "Does it do X?"
335
+ - Correct: "Is X clearly specified?"