opencode-goopspec 0.1.2 → 0.1.4
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/README.md +255 -331
- package/agents/goop-debugger.md +175 -172
- package/agents/goop-designer.md +232 -160
- package/agents/goop-executor.md +197 -127
- package/agents/goop-explorer.md +148 -150
- package/agents/goop-librarian.md +218 -164
- package/agents/goop-orchestrator.md +392 -280
- package/agents/goop-planner.md +331 -153
- package/agents/goop-researcher.md +198 -126
- package/agents/goop-tester.md +277 -202
- package/agents/goop-verifier.md +191 -201
- package/agents/goop-writer.md +241 -133
- package/agents/memory-distiller.md +228 -136
- package/commands/goop-accept.md +434 -160
- package/commands/goop-amend.md +35 -151
- package/commands/goop-complete.md +39 -183
- package/commands/goop-debug.md +33 -298
- package/commands/goop-discuss.md +381 -85
- package/commands/goop-execute.md +391 -108
- package/commands/goop-help.md +11 -0
- package/commands/goop-map-codebase.md +16 -3
- package/commands/goop-memory.md +11 -0
- package/commands/goop-milestone.md +29 -192
- package/commands/goop-pause.md +31 -40
- package/commands/goop-plan.md +458 -46
- package/commands/goop-quick.md +38 -142
- package/commands/goop-recall.md +11 -0
- package/commands/goop-remember.md +12 -0
- package/commands/goop-research.md +52 -73
- package/commands/goop-resume.md +28 -37
- package/commands/goop-setup.md +225 -124
- package/commands/goop-specify.md +321 -121
- package/commands/goop-status.md +256 -110
- package/dist/index.js +6289 -2820
- package/package.json +1 -1
- package/references/context-injection.md +307 -0
- package/references/discovery-interview.md +278 -0
- package/references/enforcement-system.md +213 -0
- package/references/handoff-protocol.md +290 -0
- package/references/interactive-questioning.md +122 -0
- package/references/model-profiles.md +1 -1
- package/references/phase-gates.md +360 -0
- package/references/plugin-architecture.md +212 -0
- package/references/response-format.md +41 -9
- package/references/subagent-protocol.md +83 -33
- package/references/ui-interaction-patterns.md +133 -0
- package/references/visual-style.md +199 -0
- package/references/workflow-accept.md +60 -273
- package/references/workflow-execute.md +63 -274
- package/references/workflow-plan.md +86 -133
- package/references/workflow-research.md +78 -186
- package/references/workflow-specify.md +64 -221
- package/references/xml-response-schema.md +236 -0
- package/templates/blueprint.md +88 -41
- package/templates/chronicle.md +130 -16
- package/templates/handoff.md +140 -0
- package/templates/project.md +114 -0
- package/templates/requirements.md +121 -0
- package/templates/spec.md +85 -20
- package/templates/state.md +103 -0
package/commands/goop-setup.md
CHANGED
|
@@ -1,208 +1,309 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: goop-setup
|
|
3
|
-
description:
|
|
3
|
+
description: GoopSpec setup wizard - first-time init, configuration, and verification
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# GoopSpec Setup Wizard
|
|
7
7
|
|
|
8
|
-
You are helping the user set up
|
|
8
|
+
You are helping the user set up or modify their GoopSpec configuration. This wizard handles first-time setup, modifications, and verification.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Available Actions
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
| Action | Purpose | When to Use |
|
|
13
|
+
|--------|---------|-------------|
|
|
14
|
+
| `init` | Full first-time initialization | New projects, creates all directories and files |
|
|
15
|
+
| `detect` | Show current environment | Understand what's already configured |
|
|
16
|
+
| `plan` | Preview changes | Before applying, see what will change |
|
|
17
|
+
| `apply` | Write configuration | Apply configuration changes |
|
|
18
|
+
| `verify` | Check setup health | Ensure everything is working |
|
|
19
|
+
| `reset` | Reset to defaults | Start over or fix broken config |
|
|
20
|
+
| `models` | Show model suggestions | Help choosing agent models |
|
|
21
|
+
| `status` | Show current config | Quick overview of current state |
|
|
22
|
+
|
|
23
|
+
## Tools Used
|
|
24
|
+
|
|
25
|
+
| Tool | Purpose in This Command |
|
|
26
|
+
|------|------------------------|
|
|
27
|
+
| `goop_setup` | Primary tool - all setup actions |
|
|
28
|
+
|
|
29
|
+
**Hook Support:** None specific - configuration tool.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## First-Time Setup Flow
|
|
34
|
+
|
|
35
|
+
For users who haven't set up GoopSpec yet, use the `init` action.
|
|
36
|
+
|
|
37
|
+
### Step 1: Detect Current State
|
|
13
38
|
|
|
14
39
|
```
|
|
15
40
|
goop_setup(action: "detect")
|
|
16
41
|
```
|
|
17
42
|
|
|
18
|
-
Review
|
|
43
|
+
Review what's already configured. If nothing exists, proceed to full init.
|
|
44
|
+
|
|
45
|
+
### Step 2: Ask for Project Name
|
|
46
|
+
|
|
47
|
+
Ask the user: "What's your project name?"
|
|
19
48
|
|
|
20
|
-
|
|
49
|
+
This will be stored in the configuration for context.
|
|
50
|
+
|
|
51
|
+
### Step 3: Configuration Scope
|
|
21
52
|
|
|
22
53
|
Ask: "Where should GoopSpec be configured?"
|
|
23
54
|
|
|
24
|
-
Use the question tool
|
|
55
|
+
Use the question tool:
|
|
25
56
|
- **both** (Recommended) - Both global and project-specific settings
|
|
26
|
-
- **global** - Only system-wide settings
|
|
27
|
-
- **project** - Only this project
|
|
57
|
+
- **global** - Only system-wide settings
|
|
58
|
+
- **project** - Only this project
|
|
28
59
|
|
|
29
|
-
|
|
60
|
+
### Step 4: MCP Preset
|
|
30
61
|
|
|
31
62
|
Ask: "Which MCPs should be installed?"
|
|
32
63
|
|
|
33
|
-
|
|
34
|
-
- **
|
|
35
|
-
- **core** - Context7 + Exa only (minimal setup)
|
|
64
|
+
- **recommended** - Context7 + Exa + Playwright (full workflow support)
|
|
65
|
+
- **core** - Context7 + Exa only (minimal)
|
|
36
66
|
- **none** - Skip MCP installation
|
|
37
67
|
|
|
38
|
-
|
|
68
|
+
### Step 5: Memory System
|
|
39
69
|
|
|
40
|
-
Ask: "
|
|
70
|
+
Ask: "Would you like to enable the memory system?"
|
|
41
71
|
|
|
42
|
-
|
|
43
|
-
- **yes** - GoopSpec orchestrator will be the default for new sessions
|
|
44
|
-
- **no** - Keep current default agent
|
|
72
|
+
The memory system allows GoopSpec to remember decisions, patterns, and context across sessions.
|
|
45
73
|
|
|
46
|
-
|
|
74
|
+
If yes, ask about embedding provider:
|
|
75
|
+
- **local** (Recommended) - Uses local embeddings, no API needed
|
|
76
|
+
- **openai** - Uses OpenAI embeddings (requires API key)
|
|
77
|
+
- **ollama** - Uses local Ollama server
|
|
47
78
|
|
|
48
|
-
|
|
79
|
+
### Step 6: Model Configuration
|
|
49
80
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- **
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
Ask: "Would you like to configure models for each agent?"
|
|
82
|
+
|
|
83
|
+
- **Quick setup** - Use recommended defaults
|
|
84
|
+
- **Custom setup** - Choose models individually
|
|
85
|
+
|
|
86
|
+
For custom setup, walk through each agent or accept shortcuts like "use Claude Sonnet for everything".
|
|
87
|
+
|
|
88
|
+
### Step 7: Apply Init
|
|
89
|
+
|
|
90
|
+
Execute the initialization:
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
goop_setup(
|
|
94
|
+
action: "init",
|
|
95
|
+
scope: "<scope>",
|
|
96
|
+
projectName: "<name>",
|
|
97
|
+
mcpPreset: "<preset>",
|
|
98
|
+
memoryEnabled: true,
|
|
99
|
+
memoryProvider: "local",
|
|
100
|
+
agentModels: { ... }
|
|
101
|
+
)
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Step 8: Verify Setup
|
|
105
|
+
|
|
106
|
+
After init completes, verify everything is working:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
goop_setup(action: "verify")
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Report any issues and suggest fixes.
|
|
113
|
+
|
|
114
|
+
## Modifying Existing Setup
|
|
115
|
+
|
|
116
|
+
For users who already have GoopSpec configured:
|
|
117
|
+
|
|
118
|
+
### Check Current Status
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
goop_setup(action: "status")
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Shows what's currently configured.
|
|
125
|
+
|
|
126
|
+
### Update Configuration
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
goop_setup(
|
|
130
|
+
action: "apply",
|
|
131
|
+
scope: "project",
|
|
132
|
+
// Only include what you want to change
|
|
133
|
+
memoryEnabled: true,
|
|
134
|
+
agentModels: {
|
|
135
|
+
"goop-executor": "anthropic/claude-sonnet-4-5"
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Reset Configuration
|
|
141
|
+
|
|
142
|
+
If something is broken:
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
goop_setup(
|
|
146
|
+
action: "reset",
|
|
147
|
+
scope: "project",
|
|
148
|
+
preserveData: true, // Keep memories, history, checkpoints
|
|
149
|
+
confirmed: true
|
|
150
|
+
)
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Agent Model Options
|
|
154
|
+
|
|
155
|
+
### goop-debugger
|
|
156
|
+
*Systematic debugging with hypothesis testing*
|
|
74
157
|
1. openai/gpt-5.2-codex
|
|
75
158
|
2. anthropic/claude-opus-4-5
|
|
76
|
-
3.
|
|
77
|
-
- Custom model...
|
|
159
|
+
3. kimi-for-coding/k2p5
|
|
78
160
|
|
|
79
|
-
|
|
161
|
+
### goop-designer
|
|
162
|
+
*Visual design planning and UI/UX reasoning*
|
|
80
163
|
1. anthropic/claude-opus-4-5
|
|
81
|
-
2.
|
|
164
|
+
2. kimi-for-coding/k2p5
|
|
82
165
|
3. google/antigravity-gemini-3-pro-high
|
|
83
|
-
- Custom model...
|
|
84
166
|
|
|
85
|
-
|
|
167
|
+
### goop-executor
|
|
168
|
+
*Task execution with checkpoints and verification*
|
|
86
169
|
1. openai/gpt-5.2-codex
|
|
87
170
|
2. anthropic/claude-opus-4-5
|
|
88
171
|
3. anthropic/claude-sonnet-4-5
|
|
89
|
-
4.
|
|
172
|
+
4. kimi-for-coding/k2p5
|
|
90
173
|
5. google/antigravity-gemini-3-pro-high
|
|
91
174
|
6. opencode/glm-4.7-free
|
|
92
|
-
- Custom model...
|
|
93
175
|
|
|
94
|
-
|
|
176
|
+
### goop-explorer
|
|
177
|
+
*Fast codebase exploration and pattern extraction*
|
|
95
178
|
1. google/antigravity-gemini-3-flash
|
|
96
179
|
2. anthropic/claude-haiku-4-5
|
|
97
180
|
3. opencode/minimax-m2.1-free
|
|
98
|
-
- Custom model...
|
|
99
181
|
|
|
100
|
-
|
|
182
|
+
### goop-librarian
|
|
183
|
+
*Codebase search and documentation retrieval*
|
|
101
184
|
1. openai/gpt-5.2
|
|
102
185
|
2. google/antigravity-gemini-3-flash
|
|
103
186
|
3. anthropic/claude-sonnet-4-5
|
|
104
|
-
- Custom model...
|
|
105
187
|
|
|
106
|
-
|
|
188
|
+
### goop-orchestrator
|
|
189
|
+
*Primary orchestrator - spec clarity and wave execution*
|
|
107
190
|
1. anthropic/claude-opus-4-5
|
|
108
191
|
2. openai/gpt-5.2-codex
|
|
109
|
-
3.
|
|
192
|
+
3. kimi-for-coding/k2p5
|
|
110
193
|
4. anthropic/claude-sonnet-4-5
|
|
111
|
-
- Custom model...
|
|
112
194
|
|
|
113
|
-
|
|
195
|
+
### goop-planner
|
|
196
|
+
*Detailed execution plans with architectural precision*
|
|
114
197
|
1. anthropic/claude-opus-4-5
|
|
115
198
|
2. openai/gpt-5.2-codex
|
|
116
|
-
3.
|
|
199
|
+
3. kimi-for-coding/k2p5
|
|
117
200
|
4. anthropic/claude-sonnet-4-5
|
|
118
|
-
- Custom model...
|
|
119
201
|
|
|
120
|
-
|
|
202
|
+
### goop-researcher
|
|
203
|
+
*Comprehensive ecosystem research*
|
|
121
204
|
1. openai/gpt-5.2
|
|
122
205
|
2. anthropic/claude-sonnet-4-5
|
|
123
|
-
3.
|
|
206
|
+
3. kimi-for-coding/k2p5
|
|
124
207
|
4. opencode/glm-4.7-free
|
|
125
|
-
- Custom model...
|
|
126
208
|
|
|
127
|
-
|
|
128
|
-
|
|
209
|
+
### goop-tester
|
|
210
|
+
*Web frontend testing with Playwright*
|
|
211
|
+
1. kimi-for-coding/k2p5
|
|
129
212
|
2. anthropic/claude-sonnet-4-5
|
|
130
213
|
3. google/antigravity-gemini-3-flash
|
|
131
|
-
- Custom model...
|
|
132
214
|
|
|
133
|
-
|
|
215
|
+
### goop-verifier
|
|
216
|
+
*Post-execution verification with security focus*
|
|
134
217
|
1. openai/gpt-5.2-codex
|
|
135
218
|
2. anthropic/claude-opus-4-5
|
|
136
|
-
- Custom model...
|
|
137
219
|
|
|
138
|
-
|
|
220
|
+
### goop-writer
|
|
221
|
+
*Comprehensive documentation generation*
|
|
139
222
|
1. google/antigravity-gemini-3-pro-high
|
|
140
|
-
2.
|
|
223
|
+
2. kimi-for-coding/k2p5
|
|
141
224
|
3. anthropic/claude-sonnet-4-5
|
|
142
|
-
- Custom model...
|
|
143
225
|
|
|
144
|
-
##
|
|
226
|
+
## Memory System Configuration
|
|
145
227
|
|
|
146
|
-
|
|
228
|
+
The memory system allows GoopSpec to:
|
|
229
|
+
- Remember decisions and their reasoning
|
|
230
|
+
- Recall patterns from past work
|
|
231
|
+
- Build context across sessions
|
|
147
232
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
233
|
+
### Configuration Options
|
|
234
|
+
|
|
235
|
+
| Option | Type | Default | Description |
|
|
236
|
+
|--------|------|---------|-------------|
|
|
237
|
+
| `memoryEnabled` | boolean | true | Enable/disable memory |
|
|
238
|
+
| `memoryProvider` | string | "local" | Embedding provider |
|
|
239
|
+
| `memoryWorkerPort` | number | 37777 | Worker process port |
|
|
240
|
+
|
|
241
|
+
### Embedding Providers
|
|
242
|
+
|
|
243
|
+
- **local** - Uses `Xenova/all-MiniLM-L6-v2`, runs locally, free
|
|
244
|
+
- **openai** - Uses OpenAI's embedding API, requires API key
|
|
245
|
+
- **ollama** - Uses local Ollama server
|
|
246
|
+
|
|
247
|
+
## Troubleshooting
|
|
162
248
|
|
|
163
|
-
|
|
164
|
-
- Configuration scope
|
|
165
|
-
- MCPs to install
|
|
166
|
-
- Agent model assignments (in a table format)
|
|
249
|
+
### "Memory worker not responding"
|
|
167
250
|
|
|
168
|
-
|
|
251
|
+
1. Check if port 37777 is in use: `lsof -i :37777`
|
|
252
|
+
2. Try a different port: `memoryWorkerPort: 37778`
|
|
253
|
+
3. Check memory directory exists: `.goopspec/memory/`
|
|
169
254
|
|
|
170
|
-
|
|
255
|
+
### "Configuration not loading"
|
|
171
256
|
|
|
172
|
-
|
|
257
|
+
1. Run `goop_setup(action: "verify")` to diagnose
|
|
258
|
+
2. Check for JSON syntax errors in config files
|
|
259
|
+
3. Try `goop_setup(action: "reset", scope: "project", confirmed: true)`
|
|
173
260
|
|
|
174
|
-
|
|
261
|
+
### "MCPs not installing"
|
|
175
262
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
- Show any warnings or notes
|
|
263
|
+
MCPs require OpenCode configuration. Check:
|
|
264
|
+
1. OpenCode is installed and configured
|
|
265
|
+
2. You have write permissions to ~/.config/opencode/
|
|
180
266
|
|
|
181
|
-
|
|
182
|
-
- Run `/goop-status` to verify configuration
|
|
183
|
-
- Start a new conversation to use GoopSpec
|
|
184
|
-
- Try `/goop-discuss` to start your first spec-driven project
|
|
267
|
+
## Tips
|
|
185
268
|
|
|
186
|
-
|
|
269
|
+
1. **Start with detect** - Always check what's already configured
|
|
270
|
+
2. **Use verify after changes** - Ensures everything works
|
|
271
|
+
3. **Preserve data on reset** - Don't lose memories unless needed
|
|
272
|
+
4. **Quick setup is fine** - Model defaults work well for most users
|
|
273
|
+
5. **Local memory is best** - No API costs, runs offline
|
|
187
274
|
|
|
188
|
-
|
|
189
|
-
2. **Group similar agents** - You can ask about related agents together (e.g., "orchestrator + planner" or "explorer + librarian")
|
|
190
|
-
3. **Explain costs** - Opus models are more capable but expensive; free models (opencode/*) are great for budget-conscious users
|
|
191
|
-
4. **Allow skipping** - If a user says "use defaults for the rest", accept that
|
|
192
|
-
5. **Support bulk selection** - If a user says "use Claude Sonnet for everything", honor that
|
|
275
|
+
## Complete Example
|
|
193
276
|
|
|
194
|
-
|
|
277
|
+
First-time setup:
|
|
195
278
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
279
|
+
```
|
|
280
|
+
// 1. Check current state
|
|
281
|
+
goop_setup(action: "detect")
|
|
282
|
+
|
|
283
|
+
// 2. Initialize everything
|
|
284
|
+
goop_setup(
|
|
285
|
+
action: "init",
|
|
286
|
+
scope: "both",
|
|
287
|
+
projectName: "my-project",
|
|
288
|
+
mcpPreset: "recommended",
|
|
289
|
+
memoryEnabled: true,
|
|
290
|
+
memoryProvider: "local",
|
|
291
|
+
enableOrchestrator: true
|
|
292
|
+
)
|
|
207
293
|
|
|
208
|
-
|
|
294
|
+
// 3. Verify
|
|
295
|
+
goop_setup(action: "verify")
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
Modify existing:
|
|
299
|
+
|
|
300
|
+
```
|
|
301
|
+
// Update just the executor model
|
|
302
|
+
goop_setup(
|
|
303
|
+
action: "apply",
|
|
304
|
+
scope: "project",
|
|
305
|
+
agentModels: {
|
|
306
|
+
"goop-executor": "anthropic/claude-opus-4-5"
|
|
307
|
+
}
|
|
308
|
+
)
|
|
309
|
+
```
|