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,174 +0,0 @@
1
- ---
2
- name: "OPSX: Explore"
3
- description: "Enter explore mode - think through ideas, investigate problems, clarify requirements"
4
- category: Workflow
5
- tags: [workflow, explore, experimental, thinking]
6
- ---
7
-
8
- Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
9
-
10
- **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.
11
-
12
- **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.
13
-
14
- **Input**: The argument after `/opsx:explore` is whatever the user wants to think about. Could be:
15
- - A vague idea: "real-time collaboration"
16
- - A specific problem: "the auth system is getting unwieldy"
17
- - A change name: "add-dark-mode" (to explore in context of that change)
18
- - A comparison: "postgres vs sqlite for this"
19
- - Nothing (just enter explore mode)
20
-
21
- ---
22
-
23
- ## The Stance
24
-
25
- - **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
26
- - **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.
27
- - **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
28
- - **Adaptive** - Follow interesting threads, pivot when new information emerges
29
- - **Patient** - Don't rush to conclusions, let the shape of the problem emerge
30
- - **Grounded** - Explore the actual codebase when relevant, don't just theorize
31
-
32
- ---
33
-
34
- ## What You Might Do
35
-
36
- Depending on what the user brings, you might:
37
-
38
- **Explore the problem space**
39
- - Ask clarifying questions that emerge from what they said
40
- - Challenge assumptions
41
- - Reframe the problem
42
- - Find analogies
43
-
44
- **Investigate the codebase**
45
- - Map existing architecture relevant to the discussion
46
- - Find integration points
47
- - Identify patterns already in use
48
- - Surface hidden complexity
49
-
50
- **Compare options**
51
- - Brainstorm multiple approaches
52
- - Build comparison tables
53
- - Sketch tradeoffs
54
- - Recommend a path (if asked)
55
-
56
- **Visualize**
57
- ```
58
- ┌─────────────────────────────────────────┐
59
- │ Use ASCII diagrams liberally │
60
- ├─────────────────────────────────────────┤
61
- │ │
62
- │ ┌────────┐ ┌────────┐ │
63
- │ │ State │────────▶│ State │ │
64
- │ │ A │ │ B │ │
65
- │ └────────┘ └────────┘ │
66
- │ │
67
- │ System diagrams, state machines, │
68
- │ data flows, architecture sketches, │
69
- │ dependency graphs, comparison tables │
70
- │ │
71
- └─────────────────────────────────────────┘
72
- ```
73
-
74
- **Surface risks and unknowns**
75
- - Identify what could go wrong
76
- - Find gaps in understanding
77
- - Suggest spikes or investigations
78
-
79
- ---
80
-
81
- ## OpenSpec Awareness
82
-
83
- You have full context of the OpenSpec system. Use it naturally, don't force it.
84
-
85
- ### Check for context
86
-
87
- At the start, quickly check what exists:
88
- ```bash
89
- openspec list --json
90
- ```
91
-
92
- This tells you:
93
- - If there are active changes
94
- - Their names, schemas, and status
95
- - What the user might be working on
96
-
97
- If the user mentioned a specific change name, read its artifacts for context.
98
-
99
- ### When no change exists
100
-
101
- Think freely. When insights crystallize, you might offer:
102
-
103
- - "This feels solid enough to start a change. Want me to create one?"
104
- → Can transition to `/opsx:new` or `/opsx:ff`
105
- - Or keep exploring - no pressure to formalize
106
-
107
- ### When a change exists
108
-
109
- If the user mentions a change or you detect one is relevant:
110
-
111
- 1. **Read existing artifacts for context**
112
- - `openspec/changes/<name>/proposal.md`
113
- - `openspec/changes/<name>/design.md`
114
- - `openspec/changes/<name>/tasks.md`
115
- - etc.
116
-
117
- 2. **Reference them naturally in conversation**
118
- - "Your design mentions using Redis, but we just realized SQLite fits better..."
119
- - "The proposal scopes this to premium users, but we're now thinking everyone..."
120
-
121
- 3. **Offer to capture when decisions are made**
122
-
123
- | Insight Type | Where to Capture |
124
- |--------------|------------------|
125
- | New requirement discovered | `specs/<capability>/spec.md` |
126
- | Requirement changed | `specs/<capability>/spec.md` |
127
- | Design decision made | `design.md` |
128
- | Scope changed | `proposal.md` |
129
- | New work identified | `tasks.md` |
130
- | Assumption invalidated | Relevant artifact |
131
-
132
- Example offers:
133
- - "That's a design decision. Capture it in design.md?"
134
- - "This is a new requirement. Add it to specs?"
135
- - "This changes scope. Update the proposal?"
136
-
137
- 4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
138
-
139
- ---
140
-
141
- ## What You Don't Have To Do
142
-
143
- - Follow a script
144
- - Ask the same questions every time
145
- - Produce a specific artifact
146
- - Reach a conclusion
147
- - Stay on topic if a tangent is valuable
148
- - Be brief (this is thinking time)
149
-
150
- ---
151
-
152
- ## Ending Discovery
153
-
154
- There's no required ending. Discovery might:
155
-
156
- - **Flow into action**: "Ready to start? `/opsx:new` or `/opsx:ff`"
157
- - **Result in artifact updates**: "Updated design.md with these decisions"
158
- - **Just provide clarity**: User has what they need, moves on
159
- - **Continue later**: "We can pick this up anytime"
160
-
161
- When things crystallize, you might offer a summary - but it's optional. Sometimes the thinking IS the value.
162
-
163
- ---
164
-
165
- ## Guardrails
166
-
167
- - **Don't implement** - Never write code or implement features. Creating OpenSpec artifacts is fine, writing application code is not.
168
- - **Don't fake understanding** - If something is unclear, dig deeper
169
- - **Don't rush** - Discovery is thinking time, not task time
170
- - **Don't force structure** - Let patterns emerge naturally
171
- - **Don't auto-capture** - Offer to save insights, don't just do it
172
- - **Do visualize** - A good diagram is worth many paragraphs
173
- - **Do explore the codebase** - Ground discussions in reality
174
- - **Do question assumptions** - Including the user's and your own
@@ -1,94 +0,0 @@
1
- ---
2
- name: "OPSX: Fast Forward"
3
- description: Create a change and generate all artifacts needed for implementation in one go
4
- category: Workflow
5
- tags: [workflow, artifacts, experimental]
6
- ---
7
-
8
- Fast-forward through artifact creation - generate everything needed to start implementation.
9
-
10
- **Input**: The argument after `/opsx:ff` is the change name (kebab-case), OR a description of what the user wants to build.
11
-
12
- **Steps**
13
-
14
- 1. **If no input provided, ask what they want to build**
15
-
16
- Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
17
- > "What change do you want to work on? Describe what you want to build or fix."
18
-
19
- From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
20
-
21
- **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
22
-
23
- 2. **Create the change directory**
24
- ```bash
25
- openspec new change "<name>"
26
- ```
27
- This creates a scaffolded change at `openspec/changes/<name>/`.
28
-
29
- 3. **Get the artifact build order**
30
- ```bash
31
- openspec status --change "<name>" --json
32
- ```
33
- Parse the JSON to get:
34
- - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
35
- - `artifacts`: list of all artifacts with their status and dependencies
36
-
37
- 4. **Create artifacts in sequence until apply-ready**
38
-
39
- Use the **TodoWrite tool** to track progress through the artifacts.
40
-
41
- Loop through artifacts in dependency order (artifacts with no pending dependencies first):
42
-
43
- a. **For each artifact that is `ready` (dependencies satisfied)**:
44
- - Get instructions:
45
- ```bash
46
- openspec instructions <artifact-id> --change "<name>" --json
47
- ```
48
- - The instructions JSON includes:
49
- - `context`: Project background (constraints for you - do NOT include in output)
50
- - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
51
- - `template`: The structure to use for your output file
52
- - `instruction`: Schema-specific guidance for this artifact type
53
- - `outputPath`: Where to write the artifact
54
- - `dependencies`: Completed artifacts to read for context
55
- - Read any completed dependency files for context
56
- - Create the artifact file using `template` as the structure
57
- - Apply `context` and `rules` as constraints - but do NOT copy them into the file
58
- - Show brief progress: "✓ Created <artifact-id>"
59
-
60
- b. **Continue until all `applyRequires` artifacts are complete**
61
- - After creating each artifact, re-run `openspec status --change "<name>" --json`
62
- - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
63
- - Stop when all `applyRequires` artifacts are done
64
-
65
- c. **If an artifact requires user input** (unclear context):
66
- - Use **AskUserQuestion tool** to clarify
67
- - Then continue with creation
68
-
69
- 5. **Show final status**
70
- ```bash
71
- openspec status --change "<name>"
72
- ```
73
-
74
- **Output**
75
-
76
- After completing all artifacts, summarize:
77
- - Change name and location
78
- - List of artifacts created with brief descriptions
79
- - What's ready: "All artifacts created! Ready for implementation."
80
- - Prompt: "Run `/opsx:apply` to start implementing."
81
-
82
- **Artifact Creation Guidelines**
83
-
84
- - Follow the `instruction` field from `openspec instructions` for each artifact type
85
- - The schema defines what each artifact should contain - follow it
86
- - Read dependency artifacts for context before creating new ones
87
- - Use the `template` as a starting point, filling in based on context
88
-
89
- **Guardrails**
90
- - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
91
- - Always read dependency artifacts before creating a new one
92
- - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
93
- - If a change with that name already exists, ask if user wants to continue it or create a new one
94
- - Verify each artifact file exists after writing before proceeding to next
@@ -1,69 +0,0 @@
1
- ---
2
- name: "OPSX: New"
3
- description: Start a new change using the experimental artifact workflow (OPSX)
4
- category: Workflow
5
- tags: [workflow, artifacts, experimental]
6
- ---
7
-
8
- Start a new change using the experimental artifact-driven approach.
9
-
10
- **Input**: The argument after `/opsx:new` is the change name (kebab-case), OR a description of what the user wants to build.
11
-
12
- **Steps**
13
-
14
- 1. **If no input provided, ask what they want to build**
15
-
16
- Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
17
- > "What change do you want to work on? Describe what you want to build or fix."
18
-
19
- From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
20
-
21
- **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
22
-
23
- 2. **Determine the workflow schema**
24
-
25
- Use the default schema (omit `--schema`) unless the user explicitly requests a different workflow.
26
-
27
- **Use a different schema only if the user mentions:**
28
- - A specific schema name → use `--schema <name>`
29
- - "show workflows" or "what workflows" → run `openspec schemas --json` and let them choose
30
-
31
- **Otherwise**: Omit `--schema` to use the default.
32
-
33
- 3. **Create the change directory**
34
- ```bash
35
- openspec new change "<name>"
36
- ```
37
- Add `--schema <name>` only if the user requested a specific workflow.
38
- This creates a scaffolded change at `openspec/changes/<name>/` with the selected schema.
39
-
40
- 4. **Show the artifact status**
41
- ```bash
42
- openspec status --change "<name>"
43
- ```
44
- This shows which artifacts need to be created and which are ready (dependencies satisfied).
45
-
46
- 5. **Get instructions for the first artifact**
47
- The first artifact depends on the schema. Check the status output to find the first artifact with status "ready".
48
- ```bash
49
- openspec instructions <first-artifact-id> --change "<name>"
50
- ```
51
- This outputs the template and context for creating the first artifact.
52
-
53
- 6. **STOP and wait for user direction**
54
-
55
- **Output**
56
-
57
- After completing the steps, summarize:
58
- - Change name and location
59
- - Schema/workflow being used and its artifact sequence
60
- - Current status (0/N artifacts complete)
61
- - The template for the first artifact
62
- - Prompt: "Ready to create the first artifact? Run `/opsx:continue` or just describe what this change is about and I'll draft it."
63
-
64
- **Guardrails**
65
- - Do NOT create any artifacts yet - just show the instructions
66
- - Do NOT advance beyond showing the first artifact template
67
- - If the name is invalid (not kebab-case), ask for a valid name
68
- - If a change with that name already exists, suggest using `/opsx:continue` instead
69
- - Pass --schema if using a non-default workflow