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,138 +0,0 @@
1
- ---
2
- name: openspec-sync-specs
3
- description: Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
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
- Sync delta specs from a change to main specs.
13
-
14
- This is an **agent-driven** operation - you will read delta specs and directly edit main specs to apply the changes. This allows intelligent merging (e.g., adding a scenario without copying the entire requirement).
15
-
16
- **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.
17
-
18
- **Steps**
19
-
20
- 1. **If no change name provided, prompt for selection**
21
-
22
- Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
23
-
24
- Show changes that have delta specs (under `specs/` directory).
25
-
26
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
27
-
28
- 2. **Find delta specs**
29
-
30
- Look for delta spec files in `openspec/changes/<name>/specs/*/spec.md`.
31
-
32
- Each delta spec file contains sections like:
33
- - `## ADDED Requirements` - New requirements to add
34
- - `## MODIFIED Requirements` - Changes to existing requirements
35
- - `## REMOVED Requirements` - Requirements to remove
36
- - `## RENAMED Requirements` - Requirements to rename (FROM:/TO: format)
37
-
38
- If no delta specs found, inform user and stop.
39
-
40
- 3. **For each delta spec, apply changes to main specs**
41
-
42
- For each capability with a delta spec at `openspec/changes/<name>/specs/<capability>/spec.md`:
43
-
44
- a. **Read the delta spec** to understand the intended changes
45
-
46
- b. **Read the main spec** at `openspec/specs/<capability>/spec.md` (may not exist yet)
47
-
48
- c. **Apply changes intelligently**:
49
-
50
- **ADDED Requirements:**
51
- - If requirement doesn't exist in main spec → add it
52
- - If requirement already exists → update it to match (treat as implicit MODIFIED)
53
-
54
- **MODIFIED Requirements:**
55
- - Find the requirement in main spec
56
- - Apply the changes - this can be:
57
- - Adding new scenarios (don't need to copy existing ones)
58
- - Modifying existing scenarios
59
- - Changing the requirement description
60
- - Preserve scenarios/content not mentioned in the delta
61
-
62
- **REMOVED Requirements:**
63
- - Remove the entire requirement block from main spec
64
-
65
- **RENAMED Requirements:**
66
- - Find the FROM requirement, rename to TO
67
-
68
- d. **Create new main spec** if capability doesn't exist yet:
69
- - Create `openspec/specs/<capability>/spec.md`
70
- - Add Purpose section (can be brief, mark as TBD)
71
- - Add Requirements section with the ADDED requirements
72
-
73
- 4. **Show summary**
74
-
75
- After applying all changes, summarize:
76
- - Which capabilities were updated
77
- - What changes were made (requirements added/modified/removed/renamed)
78
-
79
- **Delta Spec Format Reference**
80
-
81
- ```markdown
82
- ## ADDED Requirements
83
-
84
- ### Requirement: New Feature
85
- The system SHALL do something new.
86
-
87
- #### Scenario: Basic case
88
- - **WHEN** user does X
89
- - **THEN** system does Y
90
-
91
- ## MODIFIED Requirements
92
-
93
- ### Requirement: Existing Feature
94
- #### Scenario: New scenario to add
95
- - **WHEN** user does A
96
- - **THEN** system does B
97
-
98
- ## REMOVED Requirements
99
-
100
- ### Requirement: Deprecated Feature
101
-
102
- ## RENAMED Requirements
103
-
104
- - FROM: `### Requirement: Old Name`
105
- - TO: `### Requirement: New Name`
106
- ```
107
-
108
- **Key Principle: Intelligent Merging**
109
-
110
- Unlike programmatic merging, you can apply **partial updates**:
111
- - To add a scenario, just include that scenario under MODIFIED - don't copy existing scenarios
112
- - The delta represents *intent*, not a wholesale replacement
113
- - Use your judgment to merge changes sensibly
114
-
115
- **Output On Success**
116
-
117
- ```
118
- ## Specs Synced: <change-name>
119
-
120
- Updated main specs:
121
-
122
- **<capability-1>**:
123
- - Added requirement: "New Feature"
124
- - Modified requirement: "Existing Feature" (added 1 scenario)
125
-
126
- **<capability-2>**:
127
- - Created new spec file
128
- - Added requirement: "Another Feature"
129
-
130
- Main specs are now updated. The change remains active - archive when implementation is complete.
131
- ```
132
-
133
- **Guardrails**
134
- - Read both delta and main specs before making changes
135
- - Preserve existing content not mentioned in delta
136
- - If something is unclear, ask for clarification
137
- - Show what you're changing as you go
138
- - The operation should be idempotent - running twice should give same result
@@ -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"
package/.dockerignore DELETED
@@ -1,8 +0,0 @@
1
- node_modules
2
- dist
3
- .env
4
- *.log
5
- .git
6
- .gitignore
7
- tests
8
- openspec
@@ -1,149 +0,0 @@
1
- description = "Implement tasks from an OpenSpec change (Experimental)"
2
-
3
- prompt = """
4
- Implement tasks from an OpenSpec change.
5
-
6
- **Input**: Optionally specify a change name (e.g., `/opsx:apply add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
7
-
8
- **Steps**
9
-
10
- 1. **Select the change**
11
-
12
- If a name is provided, use it. Otherwise:
13
- - Infer from conversation context if the user mentioned a change
14
- - Auto-select if only one active change exists
15
- - If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select
16
-
17
- Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
18
-
19
- 2. **Check status to understand the schema**
20
- ```bash
21
- openspec status --change "<name>" --json
22
- ```
23
- Parse the JSON to understand:
24
- - `schemaName`: The workflow being used (e.g., "spec-driven")
25
- - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
26
-
27
- 3. **Get apply instructions**
28
-
29
- ```bash
30
- openspec instructions apply --change "<name>" --json
31
- ```
32
-
33
- This returns:
34
- - Context file paths (varies by schema)
35
- - Progress (total, complete, remaining)
36
- - Task list with status
37
- - Dynamic instruction based on current state
38
-
39
- **Handle states:**
40
- - If `state: "blocked"` (missing artifacts): show message, suggest using `/opsx:continue`
41
- - If `state: "all_done"`: congratulate, suggest archive
42
- - Otherwise: proceed to implementation
43
-
44
- 4. **Read context files**
45
-
46
- Read the files listed in `contextFiles` from the apply instructions output.
47
- The files depend on the schema being used:
48
- - **spec-driven**: proposal, specs, design, tasks
49
- - Other schemas: follow the contextFiles from CLI output
50
-
51
- 5. **Show current progress**
52
-
53
- Display:
54
- - Schema being used
55
- - Progress: "N/M tasks complete"
56
- - Remaining tasks overview
57
- - Dynamic instruction from CLI
58
-
59
- 6. **Implement tasks (loop until done or blocked)**
60
-
61
- For each pending task:
62
- - Show which task is being worked on
63
- - Make the code changes required
64
- - Keep changes minimal and focused
65
- - Mark task complete in the tasks file: `- [ ]` → `- [x]`
66
- - Continue to next task
67
-
68
- **Pause if:**
69
- - Task is unclear → ask for clarification
70
- - Implementation reveals a design issue → suggest updating artifacts
71
- - Error or blocker encountered → report and wait for guidance
72
- - User interrupts
73
-
74
- 7. **On completion or pause, show status**
75
-
76
- Display:
77
- - Tasks completed this session
78
- - Overall progress: "N/M tasks complete"
79
- - If all done: suggest archive
80
- - If paused: explain why and wait for guidance
81
-
82
- **Output During Implementation**
83
-
84
- ```
85
- ## Implementing: <change-name> (schema: <schema-name>)
86
-
87
- Working on task 3/7: <task description>
88
- [...implementation happening...]
89
- ✓ Task complete
90
-
91
- Working on task 4/7: <task description>
92
- [...implementation happening...]
93
- ✓ Task complete
94
- ```
95
-
96
- **Output On Completion**
97
-
98
- ```
99
- ## Implementation Complete
100
-
101
- **Change:** <change-name>
102
- **Schema:** <schema-name>
103
- **Progress:** 7/7 tasks complete ✓
104
-
105
- ### Completed This Session
106
- - [x] Task 1
107
- - [x] Task 2
108
- ...
109
-
110
- All tasks complete! You can archive this change with `/opsx:archive`.
111
- ```
112
-
113
- **Output On Pause (Issue Encountered)**
114
-
115
- ```
116
- ## Implementation Paused
117
-
118
- **Change:** <change-name>
119
- **Schema:** <schema-name>
120
- **Progress:** 4/7 tasks complete
121
-
122
- ### Issue Encountered
123
- <description of the issue>
124
-
125
- **Options:**
126
- 1. <option 1>
127
- 2. <option 2>
128
- 3. Other approach
129
-
130
- What would you like to do?
131
- ```
132
-
133
- **Guardrails**
134
- - Keep going through tasks until done or blocked
135
- - Always read context files before starting (from the apply instructions output)
136
- - If task is ambiguous, pause and ask before implementing
137
- - If implementation reveals issues, pause and suggest artifact updates
138
- - Keep code changes minimal and scoped to each task
139
- - Update task checkbox immediately after completing each task
140
- - Pause on errors, blockers, or unclear requirements - don't guess
141
- - Use contextFiles from CLI output, don't assume specific file names
142
-
143
- **Fluid Workflow Integration**
144
-
145
- This skill supports the "actions on a change" model:
146
-
147
- - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
148
- - **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
149
- """
@@ -1,154 +0,0 @@
1
- description = "Archive a completed change in the experimental workflow"
2
-
3
- prompt = """
4
- Archive a completed change in the experimental workflow.
5
-
6
- **Input**: Optionally specify a change name after `/opsx:archive` (e.g., `/opsx:archive add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
7
-
8
- **Steps**
9
-
10
- 1. **If no change name provided, prompt for selection**
11
-
12
- Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
13
-
14
- Show only active changes (not already archived).
15
- Include the schema used for each change if available.
16
-
17
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
18
-
19
- 2. **Check artifact completion status**
20
-
21
- Run `openspec status --change "<name>" --json` to check artifact completion.
22
-
23
- Parse the JSON to understand:
24
- - `schemaName`: The workflow being used
25
- - `artifacts`: List of artifacts with their status (`done` or other)
26
-
27
- **If any artifacts are not `done`:**
28
- - Display warning listing incomplete artifacts
29
- - Prompt user for confirmation to continue
30
- - Proceed if user confirms
31
-
32
- 3. **Check task completion status**
33
-
34
- Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
35
-
36
- Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
37
-
38
- **If incomplete tasks found:**
39
- - Display warning showing count of incomplete tasks
40
- - Prompt user for confirmation to continue
41
- - Proceed if user confirms
42
-
43
- **If no tasks file exists:** Proceed without task-related warning.
44
-
45
- 4. **Assess delta spec sync state**
46
-
47
- Check for delta specs at `openspec/changes/<name>/specs/`. If none exist, proceed without sync prompt.
48
-
49
- **If delta specs exist:**
50
- - Compare each delta spec with its corresponding main spec at `openspec/specs/<capability>/spec.md`
51
- - Determine what changes would be applied (adds, modifications, removals, renames)
52
- - Show a combined summary before prompting
53
-
54
- **Prompt options:**
55
- - If changes needed: "Sync now (recommended)", "Archive without syncing"
56
- - If already synced: "Archive now", "Sync anyway", "Cancel"
57
-
58
- If user chooses sync, execute `/opsx:sync` logic. Proceed to archive regardless of choice.
59
-
60
- 5. **Perform the archive**
61
-
62
- Create the archive directory if it doesn't exist:
63
- ```bash
64
- mkdir -p openspec/changes/archive
65
- ```
66
-
67
- Generate target name using current date: `YYYY-MM-DD-<change-name>`
68
-
69
- **Check if target already exists:**
70
- - If yes: Fail with error, suggest renaming existing archive or using different date
71
- - If no: Move the change directory to archive
72
-
73
- ```bash
74
- mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
75
- ```
76
-
77
- 6. **Display summary**
78
-
79
- Show archive completion summary including:
80
- - Change name
81
- - Schema that was used
82
- - Archive location
83
- - Spec sync status (synced / sync skipped / no delta specs)
84
- - Note about any warnings (incomplete artifacts/tasks)
85
-
86
- **Output On Success**
87
-
88
- ```
89
- ## Archive Complete
90
-
91
- **Change:** <change-name>
92
- **Schema:** <schema-name>
93
- **Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
94
- **Specs:** ✓ Synced to main specs
95
-
96
- All artifacts complete. All tasks complete.
97
- ```
98
-
99
- **Output On Success (No Delta Specs)**
100
-
101
- ```
102
- ## Archive Complete
103
-
104
- **Change:** <change-name>
105
- **Schema:** <schema-name>
106
- **Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
107
- **Specs:** No delta specs
108
-
109
- All artifacts complete. All tasks complete.
110
- ```
111
-
112
- **Output On Success With Warnings**
113
-
114
- ```
115
- ## Archive Complete (with warnings)
116
-
117
- **Change:** <change-name>
118
- **Schema:** <schema-name>
119
- **Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
120
- **Specs:** Sync skipped (user chose to skip)
121
-
122
- **Warnings:**
123
- - Archived with 2 incomplete artifacts
124
- - Archived with 3 incomplete tasks
125
- - Delta spec sync was skipped (user chose to skip)
126
-
127
- Review the archive if this was not intentional.
128
- ```
129
-
130
- **Output On Error (Archive Exists)**
131
-
132
- ```
133
- ## Archive Failed
134
-
135
- **Change:** <change-name>
136
- **Target:** openspec/changes/archive/YYYY-MM-DD-<name>/
137
-
138
- Target archive directory already exists.
139
-
140
- **Options:**
141
- 1. Rename the existing archive
142
- 2. Delete the existing archive if it's a duplicate
143
- 3. Wait until a different date to archive
144
- ```
145
-
146
- **Guardrails**
147
- - Always prompt for change selection if not provided
148
- - Use artifact graph (openspec status --json) for completion checking
149
- - Don't block archive on warnings - just inform and confirm
150
- - Preserve .openspec.yaml when moving to archive (it moves with the directory)
151
- - Show clear summary of what happened
152
- - If sync is requested, use /opsx:sync approach (agent-driven)
153
- - If delta specs exist, always run the sync assessment and show the combined summary before prompting
154
- """