quantix-mcp 0.4.9 → 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 (215) hide show
  1. package/README.md +12 -1
  2. package/dist/index.js +20 -5
  3. package/dist/index.js.map +1 -1
  4. package/dist/tools/subscriptions.d.ts.map +1 -1
  5. package/dist/tools/subscriptions.js +46 -1
  6. package/dist/tools/subscriptions.js.map +1 -1
  7. package/dist/tools/transactions.d.ts.map +1 -1
  8. package/dist/tools/transactions.js +5 -5
  9. package/dist/tools/transactions.js.map +1 -1
  10. package/dist/types/schemas.d.ts +17 -0
  11. package/dist/types/schemas.d.ts.map +1 -1
  12. package/dist/types/schemas.js +21 -4
  13. package/dist/types/schemas.js.map +1 -1
  14. package/package.json +9 -4
  15. package/.claude/commands/opsx/apply.md +0 -152
  16. package/.claude/commands/opsx/archive.md +0 -157
  17. package/.claude/commands/opsx/bulk-archive.md +0 -242
  18. package/.claude/commands/opsx/continue.md +0 -114
  19. package/.claude/commands/opsx/explore.md +0 -174
  20. package/.claude/commands/opsx/ff.md +0 -94
  21. package/.claude/commands/opsx/new.md +0 -69
  22. package/.claude/commands/opsx/onboard.md +0 -525
  23. package/.claude/commands/opsx/sync.md +0 -134
  24. package/.claude/commands/opsx/verify.md +0 -164
  25. package/.claude/settings.local.json +0 -9
  26. package/.claude/skills/openspec-apply-change/SKILL.md +0 -156
  27. package/.claude/skills/openspec-archive-change/SKILL.md +0 -114
  28. package/.claude/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  29. package/.claude/skills/openspec-continue-change/SKILL.md +0 -118
  30. package/.claude/skills/openspec-explore/SKILL.md +0 -290
  31. package/.claude/skills/openspec-ff-change/SKILL.md +0 -101
  32. package/.claude/skills/openspec-new-change/SKILL.md +0 -74
  33. package/.claude/skills/openspec-onboard/SKILL.md +0 -529
  34. package/.claude/skills/openspec-sync-specs/SKILL.md +0 -138
  35. package/.claude/skills/openspec-verify-change/SKILL.md +0 -168
  36. package/.dockerignore +0 -8
  37. package/.gemini/commands/opsx/apply.toml +0 -149
  38. package/.gemini/commands/opsx/archive.toml +0 -154
  39. package/.gemini/commands/opsx/bulk-archive.toml +0 -239
  40. package/.gemini/commands/opsx/continue.toml +0 -111
  41. package/.gemini/commands/opsx/explore.toml +0 -171
  42. package/.gemini/commands/opsx/ff.toml +0 -91
  43. package/.gemini/commands/opsx/new.toml +0 -66
  44. package/.gemini/commands/opsx/onboard.toml +0 -522
  45. package/.gemini/commands/opsx/sync.toml +0 -131
  46. package/.gemini/commands/opsx/verify.toml +0 -161
  47. package/.gemini/skills/openspec-apply-change/SKILL.md +0 -156
  48. package/.gemini/skills/openspec-archive-change/SKILL.md +0 -114
  49. package/.gemini/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  50. package/.gemini/skills/openspec-continue-change/SKILL.md +0 -118
  51. package/.gemini/skills/openspec-explore/SKILL.md +0 -290
  52. package/.gemini/skills/openspec-ff-change/SKILL.md +0 -101
  53. package/.gemini/skills/openspec-new-change/SKILL.md +0 -74
  54. package/.gemini/skills/openspec-onboard/SKILL.md +0 -529
  55. package/.gemini/skills/openspec-sync-specs/SKILL.md +0 -138
  56. package/.gemini/skills/openspec-verify-change/SKILL.md +0 -168
  57. package/.github/agents/copilot-instructions.md +0 -32
  58. package/.github/agents/speckit.analyze.agent.md +0 -184
  59. package/.github/agents/speckit.checklist.agent.md +0 -294
  60. package/.github/agents/speckit.clarify.agent.md +0 -181
  61. package/.github/agents/speckit.constitution.agent.md +0 -82
  62. package/.github/agents/speckit.implement.agent.md +0 -135
  63. package/.github/agents/speckit.plan.agent.md +0 -89
  64. package/.github/agents/speckit.specify.agent.md +0 -258
  65. package/.github/agents/speckit.tasks.agent.md +0 -137
  66. package/.github/agents/speckit.taskstoissues.agent.md +0 -30
  67. package/.github/copilot-instructions.md +0 -17
  68. package/.github/prompts/speckit.analyze.prompt.md +0 -3
  69. package/.github/prompts/speckit.checklist.prompt.md +0 -3
  70. package/.github/prompts/speckit.clarify.prompt.md +0 -3
  71. package/.github/prompts/speckit.constitution.prompt.md +0 -3
  72. package/.github/prompts/speckit.implement.prompt.md +0 -3
  73. package/.github/prompts/speckit.plan.prompt.md +0 -3
  74. package/.github/prompts/speckit.specify.prompt.md +0 -3
  75. package/.github/prompts/speckit.tasks.prompt.md +0 -3
  76. package/.github/prompts/speckit.taskstoissues.prompt.md +0 -3
  77. package/.github/workflows/publish.yaml +0 -29
  78. package/.opencode/command/speckit.analyze.md +0 -184
  79. package/.opencode/command/speckit.checklist.md +0 -294
  80. package/.opencode/command/speckit.clarify.md +0 -181
  81. package/.opencode/command/speckit.constitution.md +0 -84
  82. package/.opencode/command/speckit.implement.md +0 -135
  83. package/.opencode/command/speckit.plan.md +0 -89
  84. package/.opencode/command/speckit.specify.md +0 -258
  85. package/.opencode/command/speckit.tasks.md +0 -137
  86. package/.opencode/command/speckit.taskstoissues.md +0 -30
  87. package/.qwen/commands/opsx-apply.toml +0 -149
  88. package/.qwen/commands/opsx-archive.toml +0 -154
  89. package/.qwen/commands/opsx-bulk-archive.toml +0 -239
  90. package/.qwen/commands/opsx-continue.toml +0 -111
  91. package/.qwen/commands/opsx-explore.toml +0 -171
  92. package/.qwen/commands/opsx-ff.toml +0 -91
  93. package/.qwen/commands/opsx-new.toml +0 -66
  94. package/.qwen/commands/opsx-onboard.toml +0 -522
  95. package/.qwen/commands/opsx-sync.toml +0 -131
  96. package/.qwen/commands/opsx-verify.toml +0 -161
  97. package/.qwen/skills/openspec-apply-change/SKILL.md +0 -156
  98. package/.qwen/skills/openspec-archive-change/SKILL.md +0 -114
  99. package/.qwen/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  100. package/.qwen/skills/openspec-continue-change/SKILL.md +0 -118
  101. package/.qwen/skills/openspec-explore/SKILL.md +0 -290
  102. package/.qwen/skills/openspec-ff-change/SKILL.md +0 -101
  103. package/.qwen/skills/openspec-new-change/SKILL.md +0 -74
  104. package/.qwen/skills/openspec-onboard/SKILL.md +0 -529
  105. package/.qwen/skills/openspec-sync-specs/SKILL.md +0 -138
  106. package/.qwen/skills/openspec-verify-change/SKILL.md +0 -168
  107. package/.specify/memory/constitution.md +0 -58
  108. package/.specify/scripts/powershell/check-prerequisites.ps1 +0 -148
  109. package/.specify/scripts/powershell/common.ps1 +0 -137
  110. package/.specify/scripts/powershell/create-new-feature.ps1 +0 -283
  111. package/.specify/scripts/powershell/setup-plan.ps1 +0 -61
  112. package/.specify/scripts/powershell/update-agent-context.ps1 +0 -448
  113. package/.specify/templates/agent-file-template.md +0 -28
  114. package/.specify/templates/checklist-template.md +0 -40
  115. package/.specify/templates/constitution-template.md +0 -50
  116. package/.specify/templates/plan-template.md +0 -104
  117. package/.specify/templates/spec-template.md +0 -115
  118. package/.specify/templates/tasks-template.md +0 -251
  119. package/.vscode/launch.json +0 -14
  120. package/.vscode/settings.json +0 -14
  121. package/.vscode/tasks.json +0 -15
  122. package/AGENTS.md +0 -117
  123. package/CLAUDE.md +0 -70
  124. package/Dockerfile +0 -30
  125. package/GEMINI.md +0 -117
  126. package/QWEN.md +0 -117
  127. package/docker-compose.yml +0 -15
  128. package/openapi.yaml +0 -3127
  129. package/openspec/README.md +0 -33
  130. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/.openspec.yaml +0 -2
  131. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/design.md +0 -60
  132. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/proposal.md +0 -25
  133. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/credit-card-transactions/spec.md +0 -46
  134. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/transactions/spec.md +0 -42
  135. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/tasks.md +0 -22
  136. package/openspec/config.yaml +0 -20
  137. package/openspec/specs/accounts/spec.md +0 -86
  138. package/openspec/specs/categories/spec.md +0 -78
  139. package/openspec/specs/credit-card-transactions/spec.md +0 -64
  140. package/openspec/specs/credit-cards/spec.md +0 -109
  141. package/openspec/specs/data/spec.md +0 -49
  142. package/openspec/specs/settings/spec.md +0 -48
  143. package/openspec/specs/subscriptions/spec.md +0 -85
  144. package/openspec/specs/summary/spec.md +0 -49
  145. package/openspec/specs/transactions/spec.md +0 -113
  146. package/openspec/specs/transfers/spec.md +0 -74
  147. package/specs/001-mcp-api-integration/checklists/requirements.md +0 -34
  148. package/specs/001-mcp-api-integration/contracts/openapi.yaml +0 -636
  149. package/specs/001-mcp-api-integration/data-model.md +0 -106
  150. package/specs/001-mcp-api-integration/plan.md +0 -73
  151. package/specs/001-mcp-api-integration/quickstart.md +0 -74
  152. package/specs/001-mcp-api-integration/research.md +0 -58
  153. package/specs/001-mcp-api-integration/spec.md +0 -119
  154. package/specs/001-mcp-api-integration/tasks.md +0 -64
  155. package/src/config.ts +0 -39
  156. package/src/index.ts +0 -99
  157. package/src/services/apiClient.ts +0 -55
  158. package/src/services/requestContext.ts +0 -11
  159. package/src/tools/accounts.ts +0 -122
  160. package/src/tools/categories.ts +0 -102
  161. package/src/tools/credit-cards.ts +0 -203
  162. package/src/tools/data.ts +0 -45
  163. package/src/tools/settings.ts +0 -64
  164. package/src/tools/subscriptions.ts +0 -159
  165. package/src/tools/summary.ts +0 -29
  166. package/src/tools/transactions.ts +0 -200
  167. package/src/tools/transfers.ts +0 -122
  168. package/src/types/schemas.ts +0 -333
  169. package/src/utils/toolHelpers.ts +0 -11
  170. package/tests/benchmark.test.d.ts +0 -2
  171. package/tests/benchmark.test.d.ts.map +0 -1
  172. package/tests/benchmark.test.js +0 -33
  173. package/tests/benchmark.test.js.map +0 -1
  174. package/tests/benchmark.test.ts +0 -38
  175. package/tests/server.test.d.ts +0 -2
  176. package/tests/server.test.d.ts.map +0 -1
  177. package/tests/server.test.js +0 -13
  178. package/tests/server.test.js.map +0 -1
  179. package/tests/server.test.ts +0 -14
  180. package/tests/setup.d.ts +0 -4
  181. package/tests/setup.d.ts.map +0 -1
  182. package/tests/setup.js +0 -17
  183. package/tests/setup.js.map +0 -1
  184. package/tests/setup.ts +0 -20
  185. package/tests/tools/accounts.test.ts +0 -159
  186. package/tests/tools/categories.test.d.ts +0 -2
  187. package/tests/tools/categories.test.d.ts.map +0 -1
  188. package/tests/tools/categories.test.js +0 -63
  189. package/tests/tools/categories.test.js.map +0 -1
  190. package/tests/tools/categories.test.ts +0 -120
  191. package/tests/tools/credit-cards.test.d.ts +0 -2
  192. package/tests/tools/credit-cards.test.d.ts.map +0 -1
  193. package/tests/tools/credit-cards.test.js +0 -71
  194. package/tests/tools/credit-cards.test.js.map +0 -1
  195. package/tests/tools/credit-cards.test.ts +0 -131
  196. package/tests/tools/data.test.ts +0 -100
  197. package/tests/tools/settings.test.ts +0 -116
  198. package/tests/tools/subscriptions.test.ts +0 -173
  199. package/tests/tools/summary.test.d.ts +0 -2
  200. package/tests/tools/summary.test.d.ts.map +0 -1
  201. package/tests/tools/summary.test.js +0 -36
  202. package/tests/tools/summary.test.js.map +0 -1
  203. package/tests/tools/summary.test.ts +0 -63
  204. package/tests/tools/transactions.test.d.ts +0 -2
  205. package/tests/tools/transactions.test.d.ts.map +0 -1
  206. package/tests/tools/transactions.test.js +0 -67
  207. package/tests/tools/transactions.test.js.map +0 -1
  208. package/tests/tools/transactions.test.ts +0 -133
  209. package/tests/tools/transfers.test.ts +0 -141
  210. package/tsconfig.json +0 -52
  211. package/vitest.config.d.ts +0 -3
  212. package/vitest.config.d.ts.map +0 -1
  213. package/vitest.config.js +0 -14
  214. package/vitest.config.js.map +0 -1
  215. 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"
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
- """