quantix-mcp 0.5.0 → 0.5.3

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 (213) hide show
  1. package/README.md +12 -1
  2. package/dist/tools/subscriptions.d.ts.map +1 -1
  3. package/dist/tools/subscriptions.js +46 -1
  4. package/dist/tools/subscriptions.js.map +1 -1
  5. package/dist/tools/transactions.d.ts.map +1 -1
  6. package/dist/tools/transactions.js +5 -5
  7. package/dist/tools/transactions.js.map +1 -1
  8. package/dist/types/schemas.d.ts +17 -0
  9. package/dist/types/schemas.d.ts.map +1 -1
  10. package/dist/types/schemas.js +21 -4
  11. package/dist/types/schemas.js.map +1 -1
  12. package/package.json +9 -4
  13. package/.claude/commands/opsx/apply.md +0 -152
  14. package/.claude/commands/opsx/archive.md +0 -157
  15. package/.claude/commands/opsx/bulk-archive.md +0 -242
  16. package/.claude/commands/opsx/continue.md +0 -114
  17. package/.claude/commands/opsx/explore.md +0 -174
  18. package/.claude/commands/opsx/ff.md +0 -94
  19. package/.claude/commands/opsx/new.md +0 -69
  20. package/.claude/commands/opsx/onboard.md +0 -525
  21. package/.claude/commands/opsx/sync.md +0 -134
  22. package/.claude/commands/opsx/verify.md +0 -164
  23. package/.claude/settings.local.json +0 -9
  24. package/.claude/skills/openspec-apply-change/SKILL.md +0 -156
  25. package/.claude/skills/openspec-archive-change/SKILL.md +0 -114
  26. package/.claude/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  27. package/.claude/skills/openspec-continue-change/SKILL.md +0 -118
  28. package/.claude/skills/openspec-explore/SKILL.md +0 -290
  29. package/.claude/skills/openspec-ff-change/SKILL.md +0 -101
  30. package/.claude/skills/openspec-new-change/SKILL.md +0 -74
  31. package/.claude/skills/openspec-onboard/SKILL.md +0 -529
  32. package/.claude/skills/openspec-sync-specs/SKILL.md +0 -138
  33. package/.claude/skills/openspec-verify-change/SKILL.md +0 -168
  34. package/.dockerignore +0 -8
  35. package/.gemini/commands/opsx/apply.toml +0 -149
  36. package/.gemini/commands/opsx/archive.toml +0 -154
  37. package/.gemini/commands/opsx/bulk-archive.toml +0 -239
  38. package/.gemini/commands/opsx/continue.toml +0 -111
  39. package/.gemini/commands/opsx/explore.toml +0 -171
  40. package/.gemini/commands/opsx/ff.toml +0 -91
  41. package/.gemini/commands/opsx/new.toml +0 -66
  42. package/.gemini/commands/opsx/onboard.toml +0 -522
  43. package/.gemini/commands/opsx/sync.toml +0 -131
  44. package/.gemini/commands/opsx/verify.toml +0 -161
  45. package/.gemini/skills/openspec-apply-change/SKILL.md +0 -156
  46. package/.gemini/skills/openspec-archive-change/SKILL.md +0 -114
  47. package/.gemini/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  48. package/.gemini/skills/openspec-continue-change/SKILL.md +0 -118
  49. package/.gemini/skills/openspec-explore/SKILL.md +0 -290
  50. package/.gemini/skills/openspec-ff-change/SKILL.md +0 -101
  51. package/.gemini/skills/openspec-new-change/SKILL.md +0 -74
  52. package/.gemini/skills/openspec-onboard/SKILL.md +0 -529
  53. package/.gemini/skills/openspec-sync-specs/SKILL.md +0 -138
  54. package/.gemini/skills/openspec-verify-change/SKILL.md +0 -168
  55. package/.github/agents/copilot-instructions.md +0 -32
  56. package/.github/agents/speckit.analyze.agent.md +0 -184
  57. package/.github/agents/speckit.checklist.agent.md +0 -294
  58. package/.github/agents/speckit.clarify.agent.md +0 -181
  59. package/.github/agents/speckit.constitution.agent.md +0 -82
  60. package/.github/agents/speckit.implement.agent.md +0 -135
  61. package/.github/agents/speckit.plan.agent.md +0 -89
  62. package/.github/agents/speckit.specify.agent.md +0 -258
  63. package/.github/agents/speckit.tasks.agent.md +0 -137
  64. package/.github/agents/speckit.taskstoissues.agent.md +0 -30
  65. package/.github/copilot-instructions.md +0 -17
  66. package/.github/prompts/speckit.analyze.prompt.md +0 -3
  67. package/.github/prompts/speckit.checklist.prompt.md +0 -3
  68. package/.github/prompts/speckit.clarify.prompt.md +0 -3
  69. package/.github/prompts/speckit.constitution.prompt.md +0 -3
  70. package/.github/prompts/speckit.implement.prompt.md +0 -3
  71. package/.github/prompts/speckit.plan.prompt.md +0 -3
  72. package/.github/prompts/speckit.specify.prompt.md +0 -3
  73. package/.github/prompts/speckit.tasks.prompt.md +0 -3
  74. package/.github/prompts/speckit.taskstoissues.prompt.md +0 -3
  75. package/.github/workflows/publish.yaml +0 -29
  76. package/.opencode/command/speckit.analyze.md +0 -184
  77. package/.opencode/command/speckit.checklist.md +0 -294
  78. package/.opencode/command/speckit.clarify.md +0 -181
  79. package/.opencode/command/speckit.constitution.md +0 -84
  80. package/.opencode/command/speckit.implement.md +0 -135
  81. package/.opencode/command/speckit.plan.md +0 -89
  82. package/.opencode/command/speckit.specify.md +0 -258
  83. package/.opencode/command/speckit.tasks.md +0 -137
  84. package/.opencode/command/speckit.taskstoissues.md +0 -30
  85. package/.qwen/commands/opsx-apply.toml +0 -149
  86. package/.qwen/commands/opsx-archive.toml +0 -154
  87. package/.qwen/commands/opsx-bulk-archive.toml +0 -239
  88. package/.qwen/commands/opsx-continue.toml +0 -111
  89. package/.qwen/commands/opsx-explore.toml +0 -171
  90. package/.qwen/commands/opsx-ff.toml +0 -91
  91. package/.qwen/commands/opsx-new.toml +0 -66
  92. package/.qwen/commands/opsx-onboard.toml +0 -522
  93. package/.qwen/commands/opsx-sync.toml +0 -131
  94. package/.qwen/commands/opsx-verify.toml +0 -161
  95. package/.qwen/skills/openspec-apply-change/SKILL.md +0 -156
  96. package/.qwen/skills/openspec-archive-change/SKILL.md +0 -114
  97. package/.qwen/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  98. package/.qwen/skills/openspec-continue-change/SKILL.md +0 -118
  99. package/.qwen/skills/openspec-explore/SKILL.md +0 -290
  100. package/.qwen/skills/openspec-ff-change/SKILL.md +0 -101
  101. package/.qwen/skills/openspec-new-change/SKILL.md +0 -74
  102. package/.qwen/skills/openspec-onboard/SKILL.md +0 -529
  103. package/.qwen/skills/openspec-sync-specs/SKILL.md +0 -138
  104. package/.qwen/skills/openspec-verify-change/SKILL.md +0 -168
  105. package/.specify/memory/constitution.md +0 -58
  106. package/.specify/scripts/powershell/check-prerequisites.ps1 +0 -148
  107. package/.specify/scripts/powershell/common.ps1 +0 -137
  108. package/.specify/scripts/powershell/create-new-feature.ps1 +0 -283
  109. package/.specify/scripts/powershell/setup-plan.ps1 +0 -61
  110. package/.specify/scripts/powershell/update-agent-context.ps1 +0 -448
  111. package/.specify/templates/agent-file-template.md +0 -28
  112. package/.specify/templates/checklist-template.md +0 -40
  113. package/.specify/templates/constitution-template.md +0 -50
  114. package/.specify/templates/plan-template.md +0 -104
  115. package/.specify/templates/spec-template.md +0 -115
  116. package/.specify/templates/tasks-template.md +0 -251
  117. package/.vscode/launch.json +0 -14
  118. package/.vscode/settings.json +0 -14
  119. package/.vscode/tasks.json +0 -15
  120. package/AGENTS.md +0 -117
  121. package/CLAUDE.md +0 -70
  122. package/Dockerfile +0 -30
  123. package/GEMINI.md +0 -117
  124. package/QWEN.md +0 -117
  125. package/docker-compose.yml +0 -17
  126. package/openapi.yaml +0 -3127
  127. package/openspec/README.md +0 -33
  128. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/.openspec.yaml +0 -2
  129. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/design.md +0 -60
  130. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/proposal.md +0 -25
  131. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/credit-card-transactions/spec.md +0 -46
  132. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/transactions/spec.md +0 -42
  133. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/tasks.md +0 -22
  134. package/openspec/config.yaml +0 -20
  135. package/openspec/specs/accounts/spec.md +0 -86
  136. package/openspec/specs/categories/spec.md +0 -78
  137. package/openspec/specs/credit-card-transactions/spec.md +0 -64
  138. package/openspec/specs/credit-cards/spec.md +0 -109
  139. package/openspec/specs/data/spec.md +0 -49
  140. package/openspec/specs/settings/spec.md +0 -48
  141. package/openspec/specs/subscriptions/spec.md +0 -85
  142. package/openspec/specs/summary/spec.md +0 -49
  143. package/openspec/specs/transactions/spec.md +0 -113
  144. package/openspec/specs/transfers/spec.md +0 -74
  145. package/specs/001-mcp-api-integration/checklists/requirements.md +0 -34
  146. package/specs/001-mcp-api-integration/contracts/openapi.yaml +0 -636
  147. package/specs/001-mcp-api-integration/data-model.md +0 -106
  148. package/specs/001-mcp-api-integration/plan.md +0 -73
  149. package/specs/001-mcp-api-integration/quickstart.md +0 -74
  150. package/specs/001-mcp-api-integration/research.md +0 -58
  151. package/specs/001-mcp-api-integration/spec.md +0 -119
  152. package/specs/001-mcp-api-integration/tasks.md +0 -64
  153. package/src/config.ts +0 -39
  154. package/src/index.ts +0 -116
  155. package/src/services/apiClient.ts +0 -55
  156. package/src/services/requestContext.ts +0 -11
  157. package/src/tools/accounts.ts +0 -122
  158. package/src/tools/categories.ts +0 -102
  159. package/src/tools/credit-cards.ts +0 -203
  160. package/src/tools/data.ts +0 -45
  161. package/src/tools/settings.ts +0 -64
  162. package/src/tools/subscriptions.ts +0 -159
  163. package/src/tools/summary.ts +0 -29
  164. package/src/tools/transactions.ts +0 -200
  165. package/src/tools/transfers.ts +0 -122
  166. package/src/types/schemas.ts +0 -333
  167. package/src/utils/toolHelpers.ts +0 -11
  168. package/tests/benchmark.test.d.ts +0 -2
  169. package/tests/benchmark.test.d.ts.map +0 -1
  170. package/tests/benchmark.test.js +0 -33
  171. package/tests/benchmark.test.js.map +0 -1
  172. package/tests/benchmark.test.ts +0 -38
  173. package/tests/server.test.d.ts +0 -2
  174. package/tests/server.test.d.ts.map +0 -1
  175. package/tests/server.test.js +0 -13
  176. package/tests/server.test.js.map +0 -1
  177. package/tests/server.test.ts +0 -14
  178. package/tests/setup.d.ts +0 -4
  179. package/tests/setup.d.ts.map +0 -1
  180. package/tests/setup.js +0 -17
  181. package/tests/setup.js.map +0 -1
  182. package/tests/setup.ts +0 -20
  183. package/tests/tools/accounts.test.ts +0 -159
  184. package/tests/tools/categories.test.d.ts +0 -2
  185. package/tests/tools/categories.test.d.ts.map +0 -1
  186. package/tests/tools/categories.test.js +0 -63
  187. package/tests/tools/categories.test.js.map +0 -1
  188. package/tests/tools/categories.test.ts +0 -120
  189. package/tests/tools/credit-cards.test.d.ts +0 -2
  190. package/tests/tools/credit-cards.test.d.ts.map +0 -1
  191. package/tests/tools/credit-cards.test.js +0 -71
  192. package/tests/tools/credit-cards.test.js.map +0 -1
  193. package/tests/tools/credit-cards.test.ts +0 -131
  194. package/tests/tools/data.test.ts +0 -100
  195. package/tests/tools/settings.test.ts +0 -116
  196. package/tests/tools/subscriptions.test.ts +0 -173
  197. package/tests/tools/summary.test.d.ts +0 -2
  198. package/tests/tools/summary.test.d.ts.map +0 -1
  199. package/tests/tools/summary.test.js +0 -36
  200. package/tests/tools/summary.test.js.map +0 -1
  201. package/tests/tools/summary.test.ts +0 -63
  202. package/tests/tools/transactions.test.d.ts +0 -2
  203. package/tests/tools/transactions.test.d.ts.map +0 -1
  204. package/tests/tools/transactions.test.js +0 -67
  205. package/tests/tools/transactions.test.js.map +0 -1
  206. package/tests/tools/transactions.test.ts +0 -133
  207. package/tests/tools/transfers.test.ts +0 -141
  208. package/tsconfig.json +0 -52
  209. package/vitest.config.d.ts +0 -3
  210. package/vitest.config.d.ts.map +0 -1
  211. package/vitest.config.js +0 -14
  212. package/vitest.config.js.map +0 -1
  213. package/vitest.config.ts +0 -14
