opencode-goopspec 0.1.4 โ 0.1.6
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 +7 -8
- package/agents/goop-debugger.md +2 -2
- package/agents/goop-designer.md +2 -2
- package/agents/goop-executor.md +17 -7
- package/agents/goop-explorer.md +2 -2
- package/agents/goop-librarian.md +1 -1
- package/agents/goop-orchestrator.md +47 -5
- package/agents/goop-planner.md +3 -3
- package/agents/goop-researcher.md +2 -2
- package/agents/goop-tester.md +1 -1
- package/agents/goop-verifier.md +2 -2
- package/agents/goop-writer.md +1 -1
- package/agents/memory-distiller.md +2 -2
- package/commands/goop-accept.md +27 -401
- package/commands/goop-discuss.md +29 -393
- package/commands/goop-execute.md +22 -356
- package/commands/goop-map-codebase.md +44 -478
- package/commands/goop-plan.md +23 -433
- package/commands/goop-quick.md +58 -31
- package/commands/goop-setup.md +35 -278
- package/commands/goop-specify.md +26 -291
- package/commands/goop-status.md +26 -261
- package/dist/index.js +34981 -239
- package/dist/worker/index.js +35883 -0
- package/package.json +5 -2
- package/references/accept-process.md +402 -0
- package/references/context-injection.md +1 -1
- package/references/discovery-interview.md +1 -1
- package/references/discuss-process.md +383 -0
- package/references/dispatch-patterns.md +46 -21
- package/references/enforcement-system.md +1 -1
- package/references/execute-process.md +358 -0
- package/references/git-workflow.md +349 -0
- package/references/handoff-protocol.md +1 -1
- package/references/map-codebase-process.md +353 -0
- package/references/model-profiles.md +16 -16
- package/references/orchestrator-philosophy.md +155 -223
- package/references/phase-gates.md +1 -1
- package/references/plan-process.md +397 -0
- package/references/plugin-architecture.md +1 -1
- package/references/quick-process.md +343 -0
- package/references/response-format.md +2 -2
- package/references/specify-process.md +251 -0
- package/references/status-process.md +253 -0
- package/references/subagent-protocol.md +2 -2
- package/references/team-coordination.md +183 -0
- package/references/xml-response-schema.md +5 -5
- package/skills/accessibility/skill.md +1 -1
- package/skills/accessibility-testing/skill.md +1 -1
- package/skills/api-docs/skill.md +1 -1
- package/skills/architecture-design/skill.md +1 -1
- package/skills/atomic-commits/skill.md +92 -15
- package/skills/code-review/skill.md +1 -1
- package/skills/codebase-mapping/skill.md +1 -1
- package/skills/convention-detection/skill.md +1 -1
- package/skills/debugging/skill.md +1 -1
- package/skills/deviation-handling/skill.md +1 -1
- package/skills/documentation/skill.md +1 -1
- package/skills/goop-core/skill.md +48 -11
- package/skills/memory-usage/skill.md +1 -1
- package/skills/parallel-planning/skill.md +1 -1
- package/skills/pattern-extraction/skill.md +1 -1
- package/skills/performance-optimization/skill.md +1 -1
- package/skills/playwright/skill.md +1 -1
- package/skills/playwright-testing/skill.md +1 -1
- package/skills/progress-tracking/skill.md +1 -1
- package/skills/readme-generation/skill.md +1 -1
- package/skills/research/skill.md +1 -1
- package/skills/responsive-design/skill.md +1 -1
- package/skills/scientific-method/skill.md +1 -1
- package/skills/security-audit/skill.md +1 -1
- package/skills/task-decomposition/skill.md +1 -1
- package/skills/task-delegation/skill.md +60 -34
- package/skills/technical-writing/skill.md +1 -1
- package/skills/testing/skill.md +1 -1
- package/skills/ui-design/skill.md +1 -1
- package/skills/ux-patterns/skill.md +1 -1
- package/skills/verification/skill.md +1 -1
- package/skills/visual-regression/skill.md +1 -1
- package/templates/blueprint.md +1 -1
- package/templates/chronicle.md +1 -1
- package/templates/handoff.md +1 -1
- package/templates/milestone.md +1 -1
- package/templates/project-knowledge-base.md +93 -0
- package/templates/project.md +1 -1
- package/templates/requirements.md +1 -1
- package/templates/research.md +1 -1
- package/templates/retrospective.md +1 -1
- package/templates/spec.md +1 -1
- package/templates/state.md +1 -1
- package/templates/summary.md +1 -1
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
# Planning Process
|
|
2
|
+
|
|
3
|
+
Detailed process for `/goop-plan` - creating SPEC.md and BLUEPRINT.md from discovery.
|
|
4
|
+
|
|
5
|
+
## Phase 1: Gate Check
|
|
6
|
+
|
|
7
|
+
**Execute BEFORE anything else:**
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
goop_status()
|
|
11
|
+
goop_state({ action: "get" }) # NEVER read state.json directly
|
|
12
|
+
Read(".goopspec/REQUIREMENTS.md")
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### 1.1 Check interviewComplete
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
IF state.interviewComplete != true:
|
|
19
|
+
REFUSE with:
|
|
20
|
+
|
|
21
|
+
## ๐ฎ GoopSpec ยท Gate Blocked
|
|
22
|
+
|
|
23
|
+
โ Discovery interview required before planning.
|
|
24
|
+
|
|
25
|
+
โ Run: `/goop-discuss`
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
EXIT command.
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 1.2 Check REQUIREMENTS.md exists
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
IF .goopspec/REQUIREMENTS.md does not exist:
|
|
36
|
+
REFUSE with:
|
|
37
|
+
|
|
38
|
+
## ๐ฎ GoopSpec ยท Gate Blocked
|
|
39
|
+
|
|
40
|
+
โ No discovery output found.
|
|
41
|
+
|
|
42
|
+
โ Run: `/goop-discuss`
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
EXIT command.
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 1.3 Gate passed
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
## ๐ฎ GoopSpec ยท Planning
|
|
53
|
+
|
|
54
|
+
โ Discovery gate passed
|
|
55
|
+
|
|
56
|
+
โณ Creating specification and blueprint...
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Phase 2: Load Context
|
|
64
|
+
|
|
65
|
+
**Note:** Existing document archiving is handled in `/goop-discuss` Phase 1.2.
|
|
66
|
+
By this point, any prior milestone has already been archived or the user chose to continue it.
|
|
67
|
+
|
|
68
|
+
### 2.1 Load discovery interview
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
Read(".goopspec/REQUIREMENTS.md")
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Extract:
|
|
75
|
+
- Vision
|
|
76
|
+
- Must-haves (with acceptance criteria)
|
|
77
|
+
- Constraints
|
|
78
|
+
- Out of scope
|
|
79
|
+
- Assumptions
|
|
80
|
+
- Risks
|
|
81
|
+
|
|
82
|
+
### 2.2 Search memory
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
memory_search({ query: "[feature] architecture decisions patterns", limit: 5 })
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 2.3 Create or load project knowledge
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
Read(".goopspec/PROJECT_KNOWLEDGE_BASE.md")
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**If PROJECT_KNOWLEDGE_BASE.md does not exist, CREATE IT:**
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
# Project Knowledge Base
|
|
98
|
+
|
|
99
|
+
**Last Updated:** [timestamp]
|
|
100
|
+
**Updated By:** orchestrator (auto-generated from discovery)
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Project Identity
|
|
105
|
+
|
|
106
|
+
**Name:** [From REQUIREMENTS.md vision]
|
|
107
|
+
**Type:** [Inferred from constraints]
|
|
108
|
+
**Stage:** Active
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Stack (Non-Negotiable)
|
|
113
|
+
|
|
114
|
+
[Extract from REQUIREMENTS.md Constraints section]
|
|
115
|
+
|
|
116
|
+
### Runtime & Language
|
|
117
|
+
- **Runtime:** [e.g., Node.js / Bun / Browser]
|
|
118
|
+
- **Language:** [e.g., TypeScript]
|
|
119
|
+
|
|
120
|
+
### Frameworks & Libraries
|
|
121
|
+
- **Framework:** [From constraints]
|
|
122
|
+
- **Testing:** [From constraints or infer from package.json]
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Conventions
|
|
127
|
+
|
|
128
|
+
[Extract from REQUIREMENTS.md or infer from codebase]
|
|
129
|
+
|
|
130
|
+
### File Naming
|
|
131
|
+
- **Files:** [kebab-case / camelCase]
|
|
132
|
+
- **Tests:** [*.test.ts / *.spec.ts]
|
|
133
|
+
|
|
134
|
+
### Code Style
|
|
135
|
+
- **Exports:** [Named / Default]
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Architecture Decisions
|
|
140
|
+
|
|
141
|
+
*To be populated during planning and execution.*
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Known Gotchas
|
|
146
|
+
|
|
147
|
+
*To be populated as issues are discovered.*
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
*Auto-generated from discovery interview. Update as project evolves.*
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Write to `.goopspec/PROJECT_KNOWLEDGE_BASE.md` before proceeding.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Phase 3: Spawn Planner
|
|
159
|
+
|
|
160
|
+
**Display banner:**
|
|
161
|
+
```
|
|
162
|
+
## ๐ฎ GoopSpec ยท Creating Documents
|
|
163
|
+
|
|
164
|
+
โณ Spawning planner to create SPEC.md and BLUEPRINT.md...
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Spawn goop-planner with full context:**
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
task({
|
|
173
|
+
subagent_type: "goop-planner",
|
|
174
|
+
description: "Create SPEC and BLUEPRINT",
|
|
175
|
+
prompt: `
|
|
176
|
+
## TASK
|
|
177
|
+
Create specification and blueprint from discovery interview.
|
|
178
|
+
|
|
179
|
+
## PROJECT CONTEXT
|
|
180
|
+
[From PROJECT_KNOWLEDGE_BASE.md if exists]
|
|
181
|
+
- Stack: [technologies]
|
|
182
|
+
- Conventions: [naming, patterns]
|
|
183
|
+
|
|
184
|
+
## DISCOVERY INTERVIEW OUTPUT
|
|
185
|
+
[Full content of REQUIREMENTS.md]
|
|
186
|
+
|
|
187
|
+
## INSTRUCTIONS
|
|
188
|
+
|
|
189
|
+
1. **Verify discovery completeness:**
|
|
190
|
+
- Vision defined?
|
|
191
|
+
- Must-haves listed with acceptance criteria?
|
|
192
|
+
- Out of scope defined?
|
|
193
|
+
- Risks identified?
|
|
194
|
+
|
|
195
|
+
If missing critical info, return BLOCKED.
|
|
196
|
+
|
|
197
|
+
2. **Create .goopspec/SPEC.md:**
|
|
198
|
+
- Transform must-haves into formal requirements (MH1, MH2, etc.)
|
|
199
|
+
- Include acceptance criteria for each
|
|
200
|
+
- Add traceability section (will be filled after blueprint)
|
|
201
|
+
- Mark status as "Draft"
|
|
202
|
+
|
|
203
|
+
3. **Create .goopspec/BLUEPRINT.md:**
|
|
204
|
+
- Design wave architecture
|
|
205
|
+
- Create tasks that cover ALL must-haves
|
|
206
|
+
- Add spec coverage to each task
|
|
207
|
+
- Build traceability matrix
|
|
208
|
+
|
|
209
|
+
4. **Update .goopspec/SPEC.md:**
|
|
210
|
+
- Fill traceability matrix (must-have โ tasks)
|
|
211
|
+
- Verify 100% coverage
|
|
212
|
+
|
|
213
|
+
5. **Initialize .goopspec/CHRONICLE.md:**
|
|
214
|
+
- Phase: plan โ ready for specify
|
|
215
|
+
- Documents created with timestamps
|
|
216
|
+
|
|
217
|
+
6. **Save to memory:**
|
|
218
|
+
- Key architectural decisions
|
|
219
|
+
- Technology choices with rationale
|
|
220
|
+
|
|
221
|
+
7. **Return XML response envelope** with:
|
|
222
|
+
- BLUEPRINT COMPLETE status
|
|
223
|
+
- Wave summary
|
|
224
|
+
- Traceability summary
|
|
225
|
+
- Handoff instructions
|
|
226
|
+
|
|
227
|
+
## VERIFICATION
|
|
228
|
+
Before returning COMPLETE:
|
|
229
|
+
- [ ] Every must-have has mapped tasks
|
|
230
|
+
- [ ] Every task has spec coverage
|
|
231
|
+
- [ ] Traceability matrix shows 100%
|
|
232
|
+
- [ ] SPEC.md has all sections filled
|
|
233
|
+
- [ ] BLUEPRINT.md has verification commands
|
|
234
|
+
`
|
|
235
|
+
})
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Phase 4: Handle Response
|
|
241
|
+
|
|
242
|
+
**Parse XML response from planner.**
|
|
243
|
+
|
|
244
|
+
**On `COMPLETE` status:**
|
|
245
|
+
|
|
246
|
+
Read created documents:
|
|
247
|
+
```
|
|
248
|
+
Read(".goopspec/SPEC.md")
|
|
249
|
+
Read(".goopspec/BLUEPRINT.md")
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Display completion:
|
|
253
|
+
```
|
|
254
|
+
## ๐ฎ GoopSpec ยท Planning Complete
|
|
255
|
+
|
|
256
|
+
โจ Blueprint created successfully
|
|
257
|
+
|
|
258
|
+
**Feature:** [Name from SPEC.md]
|
|
259
|
+
|
|
260
|
+
| Document | Status | Location |
|
|
261
|
+
|----------|--------|----------|
|
|
262
|
+
| Spec | โ Created | .goopspec/SPEC.md |
|
|
263
|
+
| Blueprint | โ Created | .goopspec/BLUEPRINT.md |
|
|
264
|
+
| Chronicle | โ Created | .goopspec/CHRONICLE.md |
|
|
265
|
+
|
|
266
|
+
**[N] must-haves** | **[M] waves** | **[P] tasks**
|
|
267
|
+
|
|
268
|
+
### Traceability
|
|
269
|
+
| Must-Have | Covered By |
|
|
270
|
+
|-----------|------------|
|
|
271
|
+
| MH1 | Wave X, Tasks Y |
|
|
272
|
+
| MH2 | Wave X, Tasks Y |
|
|
273
|
+
|
|
274
|
+
โ Coverage: 100%
|
|
275
|
+
|
|
276
|
+
### Next Step
|
|
277
|
+
|
|
278
|
+
**Lock the specification** โ Confirm requirements before execution
|
|
279
|
+
|
|
280
|
+
โ `/goop-specify`
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
Start a **new session** for fresh context, then run the command.
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Generate HANDOFF.md:**
|
|
288
|
+
|
|
289
|
+
```markdown
|
|
290
|
+
# Session Handoff
|
|
291
|
+
|
|
292
|
+
**Generated:** [timestamp]
|
|
293
|
+
**Phase:** plan
|
|
294
|
+
|
|
295
|
+
## Accomplished
|
|
296
|
+
- [x] Discovery interview completed
|
|
297
|
+
- [x] SPEC.md created with [N] must-haves
|
|
298
|
+
- [x] BLUEPRINT.md created with [M] waves, [P] tasks
|
|
299
|
+
- [x] 100% traceability achieved
|
|
300
|
+
|
|
301
|
+
## Current State
|
|
302
|
+
- Phase: plan
|
|
303
|
+
- Interview: complete
|
|
304
|
+
- Spec: draft (not locked)
|
|
305
|
+
|
|
306
|
+
## Next Session
|
|
307
|
+
Run: /goop-specify
|
|
308
|
+
|
|
309
|
+
## Files to Read
|
|
310
|
+
1. .goopspec/SPEC.md โ Requirements
|
|
311
|
+
2. .goopspec/BLUEPRINT.md โ Execution plan
|
|
312
|
+
|
|
313
|
+
## Context Summary
|
|
314
|
+
Planning complete for [feature]. [N] must-haves mapped to [P] tasks
|
|
315
|
+
across [M] waves. Ready to lock specification.
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
**On `BLOCKED` status:**
|
|
319
|
+
|
|
320
|
+
```
|
|
321
|
+
## ๐ฎ GoopSpec ยท Planning Blocked
|
|
322
|
+
|
|
323
|
+
โ Cannot proceed
|
|
324
|
+
|
|
325
|
+
**Blocker:** [From planner response]
|
|
326
|
+
|
|
327
|
+
**Options:**
|
|
328
|
+
1. Provide more context โ `/goop-discuss`
|
|
329
|
+
2. Research the unknown โ `/goop-research [topic]`
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
Use `question` tool to get user choice.
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## Phase 5: Memory Persistence
|
|
339
|
+
|
|
340
|
+
After successful planning:
|
|
341
|
+
|
|
342
|
+
```
|
|
343
|
+
memory_save({
|
|
344
|
+
type: "note",
|
|
345
|
+
title: "Plan: [Feature Name]",
|
|
346
|
+
content: "Created [N]-wave blueprint. Key decisions: [list]. Must-haves: [summary].",
|
|
347
|
+
concepts: ["planning", "blueprint", "[domain]"],
|
|
348
|
+
importance: 0.7
|
|
349
|
+
})
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
## Examples
|
|
355
|
+
|
|
356
|
+
### Gate Passed
|
|
357
|
+
```
|
|
358
|
+
User: /goop-plan
|
|
359
|
+
|
|
360
|
+
Orchestrator:
|
|
361
|
+
## ๐ฎ GoopSpec ยท Planning
|
|
362
|
+
|
|
363
|
+
โ Discovery gate passed
|
|
364
|
+
|
|
365
|
+
[Spawns goop-planner]
|
|
366
|
+
|
|
367
|
+
...
|
|
368
|
+
|
|
369
|
+
## ๐ฎ GoopSpec ยท Planning Complete
|
|
370
|
+
|
|
371
|
+
**Feature:** Dark Mode Toggle
|
|
372
|
+
|
|
373
|
+
| Document | Status |
|
|
374
|
+
|------------|---------|
|
|
375
|
+
| Spec | Created |
|
|
376
|
+
| Blueprint | Created |
|
|
377
|
+
|
|
378
|
+
**3 must-haves** | **2 waves** | **5 tasks**
|
|
379
|
+
|
|
380
|
+
โ Next: `/goop-specify`
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Gate Blocked
|
|
384
|
+
```
|
|
385
|
+
User: /goop-plan
|
|
386
|
+
|
|
387
|
+
Orchestrator:
|
|
388
|
+
## ๐ฎ GoopSpec ยท Gate Blocked
|
|
389
|
+
|
|
390
|
+
โ Discovery interview required before planning.
|
|
391
|
+
|
|
392
|
+
โ Run: `/goop-discuss`
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
*Planning Process v0.1.6*
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
# Quick Mode Process
|
|
2
|
+
|
|
3
|
+
Detailed process for `/goop-quick` - fast-track execution for small, well-defined tasks.
|
|
4
|
+
|
|
5
|
+
## Phase 1: Qualify
|
|
6
|
+
|
|
7
|
+
**Execute BEFORE any implementation:**
|
|
8
|
+
|
|
9
|
+
### 1.1 Check current state
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
goop_status()
|
|
13
|
+
goop_state({ action: "get" }) # NEVER read state.json directly
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### 1.2 Validate quick criteria
|
|
17
|
+
|
|
18
|
+
The task MUST pass ALL five criteria:
|
|
19
|
+
|
|
20
|
+
| Criterion | Check | Pass? |
|
|
21
|
+
|-----------|-------|-------|
|
|
22
|
+
| **Scope** | Single file OR max 3 tightly coupled files | [ ] |
|
|
23
|
+
| **Clarity** | Intent is clear and unambiguous | [ ] |
|
|
24
|
+
| **Complexity** | No architectural decisions required | [ ] |
|
|
25
|
+
| **Effort** | Estimated < 15 minutes of work | [ ] |
|
|
26
|
+
| **Dependencies** | No new packages/dependencies needed | [ ] |
|
|
27
|
+
|
|
28
|
+
**If ANY criterion fails:**
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
## ๐ฎ GoopSpec ยท Quick Mode Denied
|
|
32
|
+
|
|
33
|
+
โ Task does not qualify for quick mode.
|
|
34
|
+
|
|
35
|
+
**Failed criteria:**
|
|
36
|
+
- [List failed criteria]
|
|
37
|
+
|
|
38
|
+
**Recommendation:** This task needs proper planning.
|
|
39
|
+
|
|
40
|
+
โ Run: `/goop-discuss [task]`
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 1.3 Search for prior context
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
memory_search({ query: "[task topic] [file/component names]", limit: 3 })
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Check for:
|
|
52
|
+
- Similar past fixes
|
|
53
|
+
- Related decisions
|
|
54
|
+
- Known patterns in this area
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Phase 2: Capture
|
|
59
|
+
|
|
60
|
+
**Display quick mode banner:**
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
## ๐ฎ GoopSpec ยท Quick Mode
|
|
64
|
+
|
|
65
|
+
**Task:** [Task description]
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 2.1 Define the plan (one sentence)
|
|
71
|
+
|
|
72
|
+
Format:
|
|
73
|
+
> **Plan:** [Action verb] [what] in [where].
|
|
74
|
+
|
|
75
|
+
Examples:
|
|
76
|
+
- "Adjust z-index in Modal.css."
|
|
77
|
+
- "Fix typo in navbar component."
|
|
78
|
+
- "Add null check in useAuth hook."
|
|
79
|
+
|
|
80
|
+
### 2.2 Define success criterion (one statement)
|
|
81
|
+
|
|
82
|
+
Format:
|
|
83
|
+
> **Success:** [Observable outcome].
|
|
84
|
+
|
|
85
|
+
Examples:
|
|
86
|
+
- "Modal appears above overlay."
|
|
87
|
+
- "Navbar displays 'Settings' instead of 'Settnigs'."
|
|
88
|
+
- "No crash when user is null."
|
|
89
|
+
|
|
90
|
+
### 2.3 Display the capture
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
## ๐ฎ GoopSpec ยท Quick Plan
|
|
94
|
+
|
|
95
|
+
**Plan:** [One sentence]
|
|
96
|
+
|
|
97
|
+
**Success:** [One criterion]
|
|
98
|
+
|
|
99
|
+
**Files:** [List of files to modify]
|
|
100
|
+
|
|
101
|
+
Proceeding to execute...
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### 2.4 Log to ADL
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
goop_adl({
|
|
110
|
+
action: "append",
|
|
111
|
+
type: "decision",
|
|
112
|
+
description: "Quick fix: [brief description]",
|
|
113
|
+
entry_action: "Using quick mode for small, scoped change",
|
|
114
|
+
files: ["path/to/file.ts"]
|
|
115
|
+
})
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Phase 3: Execute
|
|
121
|
+
|
|
122
|
+
### 3.1 Read the target files
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
Read("[target file(s)]")
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Understand the current state before making changes.
|
|
129
|
+
|
|
130
|
+
### 3.2 Make the change
|
|
131
|
+
|
|
132
|
+
Apply the fix using `Edit` or `Write` tools.
|
|
133
|
+
|
|
134
|
+
**Rules:**
|
|
135
|
+
- ONE logical change per file
|
|
136
|
+
- Follow existing code patterns
|
|
137
|
+
- No scope creep - stick to the plan
|
|
138
|
+
|
|
139
|
+
### 3.3 Verify the change works
|
|
140
|
+
|
|
141
|
+
Run relevant checks:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
# Type check (if TypeScript)
|
|
145
|
+
bun run typecheck
|
|
146
|
+
|
|
147
|
+
# Run tests (if applicable)
|
|
148
|
+
bun test [relevant test file]
|
|
149
|
+
|
|
150
|
+
# Or manual verification
|
|
151
|
+
[command to verify]
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### 3.4 Create atomic commit
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
git add [files]
|
|
158
|
+
git commit -m "fix: [brief description]"
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Commit message format:
|
|
162
|
+
- `fix:` for bug fixes
|
|
163
|
+
- `chore:` for maintenance
|
|
164
|
+
- `docs:` for documentation
|
|
165
|
+
- `style:` for formatting
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Phase 4: Verify & Accept
|
|
170
|
+
|
|
171
|
+
### 4.1 Confirm success criterion
|
|
172
|
+
|
|
173
|
+
Check that the defined success criterion is met.
|
|
174
|
+
|
|
175
|
+
**If verification fails:**
|
|
176
|
+
```
|
|
177
|
+
## ๐ฎ GoopSpec ยท Quick Fix Failed
|
|
178
|
+
|
|
179
|
+
โ Verification failed.
|
|
180
|
+
|
|
181
|
+
**Expected:** [success criterion]
|
|
182
|
+
**Actual:** [what happened]
|
|
183
|
+
|
|
184
|
+
Options:
|
|
185
|
+
1. Retry with adjusted approach
|
|
186
|
+
2. Escalate to full workflow
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### 4.2 Display completion
|
|
192
|
+
|
|
193
|
+
```
|
|
194
|
+
## ๐ฎ GoopSpec ยท Quick Fix Complete
|
|
195
|
+
|
|
196
|
+
โจ Task completed successfully
|
|
197
|
+
|
|
198
|
+
**Task:** [Description]
|
|
199
|
+
**Commit:** [sha]
|
|
200
|
+
**Files:** [list]
|
|
201
|
+
|
|
202
|
+
**Verification:** โ [success criterion met]
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
Type **'accept'** to confirm, or describe any issues.
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### 4.3 Handle user response
|
|
210
|
+
|
|
211
|
+
| Response | Action |
|
|
212
|
+
|----------|--------|
|
|
213
|
+
| "accept" / "done" / "looks good" | Mark complete, thank user |
|
|
214
|
+
| Describes issue | Assess if fixable in quick mode, or escalate |
|
|
215
|
+
| Silence (continues other work) | Consider task accepted |
|
|
216
|
+
|
|
217
|
+
### 4.4 Final confirmation
|
|
218
|
+
|
|
219
|
+
```
|
|
220
|
+
## ๐ฎ GoopSpec ยท Accepted
|
|
221
|
+
|
|
222
|
+
โ Quick fix confirmed.
|
|
223
|
+
|
|
224
|
+
**Summary:**
|
|
225
|
+
- [One line summary]
|
|
226
|
+
- Commit: [sha]
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Escalation Rules
|
|
234
|
+
|
|
235
|
+
**Immediately escalate to `/goop-discuss` if:**
|
|
236
|
+
|
|
237
|
+
| Situation | Why |
|
|
238
|
+
|-----------|-----|
|
|
239
|
+
| Fix requires touching 4+ files | Scope too large for quick mode |
|
|
240
|
+
| Architectural decision needed | Requires deliberation |
|
|
241
|
+
| New dependency required | Has ripple effects |
|
|
242
|
+
| Fix doesn't work after 2 attempts | Deeper issue exists |
|
|
243
|
+
| User requests change in scope | Needs proper planning |
|
|
244
|
+
|
|
245
|
+
**Escalation message:**
|
|
246
|
+
|
|
247
|
+
```
|
|
248
|
+
## ๐ฎ GoopSpec ยท Escalating
|
|
249
|
+
|
|
250
|
+
This task has grown beyond quick mode scope.
|
|
251
|
+
|
|
252
|
+
**Reason:** [Why escalating]
|
|
253
|
+
|
|
254
|
+
**Recommendation:** Start a proper discovery interview.
|
|
255
|
+
|
|
256
|
+
โ Run: `/goop-discuss [task description]`
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Examples
|
|
264
|
+
|
|
265
|
+
### Simple Fix
|
|
266
|
+
|
|
267
|
+
```
|
|
268
|
+
User: /goop-quick Fix the z-index on the modal
|
|
269
|
+
|
|
270
|
+
Orchestrator:
|
|
271
|
+
## ๐ฎ GoopSpec ยท Quick Mode
|
|
272
|
+
|
|
273
|
+
**Task:** Fix the z-index on the modal
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
[Checking quick criteria...]
|
|
278
|
+
โ Single file (Modal.css)
|
|
279
|
+
โ Clear intent (z-index issue)
|
|
280
|
+
โ No architecture decisions
|
|
281
|
+
โ < 15 min effort
|
|
282
|
+
โ No new dependencies
|
|
283
|
+
|
|
284
|
+
## ๐ฎ GoopSpec ยท Quick Plan
|
|
285
|
+
|
|
286
|
+
**Plan:** Increase z-index value in Modal.css.
|
|
287
|
+
|
|
288
|
+
**Success:** Modal appears above overlay.
|
|
289
|
+
|
|
290
|
+
**Files:** src/components/Modal.css
|
|
291
|
+
|
|
292
|
+
Proceeding to execute...
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
[Reads file, makes change, commits]
|
|
297
|
+
|
|
298
|
+
## ๐ฎ GoopSpec ยท Quick Fix Complete
|
|
299
|
+
|
|
300
|
+
โจ Task completed successfully
|
|
301
|
+
|
|
302
|
+
**Task:** Fix the z-index on the modal
|
|
303
|
+
**Commit:** abc1234
|
|
304
|
+
**Files:** src/components/Modal.css
|
|
305
|
+
|
|
306
|
+
**Verification:** โ Modal now has z-index: 1000, above overlay (z-index: 100)
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
Type **'accept'** to confirm.
|
|
311
|
+
|
|
312
|
+
User: accept
|
|
313
|
+
|
|
314
|
+
## ๐ฎ GoopSpec ยท Accepted
|
|
315
|
+
|
|
316
|
+
โ Quick fix confirmed.
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Escalation Example
|
|
320
|
+
|
|
321
|
+
```
|
|
322
|
+
User: /goop-quick Add user authentication
|
|
323
|
+
|
|
324
|
+
Orchestrator:
|
|
325
|
+
## ๐ฎ GoopSpec ยท Quick Mode Denied
|
|
326
|
+
|
|
327
|
+
โ Task does not qualify for quick mode.
|
|
328
|
+
|
|
329
|
+
**Failed criteria:**
|
|
330
|
+
- Scope: Auth affects many files (routes, middleware, UI)
|
|
331
|
+
- Complexity: Requires architectural decisions (JWT vs sessions)
|
|
332
|
+
- Dependencies: Likely needs new packages
|
|
333
|
+
|
|
334
|
+
**Recommendation:** This task needs proper planning.
|
|
335
|
+
|
|
336
|
+
โ Run: `/goop-discuss Add user authentication`
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
*Quick Mode Process v0.1.6*
|