@dccxx/auggiegw 1.0.24 → 1.0.26
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.
- package/.opencode/command/opsx-apply.md +149 -0
- package/.opencode/command/opsx-archive.md +154 -0
- package/.opencode/command/opsx-bulk-archive.md +239 -0
- package/.opencode/command/opsx-continue.md +111 -0
- package/.opencode/command/opsx-explore.md +171 -0
- package/.opencode/command/opsx-ff.md +91 -0
- package/.opencode/command/opsx-new.md +66 -0
- package/.opencode/command/opsx-onboard.md +522 -0
- package/.opencode/command/opsx-sync.md +131 -0
- package/.opencode/command/opsx-verify.md +161 -0
- package/.opencode/skills/openspec-apply-change/SKILL.md +156 -0
- package/.opencode/skills/openspec-archive-change/SKILL.md +114 -0
- package/.opencode/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.opencode/skills/openspec-continue-change/SKILL.md +118 -0
- package/.opencode/skills/openspec-explore/SKILL.md +290 -0
- package/.opencode/skills/openspec-ff-change/SKILL.md +101 -0
- package/.opencode/skills/openspec-new-change/SKILL.md +74 -0
- package/.opencode/skills/openspec-onboard/SKILL.md +529 -0
- package/.opencode/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.opencode/skills/openspec-verify-change/SKILL.md +168 -0
- package/dist/cli.js +1187 -65
- package/openspec/changes/archive/2026-02-01-add-kit-install-prompts/.openspec.yaml +2 -0
- package/openspec/changes/archive/2026-02-01-add-kit-install-prompts/design.md +113 -0
- package/openspec/changes/archive/2026-02-01-add-kit-install-prompts/proposal.md +28 -0
- package/openspec/changes/archive/2026-02-01-add-kit-install-prompts/specs/kit-command/spec.md +107 -0
- package/openspec/changes/archive/2026-02-01-add-kit-install-prompts/specs/kit-install-prompts/spec.md +90 -0
- package/openspec/changes/archive/2026-02-01-add-kit-install-prompts/tasks.md +62 -0
- package/openspec/changes/archive/2026-02-01-add-opencode-agent-support/.openspec.yaml +2 -0
- package/openspec/changes/archive/2026-02-01-add-opencode-agent-support/design.md +131 -0
- package/openspec/changes/archive/2026-02-01-add-opencode-agent-support/proposal.md +35 -0
- package/openspec/changes/archive/2026-02-01-add-opencode-agent-support/specs/kit-command/spec.md +157 -0
- package/openspec/changes/archive/2026-02-01-add-opencode-agent-support/specs/opencode-agent-support/spec.md +65 -0
- package/openspec/changes/archive/2026-02-01-add-opencode-agent-support/tasks.md +54 -0
- package/openspec/config.yaml +20 -0
- package/package.json +2 -1
- package/specs/kit-command/spec.md +157 -0
- package/specs/kit-install-prompts/spec.md +90 -0
- package/specs/opencode-agent-support/spec.md +65 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-continue-change
|
|
3
|
+
description: Continue working on an OpenSpec change by creating the next artifact. Use when the user wants to progress their change, create the next artifact, or continue their workflow.
|
|
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
|
+
Continue working on a change by creating the next artifact.
|
|
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 sorted by most recently modified. Then use the **AskUserQuestion tool** to let the user select which change to work on.
|
|
21
|
+
|
|
22
|
+
Present the top 3-4 most recently modified changes as options, showing:
|
|
23
|
+
- Change name
|
|
24
|
+
- Schema (from `schema` field if present, otherwise "spec-driven")
|
|
25
|
+
- Status (e.g., "0/5 tasks", "complete", "no tasks")
|
|
26
|
+
- How recently it was modified (from `lastModified` field)
|
|
27
|
+
|
|
28
|
+
Mark the most recently modified change as "(Recommended)" since it's likely what the user wants to continue.
|
|
29
|
+
|
|
30
|
+
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
|
|
31
|
+
|
|
32
|
+
2. **Check current status**
|
|
33
|
+
```bash
|
|
34
|
+
openspec status --change "<name>" --json
|
|
35
|
+
```
|
|
36
|
+
Parse the JSON to understand current state. The response includes:
|
|
37
|
+
- `schemaName`: The workflow schema being used (e.g., "spec-driven")
|
|
38
|
+
- `artifacts`: Array of artifacts with their status ("done", "ready", "blocked")
|
|
39
|
+
- `isComplete`: Boolean indicating if all artifacts are complete
|
|
40
|
+
|
|
41
|
+
3. **Act based on status**:
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
**If all artifacts are complete (`isComplete: true`)**:
|
|
46
|
+
- Congratulate the user
|
|
47
|
+
- Show final status including the schema used
|
|
48
|
+
- Suggest: "All artifacts created! You can now implement this change or archive it."
|
|
49
|
+
- STOP
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
**If artifacts are ready to create** (status shows artifacts with `status: "ready"`):
|
|
54
|
+
- Pick the FIRST artifact with `status: "ready"` from the status output
|
|
55
|
+
- Get its instructions:
|
|
56
|
+
```bash
|
|
57
|
+
openspec instructions <artifact-id> --change "<name>" --json
|
|
58
|
+
```
|
|
59
|
+
- Parse the JSON. The key fields are:
|
|
60
|
+
- `context`: Project background (constraints for you - do NOT include in output)
|
|
61
|
+
- `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
|
|
62
|
+
- `template`: The structure to use for your output file
|
|
63
|
+
- `instruction`: Schema-specific guidance
|
|
64
|
+
- `outputPath`: Where to write the artifact
|
|
65
|
+
- `dependencies`: Completed artifacts to read for context
|
|
66
|
+
- **Create the artifact file**:
|
|
67
|
+
- Read any completed dependency files for context
|
|
68
|
+
- Use `template` as the structure - fill in its sections
|
|
69
|
+
- Apply `context` and `rules` as constraints when writing - but do NOT copy them into the file
|
|
70
|
+
- Write to the output path specified in instructions
|
|
71
|
+
- Show what was created and what's now unlocked
|
|
72
|
+
- STOP after creating ONE artifact
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
**If no artifacts are ready (all blocked)**:
|
|
77
|
+
- This shouldn't happen with a valid schema
|
|
78
|
+
- Show status and suggest checking for issues
|
|
79
|
+
|
|
80
|
+
4. **After creating an artifact, show progress**
|
|
81
|
+
```bash
|
|
82
|
+
openspec status --change "<name>"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Output**
|
|
86
|
+
|
|
87
|
+
After each invocation, show:
|
|
88
|
+
- Which artifact was created
|
|
89
|
+
- Schema workflow being used
|
|
90
|
+
- Current progress (N/M complete)
|
|
91
|
+
- What artifacts are now unlocked
|
|
92
|
+
- Prompt: "Want to continue? Just ask me to continue or tell me what to do next."
|
|
93
|
+
|
|
94
|
+
**Artifact Creation Guidelines**
|
|
95
|
+
|
|
96
|
+
The artifact types and their purpose depend on the schema. Use the `instruction` field from the instructions output to understand what to create.
|
|
97
|
+
|
|
98
|
+
Common artifact patterns:
|
|
99
|
+
|
|
100
|
+
**spec-driven schema** (proposal → specs → design → tasks):
|
|
101
|
+
- **proposal.md**: Ask user about the change if not clear. Fill in Why, What Changes, Capabilities, Impact.
|
|
102
|
+
- The Capabilities section is critical - each capability listed will need a spec file.
|
|
103
|
+
- **specs/<capability>/spec.md**: Create one spec per capability listed in the proposal's Capabilities section (use the capability name, not the change name).
|
|
104
|
+
- **design.md**: Document technical decisions, architecture, and implementation approach.
|
|
105
|
+
- **tasks.md**: Break down implementation into checkboxed tasks.
|
|
106
|
+
|
|
107
|
+
For other schemas, follow the `instruction` field from the CLI output.
|
|
108
|
+
|
|
109
|
+
**Guardrails**
|
|
110
|
+
- Create ONE artifact per invocation
|
|
111
|
+
- Always read dependency artifacts before creating a new one
|
|
112
|
+
- Never skip artifacts or create out of order
|
|
113
|
+
- If context is unclear, ask the user before creating
|
|
114
|
+
- Verify the artifact file exists after writing before marking progress
|
|
115
|
+
- Use the schema's artifact sequence, don't assume specific artifact names
|
|
116
|
+
- **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
|
|
117
|
+
- Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
|
|
118
|
+
- These guide what you write, but should never appear in the output
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-explore
|
|
3
|
+
description: Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Requires openspec CLI.
|
|
6
|
+
metadata:
|
|
7
|
+
author: openspec
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.1.1"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
|
|
13
|
+
|
|
14
|
+
**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.
|
|
15
|
+
|
|
16
|
+
**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.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## The Stance
|
|
21
|
+
|
|
22
|
+
- **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
|
|
23
|
+
- **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.
|
|
24
|
+
- **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
|
|
25
|
+
- **Adaptive** - Follow interesting threads, pivot when new information emerges
|
|
26
|
+
- **Patient** - Don't rush to conclusions, let the shape of the problem emerge
|
|
27
|
+
- **Grounded** - Explore the actual codebase when relevant, don't just theorize
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## What You Might Do
|
|
32
|
+
|
|
33
|
+
Depending on what the user brings, you might:
|
|
34
|
+
|
|
35
|
+
**Explore the problem space**
|
|
36
|
+
- Ask clarifying questions that emerge from what they said
|
|
37
|
+
- Challenge assumptions
|
|
38
|
+
- Reframe the problem
|
|
39
|
+
- Find analogies
|
|
40
|
+
|
|
41
|
+
**Investigate the codebase**
|
|
42
|
+
- Map existing architecture relevant to the discussion
|
|
43
|
+
- Find integration points
|
|
44
|
+
- Identify patterns already in use
|
|
45
|
+
- Surface hidden complexity
|
|
46
|
+
|
|
47
|
+
**Compare options**
|
|
48
|
+
- Brainstorm multiple approaches
|
|
49
|
+
- Build comparison tables
|
|
50
|
+
- Sketch tradeoffs
|
|
51
|
+
- Recommend a path (if asked)
|
|
52
|
+
|
|
53
|
+
**Visualize**
|
|
54
|
+
```
|
|
55
|
+
┌─────────────────────────────────────────┐
|
|
56
|
+
│ Use ASCII diagrams liberally │
|
|
57
|
+
├─────────────────────────────────────────┤
|
|
58
|
+
│ │
|
|
59
|
+
│ ┌────────┐ ┌────────┐ │
|
|
60
|
+
│ │ State │────────▶│ State │ │
|
|
61
|
+
│ │ A │ │ B │ │
|
|
62
|
+
│ └────────┘ └────────┘ │
|
|
63
|
+
│ │
|
|
64
|
+
│ System diagrams, state machines, │
|
|
65
|
+
│ data flows, architecture sketches, │
|
|
66
|
+
│ dependency graphs, comparison tables │
|
|
67
|
+
│ │
|
|
68
|
+
└─────────────────────────────────────────┘
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Surface risks and unknowns**
|
|
72
|
+
- Identify what could go wrong
|
|
73
|
+
- Find gaps in understanding
|
|
74
|
+
- Suggest spikes or investigations
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## OpenSpec Awareness
|
|
79
|
+
|
|
80
|
+
You have full context of the OpenSpec system. Use it naturally, don't force it.
|
|
81
|
+
|
|
82
|
+
### Check for context
|
|
83
|
+
|
|
84
|
+
At the start, quickly check what exists:
|
|
85
|
+
```bash
|
|
86
|
+
openspec list --json
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
This tells you:
|
|
90
|
+
- If there are active changes
|
|
91
|
+
- Their names, schemas, and status
|
|
92
|
+
- What the user might be working on
|
|
93
|
+
|
|
94
|
+
### When no change exists
|
|
95
|
+
|
|
96
|
+
Think freely. When insights crystallize, you might offer:
|
|
97
|
+
|
|
98
|
+
- "This feels solid enough to start a change. Want me to create one?"
|
|
99
|
+
→ Can transition to `/opsx-new` or `/opsx-ff`
|
|
100
|
+
- Or keep exploring - no pressure to formalize
|
|
101
|
+
|
|
102
|
+
### When a change exists
|
|
103
|
+
|
|
104
|
+
If the user mentions a change or you detect one is relevant:
|
|
105
|
+
|
|
106
|
+
1. **Read existing artifacts for context**
|
|
107
|
+
- `openspec/changes/<name>/proposal.md`
|
|
108
|
+
- `openspec/changes/<name>/design.md`
|
|
109
|
+
- `openspec/changes/<name>/tasks.md`
|
|
110
|
+
- etc.
|
|
111
|
+
|
|
112
|
+
2. **Reference them naturally in conversation**
|
|
113
|
+
- "Your design mentions using Redis, but we just realized SQLite fits better..."
|
|
114
|
+
- "The proposal scopes this to premium users, but we're now thinking everyone..."
|
|
115
|
+
|
|
116
|
+
3. **Offer to capture when decisions are made**
|
|
117
|
+
|
|
118
|
+
| Insight Type | Where to Capture |
|
|
119
|
+
|--------------|------------------|
|
|
120
|
+
| New requirement discovered | `specs/<capability>/spec.md` |
|
|
121
|
+
| Requirement changed | `specs/<capability>/spec.md` |
|
|
122
|
+
| Design decision made | `design.md` |
|
|
123
|
+
| Scope changed | `proposal.md` |
|
|
124
|
+
| New work identified | `tasks.md` |
|
|
125
|
+
| Assumption invalidated | Relevant artifact |
|
|
126
|
+
|
|
127
|
+
Example offers:
|
|
128
|
+
- "That's a design decision. Capture it in design.md?"
|
|
129
|
+
- "This is a new requirement. Add it to specs?"
|
|
130
|
+
- "This changes scope. Update the proposal?"
|
|
131
|
+
|
|
132
|
+
4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## What You Don't Have To Do
|
|
137
|
+
|
|
138
|
+
- Follow a script
|
|
139
|
+
- Ask the same questions every time
|
|
140
|
+
- Produce a specific artifact
|
|
141
|
+
- Reach a conclusion
|
|
142
|
+
- Stay on topic if a tangent is valuable
|
|
143
|
+
- Be brief (this is thinking time)
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Handling Different Entry Points
|
|
148
|
+
|
|
149
|
+
**User brings a vague idea:**
|
|
150
|
+
```
|
|
151
|
+
User: I'm thinking about adding real-time collaboration
|
|
152
|
+
|
|
153
|
+
You: Real-time collab is a big space. Let me think about this...
|
|
154
|
+
|
|
155
|
+
COLLABORATION SPECTRUM
|
|
156
|
+
════════════════════════════════════════════
|
|
157
|
+
|
|
158
|
+
Awareness Coordination Sync
|
|
159
|
+
│ │ │
|
|
160
|
+
▼ ▼ ▼
|
|
161
|
+
┌────────┐ ┌────────┐ ┌────────┐
|
|
162
|
+
│Presence│ │Cursors │ │ CRDT │
|
|
163
|
+
│ "3 │ │ Multi │ │Conflict│
|
|
164
|
+
│online" │ │ select │ │ free │
|
|
165
|
+
└────────┘ └────────┘ └────────┘
|
|
166
|
+
│ │ │
|
|
167
|
+
trivial moderate complex
|
|
168
|
+
|
|
169
|
+
Where's your head at?
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**User brings a specific problem:**
|
|
173
|
+
```
|
|
174
|
+
User: The auth system is a mess
|
|
175
|
+
|
|
176
|
+
You: [reads codebase]
|
|
177
|
+
|
|
178
|
+
┌─────────────────────────────────────────────┐
|
|
179
|
+
│ CURRENT AUTH FLOW │
|
|
180
|
+
└─────────────────────────────────────────────┘
|
|
181
|
+
│
|
|
182
|
+
┌─────────────┼─────────────┐
|
|
183
|
+
▼ ▼ ▼
|
|
184
|
+
┌─────────┐ ┌─────────┐ ┌─────────┐
|
|
185
|
+
│ Google │ │ GitHub │ │ Email │
|
|
186
|
+
│ OAuth │ │ OAuth │ │ Magic │
|
|
187
|
+
└────┬────┘ └────┬────┘ └────┬────┘
|
|
188
|
+
│ │ │
|
|
189
|
+
└─────────────┼─────────────┘
|
|
190
|
+
▼
|
|
191
|
+
┌───────────┐
|
|
192
|
+
│ Session │
|
|
193
|
+
└─────┬─────┘
|
|
194
|
+
│
|
|
195
|
+
▼
|
|
196
|
+
┌───────────┐
|
|
197
|
+
│ Perms │
|
|
198
|
+
└───────────┘
|
|
199
|
+
|
|
200
|
+
I see three tangles. Which one's burning?
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
**User is stuck mid-implementation:**
|
|
204
|
+
```
|
|
205
|
+
User: /opsx-explore add-auth-system
|
|
206
|
+
The OAuth integration is more complex than expected
|
|
207
|
+
|
|
208
|
+
You: [reads change artifacts]
|
|
209
|
+
|
|
210
|
+
You're on task 4: "Implement OAuth flow"
|
|
211
|
+
|
|
212
|
+
Let me trace what's involved...
|
|
213
|
+
|
|
214
|
+
[draws diagram, explores options, suggests paths]
|
|
215
|
+
|
|
216
|
+
Want to update the design to reflect this?
|
|
217
|
+
Or add a spike task to investigate?
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**User wants to compare options:**
|
|
221
|
+
```
|
|
222
|
+
User: Should we use Postgres or SQLite?
|
|
223
|
+
|
|
224
|
+
You: Generic answer is boring. What's the context?
|
|
225
|
+
|
|
226
|
+
User: A CLI tool that tracks local dev environments
|
|
227
|
+
|
|
228
|
+
You: That changes everything.
|
|
229
|
+
|
|
230
|
+
┌─────────────────────────────────────────────────┐
|
|
231
|
+
│ CLI TOOL DATA STORAGE │
|
|
232
|
+
└─────────────────────────────────────────────────┘
|
|
233
|
+
|
|
234
|
+
Key constraints:
|
|
235
|
+
• No daemon running
|
|
236
|
+
• Must work offline
|
|
237
|
+
• Single user
|
|
238
|
+
|
|
239
|
+
SQLite Postgres
|
|
240
|
+
Deployment embedded ✓ needs server ✗
|
|
241
|
+
Offline yes ✓ no ✗
|
|
242
|
+
Single file yes ✓ no ✗
|
|
243
|
+
|
|
244
|
+
SQLite. Not even close.
|
|
245
|
+
|
|
246
|
+
Unless... is there a sync component?
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Ending Discovery
|
|
252
|
+
|
|
253
|
+
There's no required ending. Discovery might:
|
|
254
|
+
|
|
255
|
+
- **Flow into action**: "Ready to start? /opsx-new or /opsx-ff"
|
|
256
|
+
- **Result in artifact updates**: "Updated design.md with these decisions"
|
|
257
|
+
- **Just provide clarity**: User has what they need, moves on
|
|
258
|
+
- **Continue later**: "We can pick this up anytime"
|
|
259
|
+
|
|
260
|
+
When it feels like things are crystallizing, you might summarize:
|
|
261
|
+
|
|
262
|
+
```
|
|
263
|
+
## What We Figured Out
|
|
264
|
+
|
|
265
|
+
**The problem**: [crystallized understanding]
|
|
266
|
+
|
|
267
|
+
**The approach**: [if one emerged]
|
|
268
|
+
|
|
269
|
+
**Open questions**: [if any remain]
|
|
270
|
+
|
|
271
|
+
**Next steps** (if ready):
|
|
272
|
+
- Create a change: /opsx-new <name>
|
|
273
|
+
- Fast-forward to tasks: /opsx-ff <name>
|
|
274
|
+
- Keep exploring: just keep talking
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
But this summary is optional. Sometimes the thinking IS the value.
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## Guardrails
|
|
282
|
+
|
|
283
|
+
- **Don't implement** - Never write code or implement features. Creating OpenSpec artifacts is fine, writing application code is not.
|
|
284
|
+
- **Don't fake understanding** - If something is unclear, dig deeper
|
|
285
|
+
- **Don't rush** - Discovery is thinking time, not task time
|
|
286
|
+
- **Don't force structure** - Let patterns emerge naturally
|
|
287
|
+
- **Don't auto-capture** - Offer to save insights, don't just do it
|
|
288
|
+
- **Do visualize** - A good diagram is worth many paragraphs
|
|
289
|
+
- **Do explore the codebase** - Ground discussions in reality
|
|
290
|
+
- **Do question assumptions** - Including the user's and your own
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-ff-change
|
|
3
|
+
description: Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually.
|
|
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
|
+
Fast-forward through artifact creation - generate everything needed to start implementation in one go.
|
|
13
|
+
|
|
14
|
+
**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
|
|
15
|
+
|
|
16
|
+
**Steps**
|
|
17
|
+
|
|
18
|
+
1. **If no clear input provided, ask what they want to build**
|
|
19
|
+
|
|
20
|
+
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
|
|
21
|
+
> "What change do you want to work on? Describe what you want to build or fix."
|
|
22
|
+
|
|
23
|
+
From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
|
|
24
|
+
|
|
25
|
+
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
|
|
26
|
+
|
|
27
|
+
2. **Create the change directory**
|
|
28
|
+
```bash
|
|
29
|
+
openspec new change "<name>"
|
|
30
|
+
```
|
|
31
|
+
This creates a scaffolded change at `openspec/changes/<name>/`.
|
|
32
|
+
|
|
33
|
+
3. **Get the artifact build order**
|
|
34
|
+
```bash
|
|
35
|
+
openspec status --change "<name>" --json
|
|
36
|
+
```
|
|
37
|
+
Parse the JSON to get:
|
|
38
|
+
- `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
|
|
39
|
+
- `artifacts`: list of all artifacts with their status and dependencies
|
|
40
|
+
|
|
41
|
+
4. **Create artifacts in sequence until apply-ready**
|
|
42
|
+
|
|
43
|
+
Use the **TodoWrite tool** to track progress through the artifacts.
|
|
44
|
+
|
|
45
|
+
Loop through artifacts in dependency order (artifacts with no pending dependencies first):
|
|
46
|
+
|
|
47
|
+
a. **For each artifact that is `ready` (dependencies satisfied)**:
|
|
48
|
+
- Get instructions:
|
|
49
|
+
```bash
|
|
50
|
+
openspec instructions <artifact-id> --change "<name>" --json
|
|
51
|
+
```
|
|
52
|
+
- The instructions JSON includes:
|
|
53
|
+
- `context`: Project background (constraints for you - do NOT include in output)
|
|
54
|
+
- `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
|
|
55
|
+
- `template`: The structure to use for your output file
|
|
56
|
+
- `instruction`: Schema-specific guidance for this artifact type
|
|
57
|
+
- `outputPath`: Where to write the artifact
|
|
58
|
+
- `dependencies`: Completed artifacts to read for context
|
|
59
|
+
- Read any completed dependency files for context
|
|
60
|
+
- Create the artifact file using `template` as the structure
|
|
61
|
+
- Apply `context` and `rules` as constraints - but do NOT copy them into the file
|
|
62
|
+
- Show brief progress: "✓ Created <artifact-id>"
|
|
63
|
+
|
|
64
|
+
b. **Continue until all `applyRequires` artifacts are complete**
|
|
65
|
+
- After creating each artifact, re-run `openspec status --change "<name>" --json`
|
|
66
|
+
- Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
|
|
67
|
+
- Stop when all `applyRequires` artifacts are done
|
|
68
|
+
|
|
69
|
+
c. **If an artifact requires user input** (unclear context):
|
|
70
|
+
- Use **AskUserQuestion tool** to clarify
|
|
71
|
+
- Then continue with creation
|
|
72
|
+
|
|
73
|
+
5. **Show final status**
|
|
74
|
+
```bash
|
|
75
|
+
openspec status --change "<name>"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Output**
|
|
79
|
+
|
|
80
|
+
After completing all artifacts, summarize:
|
|
81
|
+
- Change name and location
|
|
82
|
+
- List of artifacts created with brief descriptions
|
|
83
|
+
- What's ready: "All artifacts created! Ready for implementation."
|
|
84
|
+
- Prompt: "Run `/opsx-apply` or ask me to implement to start working on the tasks."
|
|
85
|
+
|
|
86
|
+
**Artifact Creation Guidelines**
|
|
87
|
+
|
|
88
|
+
- Follow the `instruction` field from `openspec instructions` for each artifact type
|
|
89
|
+
- The schema defines what each artifact should contain - follow it
|
|
90
|
+
- Read dependency artifacts for context before creating new ones
|
|
91
|
+
- Use `template` as the structure for your output file - fill in its sections
|
|
92
|
+
- **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
|
|
93
|
+
- Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
|
|
94
|
+
- These guide what you write, but should never appear in the output
|
|
95
|
+
|
|
96
|
+
**Guardrails**
|
|
97
|
+
- Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
|
|
98
|
+
- Always read dependency artifacts before creating a new one
|
|
99
|
+
- If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
|
|
100
|
+
- If a change with that name already exists, suggest continuing that change instead
|
|
101
|
+
- Verify each artifact file exists after writing before proceeding to next
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-new-change
|
|
3
|
+
description: Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.
|
|
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
|
+
Start a new change using the experimental artifact-driven approach.
|
|
13
|
+
|
|
14
|
+
**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
|
|
15
|
+
|
|
16
|
+
**Steps**
|
|
17
|
+
|
|
18
|
+
1. **If no clear input provided, ask what they want to build**
|
|
19
|
+
|
|
20
|
+
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
|
|
21
|
+
> "What change do you want to work on? Describe what you want to build or fix."
|
|
22
|
+
|
|
23
|
+
From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
|
|
24
|
+
|
|
25
|
+
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
|
|
26
|
+
|
|
27
|
+
2. **Determine the workflow schema**
|
|
28
|
+
|
|
29
|
+
Use the default schema (omit `--schema`) unless the user explicitly requests a different workflow.
|
|
30
|
+
|
|
31
|
+
**Use a different schema only if the user mentions:**
|
|
32
|
+
- A specific schema name → use `--schema <name>`
|
|
33
|
+
- "show workflows" or "what workflows" → run `openspec schemas --json` and let them choose
|
|
34
|
+
|
|
35
|
+
**Otherwise**: Omit `--schema` to use the default.
|
|
36
|
+
|
|
37
|
+
3. **Create the change directory**
|
|
38
|
+
```bash
|
|
39
|
+
openspec new change "<name>"
|
|
40
|
+
```
|
|
41
|
+
Add `--schema <name>` only if the user requested a specific workflow.
|
|
42
|
+
This creates a scaffolded change at `openspec/changes/<name>/` with the selected schema.
|
|
43
|
+
|
|
44
|
+
4. **Show the artifact status**
|
|
45
|
+
```bash
|
|
46
|
+
openspec status --change "<name>"
|
|
47
|
+
```
|
|
48
|
+
This shows which artifacts need to be created and which are ready (dependencies satisfied).
|
|
49
|
+
|
|
50
|
+
5. **Get instructions for the first artifact**
|
|
51
|
+
The first artifact depends on the schema (e.g., `proposal` for spec-driven).
|
|
52
|
+
Check the status output to find the first artifact with status "ready".
|
|
53
|
+
```bash
|
|
54
|
+
openspec instructions <first-artifact-id> --change "<name>"
|
|
55
|
+
```
|
|
56
|
+
This outputs the template and context for creating the first artifact.
|
|
57
|
+
|
|
58
|
+
6. **STOP and wait for user direction**
|
|
59
|
+
|
|
60
|
+
**Output**
|
|
61
|
+
|
|
62
|
+
After completing the steps, summarize:
|
|
63
|
+
- Change name and location
|
|
64
|
+
- Schema/workflow being used and its artifact sequence
|
|
65
|
+
- Current status (0/N artifacts complete)
|
|
66
|
+
- The template for the first artifact
|
|
67
|
+
- Prompt: "Ready to create the first artifact? Just describe what this change is about and I'll draft it, or ask me to continue."
|
|
68
|
+
|
|
69
|
+
**Guardrails**
|
|
70
|
+
- Do NOT create any artifacts yet - just show the instructions
|
|
71
|
+
- Do NOT advance beyond showing the first artifact template
|
|
72
|
+
- If the name is invalid (not kebab-case), ask for a valid name
|
|
73
|
+
- If a change with that name already exists, suggest continuing that change instead
|
|
74
|
+
- Pass --schema if using a non-default workflow
|