@@ -1,168 +0,0 @@
1
- ---
2
- name: openspec-verify-change
3
- description: Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.
4
- license: MIT
5
- compatibility: Requires openspec CLI.
6
- metadata:
7
- author: openspec
8
- version: "1.0"
9
- generatedBy: "1.1.1"
10
- ---
11
-
12
- Verify that an implementation matches the change artifacts (specs, tasks, design).
13
-
14
- **Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
15
-
16
- **Steps**
17
-
18
- 1. **If no change name provided, prompt for selection**
19
-
20
- Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
21
-
22
- Show changes that have implementation tasks (tasks artifact exists).
23
- Include the schema used for each change if available.
24
- Mark changes with incomplete tasks as "(In Progress)".
25
-
26
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
27
-
28
- 2. **Check status to understand the schema**
29
- ```bash
30
- openspec status --change "<name>" --json
31
- ```
32
- Parse the JSON to understand:
33
- - `schemaName`: The workflow being used (e.g., "spec-driven")
34
- - Which artifacts exist for this change
35
-
36
- 3. **Get the change directory and load artifacts**
37
-
38
- ```bash
39
- openspec instructions apply --change "<name>" --json
40
- ```
41
-
42
- This returns the change directory and context files. Read all available artifacts from `contextFiles`.
43
-
44
- 4. **Initialize verification report structure**
45
-
46
- Create a report structure with three dimensions:
47
- - **Completeness**: Track tasks and spec coverage
48
- - **Correctness**: Track requirement implementation and scenario coverage
49
- - **Coherence**: Track design adherence and pattern consistency
50
-
51
- Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
52
-
53
- 5. **Verify Completeness**
54
-
55
- **Task Completion**:
56
- - If tasks.md exists in contextFiles, read it
57
- - Parse checkboxes: `- [ ]` (incomplete) vs `- [x]` (complete)
58
- - Count complete vs total tasks
59
- - If incomplete tasks exist:
60
- - Add CRITICAL issue for each incomplete task
61
- - Recommendation: "Complete task: <description>" or "Mark as done if already implemented"
62
-
63
- **Spec Coverage**:
64
- - If delta specs exist in `openspec/changes/<name>/specs/`:
65
- - Extract all requirements (marked with "### Requirement:")
66
- - For each requirement:
67
- - Search codebase for keywords related to the requirement
68
- - Assess if implementation likely exists
69
- - If requirements appear unimplemented:
70
- - Add CRITICAL issue: "Requirement not found: <requirement name>"
71
- - Recommendation: "Implement requirement X: <description>"
72
-
73
- 6. **Verify Correctness**
74
-
75
- **Requirement Implementation Mapping**:
76
- - For each requirement from delta specs:
77
- - Search codebase for implementation evidence
78
- - If found, note file paths and line ranges
79
- - Assess if implementation matches requirement intent
80
- - If divergence detected:
81
- - Add WARNING: "Implementation may diverge from spec: <details>"
82
- - Recommendation: "Review <file>:<lines> against requirement X"
83
-
84
- **Scenario Coverage**:
85
- - For each scenario in delta specs (marked with "#### Scenario:"):
86
- - Check if conditions are handled in code
87
- - Check if tests exist covering the scenario
88
- - If scenario appears uncovered:
89
- - Add WARNING: "Scenario not covered: <scenario name>"
90
- - Recommendation: "Add test or implementation for scenario: <description>"
91
-
92
- 7. **Verify Coherence**
93
-
94
- **Design Adherence**:
95
- - If design.md exists in contextFiles:
96
- - Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
97
- - Verify implementation follows those decisions
98
- - If contradiction detected:
99
- - Add WARNING: "Design decision not followed: <decision>"
100
- - Recommendation: "Update implementation or revise design.md to match reality"
101
- - If no design.md: Skip design adherence check, note "No design.md to verify against"
102
-
103
- **Code Pattern Consistency**:
104
- - Review new code for consistency with project patterns
105
- - Check file naming, directory structure, coding style
106
- - If significant deviations found:
107
- - Add SUGGESTION: "Code pattern deviation: <details>"
108
- - Recommendation: "Consider following project pattern: <example>"
109
-
110
- 8. **Generate Verification Report**
111
-
112
- **Summary Scorecard**:
113
- ```
114
- ## Verification Report: <change-name>
115
-
116
- ### Summary
117
- | Dimension | Status |
118
- |--------------|------------------|
119
- | Completeness | X/Y tasks, N reqs|
120
- | Correctness | M/N reqs covered |
121
- | Coherence | Followed/Issues |
122
- ```
123
-
124
- **Issues by Priority**:
125
-
126
- 1. **CRITICAL** (Must fix before archive):
127
- - Incomplete tasks
128
- - Missing requirement implementations
129
- - Each with specific, actionable recommendation
130
-
131
- 2. **WARNING** (Should fix):
132
- - Spec/design divergences
133
- - Missing scenario coverage
134
- - Each with specific recommendation
135
-
136
- 3. **SUGGESTION** (Nice to fix):
137
- - Pattern inconsistencies
138
- - Minor improvements
139
- - Each with specific recommendation
140
-
141
- **Final Assessment**:
142
- - If CRITICAL issues: "X critical issue(s) found. Fix before archiving."
143
- - If only warnings: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."
144
- - If all clear: "All checks passed. Ready for archive."
145
-
146
- **Verification Heuristics**
147
-
148
- - **Completeness**: Focus on objective checklist items (checkboxes, requirements list)
149
- - **Correctness**: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty
150
- - **Coherence**: Look for glaring inconsistencies, don't nitpick style
151
- - **False Positives**: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL
152
- - **Actionability**: Every issue must have a specific recommendation with file/line references where applicable
153
-
154
- **Graceful Degradation**
155
-
156
- - If only tasks.md exists: verify task completion only, skip spec/design checks
157
- - If tasks + specs exist: verify completeness and correctness, skip design
158
- - If full artifacts: verify all three dimensions
159
- - Always note which checks were skipped and why
160
-
161
- **Output Format**
162
-
163
- Use clear markdown with:
164
- - Table for summary scorecard
165
- - Grouped lists for issues (CRITICAL/WARNING/SUGGESTION)
166
- - Code references in format: `file.ts:123`
167
- - Specific, actionable recommendations
168
- - No vague suggestions like "consider reviewing"
@@ -1,32 +0,0 @@
1
- # morpheus-mcp Development Guidelines
2
-
3
- Auto-generated from all feature plans. Last updated: 2026-01-31
4
-
5
- ## Active Technologies
6
- - N/A (Stateless proxy to external API) (001-mcp-api-integration)
7
-
8
- - TypeScript 5.9 (Node.js) + `@modelcontextprotocol/sdk`, `express`, `zod`, `fetch` (native Node 18+) (001-mcp-api-integration)
9
-
10
- ## Project Structure
11
-
12
- ```text
13
- src/
14
- tests/
15
- ```
16
-
17
- ## Commands
18
-
19
- npm test; npm run lint
20
-
21
- ## Code Style
22
-
23
- TypeScript 5.9 (Node.js): Follow standard conventions
24
-
25
- ## Recent Changes
26
- - 001-mcp-api-integration: Added TypeScript 5.9 (Node.js) + `@modelcontextprotocol/sdk`, `express`, `zod`, `fetch` (native Node 18+)
27
- - 001-mcp-api-integration: Added TypeScript 5.9 (Node.js) + `@modelcontextprotocol/sdk`, `express`, `zod`, `fetch` (native Node 18+)
28
-
29
- - 001-mcp-api-integration: Added TypeScript 5.9 (Node.js) + `@modelcontextprotocol/sdk`, `express`, `zod`, `fetch` (native Node 18+)
30
-
31
- <!-- MANUAL ADDITIONS START -->
32
- <!-- MANUAL ADDITIONS END -->
@@ -1,184 +0,0 @@
1
- ---
2
- description: Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
3
- ---
4
-
5
- ## User Input
6
-
7
- ```text
8
- $ARGUMENTS
9
- ```
10
-
11
- You **MUST** consider the user input before proceeding (if not empty).
12
-
13
- ## Goal
14
-
15
- Identify inconsistencies, duplications, ambiguities, and underspecified items across the three core artifacts (`spec.md`, `plan.md`, `tasks.md`) before implementation. This command MUST run only after `/speckit.tasks` has successfully produced a complete `tasks.md`.
16
-
17
- ## Operating Constraints
18
-
19
- **STRICTLY READ-ONLY**: Do **not** modify any files. Output a structured analysis report. Offer an optional remediation plan (user must explicitly approve before any follow-up editing commands would be invoked manually).
20
-
21
- **Constitution Authority**: The project constitution (`.specify/memory/constitution.md`) is **non-negotiable** within this analysis scope. Constitution conflicts are automatically CRITICAL and require adjustment of the spec, plan, or tasks—not dilution, reinterpretation, or silent ignoring of the principle. If a principle itself needs to change, that must occur in a separate, explicit constitution update outside `/speckit.analyze`.
22
-
23
- ## Execution Steps
24
-
25
- ### 1. Initialize Analysis Context
26
-
27
- Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks` once from repo root and parse JSON for FEATURE_DIR and AVAILABLE_DOCS. Derive absolute paths:
28
-
29
- - SPEC = FEATURE_DIR/spec.md
30
- - PLAN = FEATURE_DIR/plan.md
31
- - TASKS = FEATURE_DIR/tasks.md
32
-
33
- Abort with an error message if any required file is missing (instruct the user to run missing prerequisite command).
34
- 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").
35
-
36
- ### 2. Load Artifacts (Progressive Disclosure)
37
-
38
- Load only the minimal necessary context from each artifact:
39
-
40
- **From spec.md:**
41
-
42
- - Overview/Context
43
- - Functional Requirements
44
- - Non-Functional Requirements
45
- - User Stories
46
- - Edge Cases (if present)
47
-
48
- **From plan.md:**
49
-
50
- - Architecture/stack choices
51
- - Data Model references
52
- - Phases
53
- - Technical constraints
54
-
55
- **From tasks.md:**
56
-
57
- - Task IDs
58
- - Descriptions
59
- - Phase grouping
60
- - Parallel markers [P]
61
- - Referenced file paths
62
-
63
- **From constitution:**
64
-
65
- - Load `.specify/memory/constitution.md` for principle validation
66
-
67
- ### 3. Build Semantic Models
68
-
69
- Create internal representations (do not include raw artifacts in output):
70
-
71
- - **Requirements inventory**: Each functional + non-functional requirement with a stable key (derive slug based on imperative phrase; e.g., "User can upload file" → `user-can-upload-file`)
72
- - **User story/action inventory**: Discrete user actions with acceptance criteria
73
- - **Task coverage mapping**: Map each task to one or more requirements or stories (inference by keyword / explicit reference patterns like IDs or key phrases)
74
- - **Constitution rule set**: Extract principle names and MUST/SHOULD normative statements
75
-
76
- ### 4. Detection Passes (Token-Efficient Analysis)
77
-
78
- Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.
79
-
80
- #### A. Duplication Detection
81
-
82
- - Identify near-duplicate requirements
83
- - Mark lower-quality phrasing for consolidation
84
-
85
- #### B. Ambiguity Detection
86
-
87
- - Flag vague adjectives (fast, scalable, secure, intuitive, robust) lacking measurable criteria
88
- - Flag unresolved placeholders (TODO, TKTK, ???, `<placeholder>`, etc.)
89
-
90
- #### C. Underspecification
91
-
92
- - Requirements with verbs but missing object or measurable outcome
93
- - User stories missing acceptance criteria alignment
94
- - Tasks referencing files or components not defined in spec/plan
95
-
96
- #### D. Constitution Alignment
97
-
98
- - Any requirement or plan element conflicting with a MUST principle
99
- - Missing mandated sections or quality gates from constitution
100
-
101
- #### E. Coverage Gaps
102
-
103
- - Requirements with zero associated tasks
104
- - Tasks with no mapped requirement/story
105
- - Non-functional requirements not reflected in tasks (e.g., performance, security)
106
-
107
- #### F. Inconsistency
108
-
109
- - Terminology drift (same concept named differently across files)
110
- - Data entities referenced in plan but absent in spec (or vice versa)
111
- - Task ordering contradictions (e.g., integration tasks before foundational setup tasks without dependency note)
112
- - Conflicting requirements (e.g., one requires Next.js while other specifies Vue)
113
-
114
- ### 5. Severity Assignment
115
-
116
- Use this heuristic to prioritize findings:
117
-
118
- - **CRITICAL**: Violates constitution MUST, missing core spec artifact, or requirement with zero coverage that blocks baseline functionality
119
- - **HIGH**: Duplicate or conflicting requirement, ambiguous security/performance attribute, untestable acceptance criterion
120
- - **MEDIUM**: Terminology drift, missing non-functional task coverage, underspecified edge case
121
- - **LOW**: Style/wording improvements, minor redundancy not affecting execution order
122
-
123
- ### 6. Produce Compact Analysis Report
124
-
125
- Output a Markdown report (no file writes) with the following structure:
126
-
127
- ## Specification Analysis Report
128
-
129
- | ID | Category | Severity | Location(s) | Summary | Recommendation |
130
- |----|----------|----------|-------------|---------|----------------|
131
- | A1 | Duplication | HIGH | spec.md:L120-134 | Two similar requirements ... | Merge phrasing; keep clearer version |
132
-
133
- (Add one row per finding; generate stable IDs prefixed by category initial.)
134
-
135
- **Coverage Summary Table:**
136
-
137
- | Requirement Key | Has Task? | Task IDs | Notes |
138
- |-----------------|-----------|----------|-------|
139
-
140
- **Constitution Alignment Issues:** (if any)
141
-
142
- **Unmapped Tasks:** (if any)
143
-
144
- **Metrics:**
145
-
146
- - Total Requirements
147
- - Total Tasks
148
- - Coverage % (requirements with >=1 task)
149
- - Ambiguity Count
150
- - Duplication Count
151
- - Critical Issues Count
152
-
153
- ### 7. Provide Next Actions
154
-
155
- At end of report, output a concise Next Actions block:
156
-
157
- - If CRITICAL issues exist: Recommend resolving before `/speckit.implement`
158
- - If only LOW/MEDIUM: User may proceed, but provide improvement suggestions
159
- - Provide explicit command suggestions: e.g., "Run /speckit.specify with refinement", "Run /speckit.plan to adjust architecture", "Manually edit tasks.md to add coverage for 'performance-metrics'"
160
-
161
- ### 8. Offer Remediation
162
-
163
- Ask the user: "Would you like me to suggest concrete remediation edits for the top N issues?" (Do NOT apply them automatically.)
164
-
165
- ## Operating Principles
166
-
167
- ### Context Efficiency
168
-
169
- - **Minimal high-signal tokens**: Focus on actionable findings, not exhaustive documentation
170
- - **Progressive disclosure**: Load artifacts incrementally; don't dump all content into analysis
171
- - **Token-efficient output**: Limit findings table to 50 rows; summarize overflow
172
- - **Deterministic results**: Rerunning without changes should produce consistent IDs and counts
173
-
174
- ### Analysis Guidelines
175
-
176
- - **NEVER modify files** (this is read-only analysis)
177
- - **NEVER hallucinate missing sections** (if absent, report them accurately)
178
- - **Prioritize constitution violations** (these are always CRITICAL)
179
- - **Use examples over exhaustive rules** (cite specific instances, not generic patterns)
180
- - **Report zero issues gracefully** (emit success report with coverage statistics)
181
-
182
- ## Context
183
-
184
- $ARGUMENTS
@@ -1,294 +0,0 @@
1
- ---
2
- description: Generate a custom checklist for the current feature based on user requirements.
3
- ---
4
-
5
- ## Checklist Purpose: "Unit Tests for English"
6
-
7
- **CRITICAL CONCEPT**: Checklists are **UNIT TESTS FOR REQUIREMENTS WRITING** - they validate the quality, clarity, and completeness of requirements in a given domain.
8
-
9
- **NOT for verification/testing**:
10
-
11
- - ❌ NOT "Verify the button clicks correctly"
12
- - ❌ NOT "Test error handling works"
13
- - ❌ NOT "Confirm the API returns 200"
14
- - ❌ NOT checking if code/implementation matches the spec
15
-
16
- **FOR requirements quality validation**:
17
-
18
- - ✅ "Are visual hierarchy requirements defined for all card types?" (completeness)
19
- - ✅ "Is 'prominent display' quantified with specific sizing/positioning?" (clarity)
20
- - ✅ "Are hover state requirements consistent across all interactive elements?" (consistency)
21
- - ✅ "Are accessibility requirements defined for keyboard navigation?" (coverage)
22
- - ✅ "Does the spec define what happens when logo image fails to load?" (edge cases)
23
-
24
- **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.
25
-
26
- ## User Input
27
-
28
- ```text
29
- $ARGUMENTS
30
- ```
31
-
32
- You **MUST** consider the user input before proceeding (if not empty).
33
-
34
- ## Execution Steps
35
-
36
- 1. **Setup**: Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json` from repo root and parse JSON for FEATURE_DIR and AVAILABLE_DOCS list.
37
- - All file paths must be absolute.
38
- - 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").
39
-
40
- 2. **Clarify intent (dynamic)**: Derive up to THREE initial contextual clarifying questions (no pre-baked catalog). They MUST:
41
- - Be generated from the user's phrasing + extracted signals from spec/plan/tasks
42
- - Only ask about information that materially changes checklist content
43
- - Be skipped individually if already unambiguous in `$ARGUMENTS`
44
- - Prefer precision over breadth
45
-
46
- Generation algorithm:
47
- 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").
48
- 2. Cluster signals into candidate focus areas (max 4) ranked by relevance.
49
- 3. Identify probable audience & timing (author, reviewer, QA, release) if not explicit.
50
- 4. Detect missing dimensions: scope breadth, depth/rigor, risk emphasis, exclusion boundaries, measurable acceptance criteria.
51
- 5. Formulate questions chosen from these archetypes:
52
- - Scope refinement (e.g., "Should this include integration touchpoints with X and Y or stay limited to local module correctness?")
53
- - Risk prioritization (e.g., "Which of these potential risk areas should receive mandatory gating checks?")
54
- - Depth calibration (e.g., "Is this a lightweight pre-commit sanity list or a formal release gate?")
55
- - Audience framing (e.g., "Will this be used by the author only or peers during PR review?")
56
- - Boundary exclusion (e.g., "Should we explicitly exclude performance tuning items this round?")
57
- - Scenario class gap (e.g., "No recovery flows detected—are rollback / partial failure paths in scope?")
58
-
59
- Question formatting rules:
60
- - If presenting options, generate a compact table with columns: Option | Candidate | Why It Matters
61
- - Limit to A–E options maximum; omit table if a free-form answer is clearer
62
- - Never ask the user to restate what they already said
63
- - Avoid speculative categories (no hallucination). If uncertain, ask explicitly: "Confirm whether X belongs in scope."
64
-
65
- Defaults when interaction impossible:
66
- - Depth: Standard
67
- - Audience: Reviewer (PR) if code-related; Author otherwise
68
- - Focus: Top 2 relevance clusters
69
-
70
- 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.
71
-
72
- 3. **Understand user request**: Combine `$ARGUMENTS` + clarifying answers:
73
- - Derive checklist theme (e.g., security, review, deploy, ux)
74
- - Consolidate explicit must-have items mentioned by user
75
- - Map focus selections to category scaffolding
76
- - Infer any missing context from spec/plan/tasks (do NOT hallucinate)
77
-
78
- 4. **Load feature context**: Read from FEATURE_DIR:
79
- - spec.md: Feature requirements and scope
80
- - plan.md (if exists): Technical details, dependencies
81
- - tasks.md (if exists): Implementation tasks
82
-
83
- **Context Loading Strategy**:
84
- - Load only necessary portions relevant to active focus areas (avoid full-file dumping)
85
- - Prefer summarizing long sections into concise scenario/requirement bullets
86
- - Use progressive disclosure: add follow-on retrieval only if gaps detected
87
- - If source docs are large, generate interim summary items instead of embedding raw text
88
-
89
- 5. **Generate checklist** - Create "Unit Tests for Requirements":
90
- - Create `FEATURE_DIR/checklists/` directory if it doesn't exist
91
- - Generate unique checklist filename:
92
- - Use short, descriptive name based on domain (e.g., `ux.md`, `api.md`, `security.md`)
93
- - Format: `[domain].md`
94
- - If file exists, append to existing file
95
- - Number items sequentially starting from CHK001
96
- - Each `/speckit.checklist` run creates a NEW file (never overwrites existing checklists)
97
-
98
- **CORE PRINCIPLE - Test the Requirements, Not the Implementation**:
99
- Every checklist item MUST evaluate the REQUIREMENTS THEMSELVES for:
100
- - **Completeness**: Are all necessary requirements present?
101
- - **Clarity**: Are requirements unambiguous and specific?
102
- - **Consistency**: Do requirements align with each other?
103
- - **Measurability**: Can requirements be objectively verified?
104
- - **Coverage**: Are all scenarios/edge cases addressed?
105
-
106
- **Category Structure** - Group items by requirement quality dimensions:
107
- - **Requirement Completeness** (Are all necessary requirements documented?)
108
- - **Requirement Clarity** (Are requirements specific and unambiguous?)
109
- - **Requirement Consistency** (Do requirements align without conflicts?)
110
- - **Acceptance Criteria Quality** (Are success criteria measurable?)
111
- - **Scenario Coverage** (Are all flows/cases addressed?)
112
- - **Edge Case Coverage** (Are boundary conditions defined?)
113
- - **Non-Functional Requirements** (Performance, Security, Accessibility, etc. - are they specified?)
114
- - **Dependencies & Assumptions** (Are they documented and validated?)
115
- - **Ambiguities & Conflicts** (What needs clarification?)
116
-
117
- **HOW TO WRITE CHECKLIST ITEMS - "Unit Tests for English"**:
118
-
119
- ❌ **WRONG** (Testing implementation):
120
- - "Verify landing page displays 3 episode cards"
121
- - "Test hover states work on desktop"
122
- - "Confirm logo click navigates home"
123
-
124
- ✅ **CORRECT** (Testing requirements quality):
125
- - "Are the exact number and layout of featured episodes specified?" [Completeness]
126
- - "Is 'prominent display' quantified with specific sizing/positioning?" [Clarity]
127
- - "Are hover state requirements consistent across all interactive elements?" [Consistency]
128
- - "Are keyboard navigation requirements defined for all interactive UI?" [Coverage]
129
- - "Is the fallback behavior specified when logo image fails to load?" [Edge Cases]
130
- - "Are loading states defined for asynchronous episode data?" [Completeness]
131
- - "Does the spec define visual hierarchy for competing UI elements?" [Clarity]
132
-
133
- **ITEM STRUCTURE**:
134
- Each item should follow this pattern:
135
- - Question format asking about requirement quality
136
- - Focus on what's WRITTEN (or not written) in the spec/plan
137
- - Include quality dimension in brackets [Completeness/Clarity/Consistency/etc.]
138
- - Reference spec section `[Spec §X.Y]` when checking existing requirements
139
- - Use `[Gap]` marker when checking for missing requirements
140
-
141
- **EXAMPLES BY QUALITY DIMENSION**:
142
-
143
- Completeness:
144
- - "Are error handling requirements defined for all API failure modes? [Gap]"
145
- - "Are accessibility requirements specified for all interactive elements? [Completeness]"
146
- - "Are mobile breakpoint requirements defined for responsive layouts? [Gap]"
147
-
148
- Clarity:
149
- - "Is 'fast loading' quantified with specific timing thresholds? [Clarity, Spec §NFR-2]"
150
- - "Are 'related episodes' selection criteria explicitly defined? [Clarity, Spec §FR-5]"
151
- - "Is 'prominent' defined with measurable visual properties? [Ambiguity, Spec §FR-4]"
152
-
153
- Consistency:
154
- - "Do navigation requirements align across all pages? [Consistency, Spec §FR-10]"
155
- - "Are card component requirements consistent between landing and detail pages? [Consistency]"
156
-
157
- Coverage:
158
- - "Are requirements defined for zero-state scenarios (no episodes)? [Coverage, Edge Case]"
159
- - "Are concurrent user interaction scenarios addressed? [Coverage, Gap]"
160
- - "Are requirements specified for partial data loading failures? [Coverage, Exception Flow]"
161
-
162
- Measurability:
163
- - "Are visual hierarchy requirements measurable/testable? [Acceptance Criteria, Spec §FR-1]"
164
- - "Can 'balanced visual weight' be objectively verified? [Measurability, Spec §FR-2]"
165
-
166
- **Scenario Classification & Coverage** (Requirements Quality Focus):
167
- - Check if requirements exist for: Primary, Alternate, Exception/Error, Recovery, Non-Functional scenarios
168
- - For each scenario class, ask: "Are [scenario type] requirements complete, clear, and consistent?"
169
- - If scenario class missing: "Are [scenario type] requirements intentionally excluded or missing? [Gap]"
170
- - Include resilience/rollback when state mutation occurs: "Are rollback requirements defined for migration failures? [Gap]"
171
-
172
- **Traceability Requirements**:
173
- - MINIMUM: ≥80% of items MUST include at least one traceability reference
174
- - Each item should reference: spec section `[Spec §X.Y]`, or use markers: `[Gap]`, `[Ambiguity]`, `[Conflict]`, `[Assumption]`
175
- - If no ID system exists: "Is a requirement & acceptance criteria ID scheme established? [Traceability]"
176
-
177
- **Surface & Resolve Issues** (Requirements Quality Problems):
178
- Ask questions about the requirements themselves:
179
- - Ambiguities: "Is the term 'fast' quantified with specific metrics? [Ambiguity, Spec §NFR-1]"
180
- - Conflicts: "Do navigation requirements conflict between §FR-10 and §FR-10a? [Conflict]"
181
- - Assumptions: "Is the assumption of 'always available podcast API' validated? [Assumption]"
182
- - Dependencies: "Are external podcast API requirements documented? [Dependency, Gap]"
183
- - Missing definitions: "Is 'visual hierarchy' defined with measurable criteria? [Gap]"
184
-
185
- **Content Consolidation**:
186
- - Soft cap: If raw candidate items > 40, prioritize by risk/impact
187
- - Merge near-duplicates checking the same requirement aspect
188
- - If >5 low-impact edge cases, create one item: "Are edge cases X, Y, Z addressed in requirements? [Coverage]"
189
-
190
- **🚫 ABSOLUTELY PROHIBITED** - These make it an implementation test, not a requirements test:
191
- - ❌ Any item starting with "Verify", "Test", "Confirm", "Check" + implementation behavior
192
- - ❌ References to code execution, user actions, system behavior
193
- - ❌ "Displays correctly", "works properly", "functions as expected"
194
- - ❌ "Click", "navigate", "render", "load", "execute"
195
- - ❌ Test cases, test plans, QA procedures
196
- - ❌ Implementation details (frameworks, APIs, algorithms)
197
-
198
- **✅ REQUIRED PATTERNS** - These test requirements quality:
199
- - ✅ "Are [requirement type] defined/specified/documented for [scenario]?"
200
- - ✅ "Is [vague term] quantified/clarified with specific criteria?"
201
- - ✅ "Are requirements consistent between [section A] and [section B]?"
202
- - ✅ "Can [requirement] be objectively measured/verified?"
203
- - ✅ "Are [edge cases/scenarios] addressed in requirements?"
204
- - ✅ "Does the spec define [missing aspect]?"
205
-
206
- 6. **Structure Reference**: Generate the checklist following the canonical template in `.specify/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.
207
-
208
- 7. **Report**: Output full path to created checklist, item count, and remind user that each run creates a new file. Summarize:
209
- - Focus areas selected
210
- - Depth level
211
- - Actor/timing
212
- - Any explicit user-specified must-have items incorporated
213
-
214
- **Important**: Each `/speckit.checklist` command invocation creates a checklist file using short, descriptive names unless file already exists. This allows:
215
-
216
- - Multiple checklists of different types (e.g., `ux.md`, `test.md`, `security.md`)
217
- - Simple, memorable filenames that indicate checklist purpose
218
- - Easy identification and navigation in the `checklists/` folder
219
-
220
- To avoid clutter, use descriptive types and clean up obsolete checklists when done.
221
-
222
- ## Example Checklist Types & Sample Items
223
-
224
- **UX Requirements Quality:** `ux.md`
225
-
226
- Sample items (testing the requirements, NOT the implementation):
227
-
228
- - "Are visual hierarchy requirements defined with measurable criteria? [Clarity, Spec §FR-1]"
229
- - "Is the number and positioning of UI elements explicitly specified? [Completeness, Spec §FR-1]"
230
- - "Are interaction state requirements (hover, focus, active) consistently defined? [Consistency]"
231
- - "Are accessibility requirements specified for all interactive elements? [Coverage, Gap]"
232
- - "Is fallback behavior defined when images fail to load? [Edge Case, Gap]"
233
- - "Can 'prominent display' be objectively measured? [Measurability, Spec §FR-4]"
234
-
235
- **API Requirements Quality:** `api.md`
236
-
237
- Sample items:
238
-
239
- - "Are error response formats specified for all failure scenarios? [Completeness]"
240
- - "Are rate limiting requirements quantified with specific thresholds? [Clarity]"
241
- - "Are authentication requirements consistent across all endpoints? [Consistency]"
242
- - "Are retry/timeout requirements defined for external dependencies? [Coverage, Gap]"
243
- - "Is versioning strategy documented in requirements? [Gap]"
244
-
245
- **Performance Requirements Quality:** `performance.md`
246
-
247
- Sample items:
248
-
249
- - "Are performance requirements quantified with specific metrics? [Clarity]"
250
- - "Are performance targets defined for all critical user journeys? [Coverage]"
251
- - "Are performance requirements under different load conditions specified? [Completeness]"
252
- - "Can performance requirements be objectively measured? [Measurability]"
253
- - "Are degradation requirements defined for high-load scenarios? [Edge Case, Gap]"
254
-
255
- **Security Requirements Quality:** `security.md`
256
-
257
- Sample items:
258
-
259
- - "Are authentication requirements specified for all protected resources? [Coverage]"
260
- - "Are data protection requirements defined for sensitive information? [Completeness]"
261
- - "Is the threat model documented and requirements aligned to it? [Traceability]"
262
- - "Are security requirements consistent with compliance obligations? [Consistency]"
263
- - "Are security failure/breach response requirements defined? [Gap, Exception Flow]"
264
-
265
- ## Anti-Examples: What NOT To Do
266
-
267
- **❌ WRONG - These test implementation, not requirements:**
268
-
269
- ```markdown
270
- - [ ] CHK001 - Verify landing page displays 3 episode cards [Spec §FR-001]
271
- - [ ] CHK002 - Test hover states work correctly on desktop [Spec §FR-003]
272
- - [ ] CHK003 - Confirm logo click navigates to home page [Spec §FR-010]
273
- - [ ] CHK004 - Check that related episodes section shows 3-5 items [Spec §FR-005]
274
- ```
275
-
276
- **✅ CORRECT - These test requirements quality:**
277
-
278
- ```markdown
279
- - [ ] CHK001 - Are the number and layout of featured episodes explicitly specified? [Completeness, Spec §FR-001]
280
- - [ ] CHK002 - Are hover state requirements consistently defined for all interactive elements? [Consistency, Spec §FR-003]
281
- - [ ] CHK003 - Are navigation requirements clear for all clickable brand elements? [Clarity, Spec §FR-010]
282
- - [ ] CHK004 - Is the selection criteria for related episodes documented? [Gap, Spec §FR-005]
283
- - [ ] CHK005 - Are loading state requirements defined for asynchronous episode data? [Gap]
284
- - [ ] CHK006 - Can "visual hierarchy" requirements be objectively measured? [Measurability, Spec §FR-001]
285
- ```
286
-
287
- **Key Differences:**
288
-
289
- - Wrong: Tests if the system works correctly
290
- - Correct: Tests if the requirements are written correctly
291
- - Wrong: Verification of behavior
292
- - Correct: Validation of requirement quality
293
- - Wrong: "Does it do X?"
294
- - Correct: "Is X clearly specified?"