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,239 +0,0 @@
1
- description = "Archive multiple completed changes at once"
2
-
3
- prompt = """
4
- Archive multiple completed changes in a single operation.
5
-
6
- This skill allows you to batch-archive changes, handling spec conflicts intelligently by checking the codebase to determine what's actually implemented.
7
-
8
- **Input**: None required (prompts for selection)
9
-
10
- **Steps**
11
-
12
- 1. **Get active changes**
13
-
14
- Run `openspec list --json` to get all active changes.
15
-
16
- If no active changes exist, inform user and stop.
17
-
18
- 2. **Prompt for change selection**
19
-
20
- Use **AskUserQuestion tool** with multi-select to let user choose changes:
21
- - Show each change with its schema
22
- - Include an option for "All changes"
23
- - Allow any number of selections (1+ works, 2+ is the typical use case)
24
-
25
- **IMPORTANT**: Do NOT auto-select. Always let the user choose.
26
-
27
- 3. **Batch validation - gather status for all selected changes**
28
-
29
- For each selected change, collect:
30
-
31
- a. **Artifact status** - Run `openspec status --change "<name>" --json`
32
- - Parse `schemaName` and `artifacts` list
33
- - Note which artifacts are `done` vs other states
34
-
35
- b. **Task completion** - Read `openspec/changes/<name>/tasks.md`
36
- - Count `- [ ]` (incomplete) vs `- [x]` (complete)
37
- - If no tasks file exists, note as "No tasks"
38
-
39
- c. **Delta specs** - Check `openspec/changes/<name>/specs/` directory
40
- - List which capability specs exist
41
- - For each, extract requirement names (lines matching `### Requirement: <name>`)
42
-
43
- 4. **Detect spec conflicts**
44
-
45
- Build a map of `capability -> [changes that touch it]`:
46
-
47
- ```
48
- auth -> [change-a, change-b] <- CONFLICT (2+ changes)
49
- api -> [change-c] <- OK (only 1 change)
50
- ```
51
-
52
- A conflict exists when 2+ selected changes have delta specs for the same capability.
53
-
54
- 5. **Resolve conflicts agentically**
55
-
56
- **For each conflict**, investigate the codebase:
57
-
58
- a. **Read the delta specs** from each conflicting change to understand what each claims to add/modify
59
-
60
- b. **Search the codebase** for implementation evidence:
61
- - Look for code implementing requirements from each delta spec
62
- - Check for related files, functions, or tests
63
-
64
- c. **Determine resolution**:
65
- - If only one change is actually implemented -> sync that one's specs
66
- - If both implemented -> apply in chronological order (older first, newer overwrites)
67
- - If neither implemented -> skip spec sync, warn user
68
-
69
- d. **Record resolution** for each conflict:
70
- - Which change's specs to apply
71
- - In what order (if both)
72
- - Rationale (what was found in codebase)
73
-
74
- 6. **Show consolidated status table**
75
-
76
- Display a table summarizing all changes:
77
-
78
- ```
79
- | Change | Artifacts | Tasks | Specs | Conflicts | Status |
80
- |---------------------|-----------|-------|---------|-----------|--------|
81
- | schema-management | Done | 5/5 | 2 delta | None | Ready |
82
- | project-config | Done | 3/3 | 1 delta | None | Ready |
83
- | add-oauth | Done | 4/4 | 1 delta | auth (!) | Ready* |
84
- | add-verify-skill | 1 left | 2/5 | None | None | Warn |
85
- ```
86
-
87
- For conflicts, show the resolution:
88
- ```
89
- * Conflict resolution:
90
- - auth spec: Will apply add-oauth then add-jwt (both implemented, chronological order)
91
- ```
92
-
93
- For incomplete changes, show warnings:
94
- ```
95
- Warnings:
96
- - add-verify-skill: 1 incomplete artifact, 3 incomplete tasks
97
- ```
98
-
99
- 7. **Confirm batch operation**
100
-
101
- Use **AskUserQuestion tool** with a single confirmation:
102
-
103
- - "Archive N changes?" with options based on status
104
- - Options might include:
105
- - "Archive all N changes"
106
- - "Archive only N ready changes (skip incomplete)"
107
- - "Cancel"
108
-
109
- If there are incomplete changes, make clear they'll be archived with warnings.
110
-
111
- 8. **Execute archive for each confirmed change**
112
-
113
- Process changes in the determined order (respecting conflict resolution):
114
-
115
- a. **Sync specs** if delta specs exist:
116
- - Use the openspec-sync-specs approach (agent-driven intelligent merge)
117
- - For conflicts, apply in resolved order
118
- - Track if sync was done
119
-
120
- b. **Perform the archive**:
121
- ```bash
122
- mkdir -p openspec/changes/archive
123
- mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
124
- ```
125
-
126
- c. **Track outcome** for each change:
127
- - Success: archived successfully
128
- - Failed: error during archive (record error)
129
- - Skipped: user chose not to archive (if applicable)
130
-
131
- 9. **Display summary**
132
-
133
- Show final results:
134
-
135
- ```
136
- ## Bulk Archive Complete
137
-
138
- Archived 3 changes:
139
- - schema-management-cli -> archive/2026-01-19-schema-management-cli/
140
- - project-config -> archive/2026-01-19-project-config/
141
- - add-oauth -> archive/2026-01-19-add-oauth/
142
-
143
- Skipped 1 change:
144
- - add-verify-skill (user chose not to archive incomplete)
145
-
146
- Spec sync summary:
147
- - 4 delta specs synced to main specs
148
- - 1 conflict resolved (auth: applied both in chronological order)
149
- ```
150
-
151
- If any failures:
152
- ```
153
- Failed 1 change:
154
- - some-change: Archive directory already exists
155
- ```
156
-
157
- **Conflict Resolution Examples**
158
-
159
- Example 1: Only one implemented
160
- ```
161
- Conflict: specs/auth/spec.md touched by [add-oauth, add-jwt]
162
-
163
- Checking add-oauth:
164
- - Delta adds "OAuth Provider Integration" requirement
165
- - Searching codebase... found src/auth/oauth.ts implementing OAuth flow
166
-
167
- Checking add-jwt:
168
- - Delta adds "JWT Token Handling" requirement
169
- - Searching codebase... no JWT implementation found
170
-
171
- Resolution: Only add-oauth is implemented. Will sync add-oauth specs only.
172
- ```
173
-
174
- Example 2: Both implemented
175
- ```
176
- Conflict: specs/api/spec.md touched by [add-rest-api, add-graphql]
177
-
178
- Checking add-rest-api (created 2026-01-10):
179
- - Delta adds "REST Endpoints" requirement
180
- - Searching codebase... found src/api/rest.ts
181
-
182
- Checking add-graphql (created 2026-01-15):
183
- - Delta adds "GraphQL Schema" requirement
184
- - Searching codebase... found src/api/graphql.ts
185
-
186
- Resolution: Both implemented. Will apply add-rest-api specs first,
187
- then add-graphql specs (chronological order, newer takes precedence).
188
- ```
189
-
190
- **Output On Success**
191
-
192
- ```
193
- ## Bulk Archive Complete
194
-
195
- Archived N changes:
196
- - <change-1> -> archive/YYYY-MM-DD-<change-1>/
197
- - <change-2> -> archive/YYYY-MM-DD-<change-2>/
198
-
199
- Spec sync summary:
200
- - N delta specs synced to main specs
201
- - No conflicts (or: M conflicts resolved)
202
- ```
203
-
204
- **Output On Partial Success**
205
-
206
- ```
207
- ## Bulk Archive Complete (partial)
208
-
209
- Archived N changes:
210
- - <change-1> -> archive/YYYY-MM-DD-<change-1>/
211
-
212
- Skipped M changes:
213
- - <change-2> (user chose not to archive incomplete)
214
-
215
- Failed K changes:
216
- - <change-3>: Archive directory already exists
217
- ```
218
-
219
- **Output When No Changes**
220
-
221
- ```
222
- ## No Changes to Archive
223
-
224
- No active changes found. Use `/opsx:new` to create a new change.
225
- ```
226
-
227
- **Guardrails**
228
- - Allow any number of changes (1+ is fine, 2+ is the typical use case)
229
- - Always prompt for selection, never auto-select
230
- - Detect spec conflicts early and resolve by checking codebase
231
- - When both changes are implemented, apply specs in chronological order
232
- - Skip spec sync only when implementation is missing (warn user)
233
- - Show clear per-change status before confirming
234
- - Use single confirmation for entire batch
235
- - Track and report all outcomes (success/skip/fail)
236
- - Preserve .openspec.yaml when moving to archive
237
- - Archive directory target uses current date: YYYY-MM-DD-<name>
238
- - If archive target exists, fail that change but continue with others
239
- """
@@ -1,111 +0,0 @@
1
- description = "Continue working on a change - create the next artifact (Experimental)"
2
-
3
- prompt = """
4
- Continue working on a change by creating the next artifact.
5
-
6
- **Input**: Optionally specify a change name after `/opsx:continue` (e.g., `/opsx:continue 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 sorted by most recently modified. Then use the **AskUserQuestion tool** to let the user select which change to work on.
13
-
14
- Present the top 3-4 most recently modified changes as options, showing:
15
- - Change name
16
- - Schema (from `schema` field if present, otherwise "spec-driven")
17
- - Status (e.g., "0/5 tasks", "complete", "no tasks")
18
- - How recently it was modified (from `lastModified` field)
19
-
20
- Mark the most recently modified change as "(Recommended)" since it's likely what the user wants to continue.
21
-
22
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
23
-
24
- 2. **Check current status**
25
- ```bash
26
- openspec status --change "<name>" --json
27
- ```
28
- Parse the JSON to understand current state. The response includes:
29
- - `schemaName`: The workflow schema being used (e.g., "spec-driven")
30
- - `artifacts`: Array of artifacts with their status ("done", "ready", "blocked")
31
- - `isComplete`: Boolean indicating if all artifacts are complete
32
-
33
- 3. **Act based on status**:
34
-
35
- ---
36
-
37
- **If all artifacts are complete (`isComplete: true`)**:
38
- - Congratulate the user
39
- - Show final status including the schema used
40
- - Suggest: "All artifacts created! You can now implement this change with `/opsx:apply` or archive it with `/opsx:archive`."
41
- - STOP
42
-
43
- ---
44
-
45
- **If artifacts are ready to create** (status shows artifacts with `status: "ready"`):
46
- - Pick the FIRST artifact with `status: "ready"` from the status output
47
- - Get its instructions:
48
- ```bash
49
- openspec instructions <artifact-id> --change "<name>" --json
50
- ```
51
- - Parse the JSON. The key fields are:
52
- - `context`: Project background (constraints for you - do NOT include in output)
53
- - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
54
- - `template`: The structure to use for your output file
55
- - `instruction`: Schema-specific guidance
56
- - `outputPath`: Where to write the artifact
57
- - `dependencies`: Completed artifacts to read for context
58
- - **Create the artifact file**:
59
- - Read any completed dependency files for context
60
- - Use `template` as the structure - fill in its sections
61
- - Apply `context` and `rules` as constraints when writing - but do NOT copy them into the file
62
- - Write to the output path specified in instructions
63
- - Show what was created and what's now unlocked
64
- - STOP after creating ONE artifact
65
-
66
- ---
67
-
68
- **If no artifacts are ready (all blocked)**:
69
- - This shouldn't happen with a valid schema
70
- - Show status and suggest checking for issues
71
-
72
- 4. **After creating an artifact, show progress**
73
- ```bash
74
- openspec status --change "<name>"
75
- ```
76
-
77
- **Output**
78
-
79
- After each invocation, show:
80
- - Which artifact was created
81
- - Schema workflow being used
82
- - Current progress (N/M complete)
83
- - What artifacts are now unlocked
84
- - Prompt: "Run `/opsx:continue` to create the next artifact"
85
-
86
- **Artifact Creation Guidelines**
87
-
88
- The artifact types and their purpose depend on the schema. Use the `instruction` field from the instructions output to understand what to create.
89
-
90
- Common artifact patterns:
91
-
92
- **spec-driven schema** (proposal → specs → design → tasks):
93
- - **proposal.md**: Ask user about the change if not clear. Fill in Why, What Changes, Capabilities, Impact.
94
- - The Capabilities section is critical - each capability listed will need a spec file.
95
- - **specs/<capability>/spec.md**: Create one spec per capability listed in the proposal's Capabilities section (use the capability name, not the change name).
96
- - **design.md**: Document technical decisions, architecture, and implementation approach.
97
- - **tasks.md**: Break down implementation into checkboxed tasks.
98
-
99
- For other schemas, follow the `instruction` field from the CLI output.
100
-
101
- **Guardrails**
102
- - Create ONE artifact per invocation
103
- - Always read dependency artifacts before creating a new one
104
- - Never skip artifacts or create out of order
105
- - If context is unclear, ask the user before creating
106
- - Verify the artifact file exists after writing before marking progress
107
- - Use the schema's artifact sequence, don't assume specific artifact names
108
- - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
109
- - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
110
- - These guide what you write, but should never appear in the output
111
- """
@@ -1,171 +0,0 @@
1
- description = "Enter explore mode - think through ideas, investigate problems, clarify requirements"
2
-
3
- prompt = """
4
- Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
5
-
6
- **IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, and investigate the codebase, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first (e.g., start a change with `/opsx:new` or `/opsx:ff`). You MAY create OpenSpec artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
7
-
8
- **This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
9
-
10
- **Input**: The argument after `/opsx:explore` is whatever the user wants to think about. Could be:
11
- - A vague idea: "real-time collaboration"
12
- - A specific problem: "the auth system is getting unwieldy"
13
- - A change name: "add-dark-mode" (to explore in context of that change)
14
- - A comparison: "postgres vs sqlite for this"
15
- - Nothing (just enter explore mode)
16
-
17
- ---
18
-
19
- ## The Stance
20
-
21
- - **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
22
- - **Open threads, not interrogations** - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
23
- - **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
24
- - **Adaptive** - Follow interesting threads, pivot when new information emerges
25
- - **Patient** - Don't rush to conclusions, let the shape of the problem emerge
26
- - **Grounded** - Explore the actual codebase when relevant, don't just theorize
27
-
28
- ---
29
-
30
- ## What You Might Do
31
-
32
- Depending on what the user brings, you might:
33
-
34
- **Explore the problem space**
35
- - Ask clarifying questions that emerge from what they said
36
- - Challenge assumptions
37
- - Reframe the problem
38
- - Find analogies
39
-
40
- **Investigate the codebase**
41
- - Map existing architecture relevant to the discussion
42
- - Find integration points
43
- - Identify patterns already in use
44
- - Surface hidden complexity
45
-
46
- **Compare options**
47
- - Brainstorm multiple approaches
48
- - Build comparison tables
49
- - Sketch tradeoffs
50
- - Recommend a path (if asked)
51
-
52
- **Visualize**
53
- ```
54
- ┌─────────────────────────────────────────┐
55
- │ Use ASCII diagrams liberally │
56
- ├─────────────────────────────────────────┤
57
- │ │
58
- │ ┌────────┐ ┌────────┐ │
59
- │ │ State │────────▶│ State │ │
60
- │ │ A │ │ B │ │
61
- │ └────────┘ └────────┘ │
62
- │ │
63
- │ System diagrams, state machines, │
64
- │ data flows, architecture sketches, │
65
- │ dependency graphs, comparison tables │
66
- │ │
67
- └─────────────────────────────────────────┘
68
- ```
69
-
70
- **Surface risks and unknowns**
71
- - Identify what could go wrong
72
- - Find gaps in understanding
73
- - Suggest spikes or investigations
74
-
75
- ---
76
-
77
- ## OpenSpec Awareness
78
-
79
- You have full context of the OpenSpec system. Use it naturally, don't force it.
80
-
81
- ### Check for context
82
-
83
- At the start, quickly check what exists:
84
- ```bash
85
- openspec list --json
86
- ```
87
-
88
- This tells you:
89
- - If there are active changes
90
- - Their names, schemas, and status
91
- - What the user might be working on
92
-
93
- If the user mentioned a specific change name, read its artifacts for context.
94
-
95
- ### When no change exists
96
-
97
- Think freely. When insights crystallize, you might offer:
98
-
99
- - "This feels solid enough to start a change. Want me to create one?"
100
- → Can transition to `/opsx:new` or `/opsx:ff`
101
- - Or keep exploring - no pressure to formalize
102
-
103
- ### When a change exists
104
-
105
- If the user mentions a change or you detect one is relevant:
106
-
107
- 1. **Read existing artifacts for context**
108
- - `openspec/changes/<name>/proposal.md`
109
- - `openspec/changes/<name>/design.md`
110
- - `openspec/changes/<name>/tasks.md`
111
- - etc.
112
-
113
- 2. **Reference them naturally in conversation**
114
- - "Your design mentions using Redis, but we just realized SQLite fits better..."
115
- - "The proposal scopes this to premium users, but we're now thinking everyone..."
116
-
117
- 3. **Offer to capture when decisions are made**
118
-
119
- | Insight Type | Where to Capture |
120
- |--------------|------------------|
121
- | New requirement discovered | `specs/<capability>/spec.md` |
122
- | Requirement changed | `specs/<capability>/spec.md` |
123
- | Design decision made | `design.md` |
124
- | Scope changed | `proposal.md` |
125
- | New work identified | `tasks.md` |
126
- | Assumption invalidated | Relevant artifact |
127
-
128
- Example offers:
129
- - "That's a design decision. Capture it in design.md?"
130
- - "This is a new requirement. Add it to specs?"
131
- - "This changes scope. Update the proposal?"
132
-
133
- 4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
134
-
135
- ---
136
-
137
- ## What You Don't Have To Do
138
-
139
- - Follow a script
140
- - Ask the same questions every time
141
- - Produce a specific artifact
142
- - Reach a conclusion
143
- - Stay on topic if a tangent is valuable
144
- - Be brief (this is thinking time)
145
-
146
- ---
147
-
148
- ## Ending Discovery
149
-
150
- There's no required ending. Discovery might:
151
-
152
- - **Flow into action**: "Ready to start? `/opsx:new` or `/opsx:ff`"
153
- - **Result in artifact updates**: "Updated design.md with these decisions"
154
- - **Just provide clarity**: User has what they need, moves on
155
- - **Continue later**: "We can pick this up anytime"
156
-
157
- When things crystallize, you might offer a summary - but it's optional. Sometimes the thinking IS the value.
158
-
159
- ---
160
-
161
- ## Guardrails
162
-
163
- - **Don't implement** - Never write code or implement features. Creating OpenSpec artifacts is fine, writing application code is not.
164
- - **Don't fake understanding** - If something is unclear, dig deeper
165
- - **Don't rush** - Discovery is thinking time, not task time
166
- - **Don't force structure** - Let patterns emerge naturally
167
- - **Don't auto-capture** - Offer to save insights, don't just do it
168
- - **Do visualize** - A good diagram is worth many paragraphs
169
- - **Do explore the codebase** - Ground discussions in reality
170
- - **Do question assumptions** - Including the user's and your own
171
- """
@@ -1,91 +0,0 @@
1
- description = "Create a change and generate all artifacts needed for implementation in one go"
2
-
3
- prompt = """
4
- Fast-forward through artifact creation - generate everything needed to start implementation.
5
-
6
- **Input**: The argument after `/opsx:ff` is the change name (kebab-case), OR a description of what the user wants to build.
7
-
8
- **Steps**
9
-
10
- 1. **If no input provided, ask what they want to build**
11
-
12
- Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
13
- > "What change do you want to work on? Describe what you want to build or fix."
14
-
15
- From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
16
-
17
- **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
18
-
19
- 2. **Create the change directory**
20
- ```bash
21
- openspec new change "<name>"
22
- ```
23
- This creates a scaffolded change at `openspec/changes/<name>/`.
24
-
25
- 3. **Get the artifact build order**
26
- ```bash
27
- openspec status --change "<name>" --json
28
- ```
29
- Parse the JSON to get:
30
- - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
31
- - `artifacts`: list of all artifacts with their status and dependencies
32
-
33
- 4. **Create artifacts in sequence until apply-ready**
34
-
35
- Use the **TodoWrite tool** to track progress through the artifacts.
36
-
37
- Loop through artifacts in dependency order (artifacts with no pending dependencies first):
38
-
39
- a. **For each artifact that is `ready` (dependencies satisfied)**:
40
- - Get instructions:
41
- ```bash
42
- openspec instructions <artifact-id> --change "<name>" --json
43
- ```
44
- - The instructions JSON includes:
45
- - `context`: Project background (constraints for you - do NOT include in output)
46
- - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
47
- - `template`: The structure to use for your output file
48
- - `instruction`: Schema-specific guidance for this artifact type
49
- - `outputPath`: Where to write the artifact
50
- - `dependencies`: Completed artifacts to read for context
51
- - Read any completed dependency files for context
52
- - Create the artifact file using `template` as the structure
53
- - Apply `context` and `rules` as constraints - but do NOT copy them into the file
54
- - Show brief progress: "✓ Created <artifact-id>"
55
-
56
- b. **Continue until all `applyRequires` artifacts are complete**
57
- - After creating each artifact, re-run `openspec status --change "<name>" --json`
58
- - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
59
- - Stop when all `applyRequires` artifacts are done
60
-
61
- c. **If an artifact requires user input** (unclear context):
62
- - Use **AskUserQuestion tool** to clarify
63
- - Then continue with creation
64
-
65
- 5. **Show final status**
66
- ```bash
67
- openspec status --change "<name>"
68
- ```
69
-
70
- **Output**
71
-
72
- After completing all artifacts, summarize:
73
- - Change name and location
74
- - List of artifacts created with brief descriptions
75
- - What's ready: "All artifacts created! Ready for implementation."
76
- - Prompt: "Run `/opsx:apply` to start implementing."
77
-
78
- **Artifact Creation Guidelines**
79
-
80
- - Follow the `instruction` field from `openspec instructions` for each artifact type
81
- - The schema defines what each artifact should contain - follow it
82
- - Read dependency artifacts for context before creating new ones
83
- - Use the `template` as a starting point, filling in based on context
84
-
85
- **Guardrails**
86
- - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
87
- - Always read dependency artifacts before creating a new one
88
- - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
89
- - If a change with that name already exists, ask if user wants to continue it or create a new one
90
- - Verify each artifact file exists after writing before proceeding to next
91
- """
@@ -1,66 +0,0 @@
1
- description = "Start a new change using the experimental artifact workflow (OPSX)"
2
-
3
- prompt = """
4
- Start a new change using the experimental artifact-driven approach.
5
-
6
- **Input**: The argument after `/opsx:new` is the change name (kebab-case), OR a description of what the user wants to build.
7
-
8
- **Steps**
9
-
10
- 1. **If no input provided, ask what they want to build**
11
-
12
- Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
13
- > "What change do you want to work on? Describe what you want to build or fix."
14
-
15
- From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
16
-
17
- **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
18
-
19
- 2. **Determine the workflow schema**
20
-
21
- Use the default schema (omit `--schema`) unless the user explicitly requests a different workflow.
22
-
23
- **Use a different schema only if the user mentions:**
24
- - A specific schema name → use `--schema <name>`
25
- - "show workflows" or "what workflows" → run `openspec schemas --json` and let them choose
26
-
27
- **Otherwise**: Omit `--schema` to use the default.
28
-
29
- 3. **Create the change directory**
30
- ```bash
31
- openspec new change "<name>"
32
- ```
33
- Add `--schema <name>` only if the user requested a specific workflow.
34
- This creates a scaffolded change at `openspec/changes/<name>/` with the selected schema.
35
-
36
- 4. **Show the artifact status**
37
- ```bash
38
- openspec status --change "<name>"
39
- ```
40
- This shows which artifacts need to be created and which are ready (dependencies satisfied).
41
-
42
- 5. **Get instructions for the first artifact**
43
- The first artifact depends on the schema. Check the status output to find the first artifact with status "ready".
44
- ```bash
45
- openspec instructions <first-artifact-id> --change "<name>"
46
- ```
47
- This outputs the template and context for creating the first artifact.
48
-
49
- 6. **STOP and wait for user direction**
50
-
51
- **Output**
52
-
53
- After completing the steps, summarize:
54
- - Change name and location
55
- - Schema/workflow being used and its artifact sequence
56
- - Current status (0/N artifacts complete)
57
- - The template for the first artifact
58
- - Prompt: "Ready to create the first artifact? Run `/opsx:continue` or just describe what this change is about and I'll draft it."
59
-
60
- **Guardrails**
61
- - Do NOT create any artifacts yet - just show the instructions
62
- - Do NOT advance beyond showing the first artifact template
63
- - If the name is invalid (not kebab-case), ask for a valid name
64
- - If a change with that name already exists, suggest using `/opsx:continue` instead
65
- - Pass --schema if using a non-default workflow
66
- """