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