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.
Files changed (60) hide show
  1. package/README.md +255 -331
  2. package/agents/goop-debugger.md +175 -172
  3. package/agents/goop-designer.md +232 -160
  4. package/agents/goop-executor.md +197 -127
  5. package/agents/goop-explorer.md +148 -150
  6. package/agents/goop-librarian.md +218 -164
  7. package/agents/goop-orchestrator.md +392 -280
  8. package/agents/goop-planner.md +331 -153
  9. package/agents/goop-researcher.md +198 -126
  10. package/agents/goop-tester.md +277 -202
  11. package/agents/goop-verifier.md +191 -201
  12. package/agents/goop-writer.md +241 -133
  13. package/agents/memory-distiller.md +228 -136
  14. package/commands/goop-accept.md +434 -160
  15. package/commands/goop-amend.md +35 -151
  16. package/commands/goop-complete.md +39 -183
  17. package/commands/goop-debug.md +33 -298
  18. package/commands/goop-discuss.md +381 -85
  19. package/commands/goop-execute.md +391 -108
  20. package/commands/goop-help.md +11 -0
  21. package/commands/goop-map-codebase.md +16 -3
  22. package/commands/goop-memory.md +11 -0
  23. package/commands/goop-milestone.md +29 -192
  24. package/commands/goop-pause.md +31 -40
  25. package/commands/goop-plan.md +458 -46
  26. package/commands/goop-quick.md +38 -142
  27. package/commands/goop-recall.md +11 -0
  28. package/commands/goop-remember.md +12 -0
  29. package/commands/goop-research.md +52 -73
  30. package/commands/goop-resume.md +28 -37
  31. package/commands/goop-setup.md +225 -124
  32. package/commands/goop-specify.md +321 -121
  33. package/commands/goop-status.md +256 -110
  34. package/dist/index.js +6289 -2820
  35. package/package.json +1 -1
  36. package/references/context-injection.md +307 -0
  37. package/references/discovery-interview.md +278 -0
  38. package/references/enforcement-system.md +213 -0
  39. package/references/handoff-protocol.md +290 -0
  40. package/references/interactive-questioning.md +122 -0
  41. package/references/model-profiles.md +1 -1
  42. package/references/phase-gates.md +360 -0
  43. package/references/plugin-architecture.md +212 -0
  44. package/references/response-format.md +41 -9
  45. package/references/subagent-protocol.md +83 -33
  46. package/references/ui-interaction-patterns.md +133 -0
  47. package/references/visual-style.md +199 -0
  48. package/references/workflow-accept.md +60 -273
  49. package/references/workflow-execute.md +63 -274
  50. package/references/workflow-plan.md +86 -133
  51. package/references/workflow-research.md +78 -186
  52. package/references/workflow-specify.md +64 -221
  53. package/references/xml-response-schema.md +236 -0
  54. package/templates/blueprint.md +88 -41
  55. package/templates/chronicle.md +130 -16
  56. package/templates/handoff.md +140 -0
  57. package/templates/project.md +114 -0
  58. package/templates/requirements.md +121 -0
  59. package/templates/spec.md +85 -20
  60. package/templates/state.md +103 -0
@@ -1,165 +1,61 @@
1
1
  ---
2
2
  name: goop-quick
3
- description: Execute small tasks with abbreviated workflow (Plan → Execute → Accept)
3
+ description: Fast-track a small task
4
4
  ---
5
5
 
6
- # GoopSpec Quick
6
+ # /goop-quick
7
7
 
8
- Execute small, ad-hoc tasks with GoopSpec guarantees using an abbreviated workflow.
8
+ **Execute small tasks fast.** Abbreviated workflow for simple changes.
9
9
 
10
10
  ## Usage
11
11
 
12
+ ```bash
13
+ /goop-quick [task description]
12
14
  ```
13
- /goop-quick [brief description]
14
- ```
15
-
16
- ## Workflow Position
17
15
 
18
- Quick mode uses a shortened path:
16
+ ## Tools Used
19
17
 
20
- ```
21
- ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
22
- │ PLAN │ ──▶ │ EXECUTE │ ──▶ │ ACCEPT │
23
- │ (Intent) │ │ (Build) │ │ (Verify) │
24
- └─────────────┘ └─────────────┘ └─────────────┘
25
-
26
- Research and Specify phases SKIPPED
27
- ```
18
+ | Tool | Purpose in This Command |
19
+ |------|------------------------|
20
+ | `goop_status` | Check current state, skip heavy workflow |
21
+ | `memory_search` | Find relevant prior context |
22
+ | `memory_save` | Persist any discoveries |
28
23
 
29
- Quick mode skips:
30
- - Research phase (assumes existing patterns sufficient)
31
- - Specify phase (intent serves as implicit spec)
32
- - Formal SPEC.md and BLUEPRINT.md
33
- - Comprehensive verification
34
-
35
- ## When to Use Quick Mode
36
-
37
- **Good for:**
38
- - Fix a specific bug
39
- - Add a small feature
40
- - Refactor a specific function
41
- - Update documentation
42
- - Add a test
43
- - Configure a tool
44
- - 15-60 minutes of work
45
-
46
- **Too big for quick mode:**
47
- - New major feature
48
- - Architecture changes
49
- - Multiple interdependent changes
50
- - Unknown problem domain
51
- - Anything requiring research
52
-
53
- ## What Happens
54
-
55
- 1. **Quick Planning** - Abbreviated Plan phase:
56
- - Capture intent in 1-2 sentences
57
- - Define one clear success criterion
58
- - Skip detailed requirements
59
-
60
- 2. **Direct Execution** - Simplified Execute phase:
61
- - 1-2 waves maximum
62
- - Faster delegation
63
- - Less formal tracking
64
- - Atomic commits still required
65
-
66
- 3. **Quick Acceptance** - Abbreviated Accept phase:
67
- - Quick verification
68
- - No formal report
69
- - Simple confirmation prompt
70
-
71
- ## Artifacts Created
72
-
73
- - `.goopspec/quick/NNN-slug/PLAN.md` - Brief task plan
74
- - `.goopspec/quick/NNN-slug/SUMMARY.md` - Completion summary
75
- - Git commits (atomic, per task)
76
- - STATE.md updated with quick task entry
77
-
78
- ## Task Size Guide
79
-
80
- | Duration | Appropriate? |
81
- |----------|--------------|
82
- | < 15 min | Yes (might be too simple) |
83
- | 15-30 min | Ideal |
84
- | 30-60 min | Good |
85
- | 1-2 hours | Borderline |
86
- | > 2 hours | Use standard workflow |
24
+ **Hook Support:** Minimal - quick mode bypasses most phase enforcement.
87
25
 
88
- ## Example
89
-
90
- ```
91
- /goop-quick Fix login button styling to match design system
92
- ```
93
-
94
- Agent:
95
- 1. Captures intent: "Update login button to use design system styles"
96
- 2. Success criterion: "Button matches design system colors and spacing"
97
- 3. Executes: Modify button component, update styles
98
- 4. Commits: `fix(quick): update login button to match design system`
99
- 5. Verifies: Visual check, no errors
100
- 6. Presents for acceptance
101
-
102
- ## Good Quick Task Examples
103
-
104
- **GOOD:**
105
- - "Fix the login button styling"
106
- - "Add validation to the email field"
107
- - "Update the README with new setup steps"
108
- - "Refactor the auth utility to use async/await"
109
- - "Add unit test for user validation"
26
+ ---
110
27
 
111
- **TOO BIG:**
112
- - "Implement user authentication" (use standard workflow)
113
- - "Add payment processing" (use standard workflow)
114
- - "Refactor the entire codebase" (use milestone)
28
+ ## How It Works
115
29
 
116
- ## Quick Mode Guarantees
30
+ Quick mode bypasses the formal Plan/Research/Specify phases while maintaining safety guarantees. Ideal for bug fixes, small refactors, or docs.
117
31
 
118
- Even in quick mode, you still get:
119
- - Atomic commits
120
- - Deviation rule enforcement
121
- - Memory integration
122
- - Verification before acceptance
123
- - User confirmation gate
32
+ ### 1. Implicit Planning
33
+ - Captures intent in 1 sentence.
34
+ - Defines 1 clear success criterion.
35
+ - Skips formal `SPEC.md`.
124
36
 
125
- What you skip:
126
- - Formal research
127
- - Locked specification
128
- - Wave-based planning
129
- - Comprehensive verification report
37
+ ### 2. Rapid Execution
38
+ - Creates a simplified 1-Wave Blueprint.
39
+ - Executes immediately.
40
+ - Still performs atomic commits.
130
41
 
131
- ## Next Steps
42
+ ### 3. Quick Acceptance
43
+ - Verifies the fix.
44
+ - Asks for confirmation.
132
45
 
133
- After quick task:
134
- - `/goop-quick [next]` - Another quick task
135
- - `/goop-plan [feature]` - Start standard workflow
136
- - `/goop-status` - Check overall progress
46
+ ## When to Use
47
+ - **Good:** "Fix the typo in the navbar", "Update dependency X", "Add a unit test".
48
+ - **Bad:** "Add user auth", "Refactor entire API". (Use `/goop-plan` for these).
137
49
 
138
- ## Completion Prompt
50
+ ## Output
139
51
 
140
- ```
141
- ╭─ GoopSpec ───────────────────────────────────────╮
142
- │ │
143
- │ ⚡ QUICK TASK COMPLETE │
144
- │ │
145
- │ Task: Fix login button styling │
146
- │ │
147
- │ Duration: 12 minutes │
148
- │ Files: 1 modified │
149
- │ Commits: 1 │
150
- │ │
151
- │ VERIFICATION: │
152
- │ ☑ Button matches design system │
153
- │ ☑ No console errors │
154
- │ ☑ Tests passing │
155
- │ │
156
- │ ───────────────────────────────────────────── │
157
- │ Type "accept" to confirm. │
158
- │ Type "issues: [description]" for fixes. │
159
- │ │
160
- ╰────────────────────────────────────────────────────╯
161
- ```
52
+ - Atomic commits.
53
+ - `.goopspec/quick/` logs (for history).
162
54
 
163
- ---
55
+ ## Example
164
56
 
165
- **GoopSpec**: Quick tasks, same guarantees.
57
+ > **User:** `/goop-quick Fix the z-index on the modal`
58
+ > **Agent:** "Plan: Adjust z-index in `Modal.css`. Success: Modal appears above overlay.
59
+ > Executing...
60
+ > Done (commit: x9y8z7). Modal z-index set to 1000.
61
+ > Verified. Type 'accept' to close."
@@ -16,6 +16,17 @@ Search the persistent memory system for relevant context. Use this to:
16
16
  `/goop-recall recent` - Show recent memories
17
17
  `/goop-recall decisions` - Show recent architectural decisions
18
18
 
19
+ ## Tools Used
20
+
21
+ | Tool | Purpose in This Command |
22
+ |------|------------------------|
23
+ | `memory_search` | Search persistent memories |
24
+ | `session_search` | Search session history |
25
+
26
+ **Hook Support:** None specific - read-only query.
27
+
28
+ ---
29
+
19
30
  ## Instructions
20
31
 
21
32
  When this command is invoked:
@@ -17,6 +17,18 @@ Save important information to the persistent memory system for future sessions.
17
17
  `/goop-remember note: [content]` - Quick note
18
18
  `/goop-remember todo: [content]` - Create a durable task
19
19
 
20
+ ## Tools Used
21
+
22
+ | Tool | Purpose in This Command |
23
+ |------|------------------------|
24
+ | `memory_save` | Store structured memories |
25
+ | `memory_decision` | Record decisions with reasoning |
26
+ | `memory_note` | Quick note capture |
27
+
28
+ **Hook Support:** `system.transform` uses saved memories in future sessions.
29
+
30
+ ---
31
+
20
32
  ## Instructions
21
33
 
22
34
  When this command is invoked:
@@ -1,98 +1,77 @@
1
1
  ---
2
2
  name: goop-research
3
- description: Start the Research phase - explore implementation approaches
3
+ description: Launch research for unknowns or risks
4
+ agent: goop-researcher
5
+ spawn: true
6
+ phase: research
7
+ next-step: "Apply research findings to create or refine the plan"
8
+ next-command: /goop-plan
9
+ alternatives:
10
+ - command: /goop-research
11
+ when: "For additional research on related topics"
12
+ - command: /goop-specify
13
+ when: "If research confirms the plan is ready to lock"
4
14
  ---
5
15
 
6
- # GoopSpec Research
16
+ # /goop-research
7
17
 
8
- Gather context and explore implementation approaches before committing to a specification.
18
+ **Start the Research Phase.** Explore unknowns, compare options, and gather technical context.
9
19
 
10
20
  ## Usage
11
21
 
22
+ ```bash
23
+ /goop-research [topic or question]
12
24
  ```
13
- /goop-research
14
- ```
15
-
16
- ## Workflow Position
17
-
18
- ```
19
- ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
20
- │ PLAN │ ──▶ │ RESEARCH │ ──▶ │ SPECIFY │
21
- │ (Intent) │ │ (Explore) │ │ (Contract) │
22
- └─────────────┘ └─────────────┘ └─────────────┘
23
-
24
- (You are here)
25
- ```
26
-
27
- The Research phase answers: **How should we build this?**
28
-
29
- ## What Happens
30
25
 
31
- 1. **Parallel Agent Spawning** - Multiple agents work simultaneously:
32
- - **Researcher** - Deep domain research (technologies, patterns, best practices)
33
- - **Explorer** - Codebase analysis (existing patterns, conventions, integration points)
34
- - **Librarian** - Documentation gathering (API docs, library guides, examples)
35
- - **Designer** - (UI tasks only) Visual research (patterns, components, UX)
26
+ ## Tools Used
36
27
 
37
- 2. **Research Areas Covered:**
38
- - Technology options and trade-offs
39
- - Existing codebase patterns
40
- - Domain knowledge and edge cases
41
- - Security and performance considerations
42
- - Industry standards and best practices
28
+ | Tool | Purpose in This Command |
29
+ |------|------------------------|
30
+ | `goop_status` | Check current phase allows research |
31
+ | `memory_search` | Find prior research on same topic |
32
+ | `memory_save` | Persist research findings |
33
+ | `goop_skill` | Load specialized research skills |
43
34
 
44
- 3. **Consolidation** - Findings merged into RESEARCH.md with:
45
- - Technology recommendations
46
- - Codebase integration points
47
- - Key decisions needed
48
- - Risk assessment
49
- - Estimated complexity
35
+ **Hook Support:** `system.transform` injects prior research context.
50
36
 
51
- 4. **Memory Integration** - Past research and patterns retrieved
52
-
53
- ## Artifacts Created
54
-
55
- - `RESEARCH.md` - Consolidated research findings
56
- - Technology comparison table
57
- - Recommended approach with rationale
58
- - Risk catalog
59
- - Integration points identified
37
+ ---
60
38
 
61
- ## Example
39
+ ## How It Works
62
40
 
63
- After planning "Add user authentication":
41
+ Research is an **opt-in** phase used when the path forward isn't clear. It prevents "coding in the dark."
64
42
 
65
- ```
66
- /goop-research
67
- ```
43
+ ### 1. Scope Definition
44
+ The agent confirms what needs to be learned:
45
+ - Technical feasibility
46
+ - Library/Tool selection
47
+ - Architectural patterns
48
+ - Bug root cause analysis
68
49
 
69
- Research agents explore:
70
- - JWT vs session-based auth
71
- - Existing auth patterns in codebase
72
- - Security best practices
73
- - Library options (jose, jsonwebtoken, etc.)
74
- - Integration with current user model
50
+ ### 2. Investigation
51
+ The `goop-researcher` subagent performs:
52
+ - **Web Search:** For latest docs and libraries.
53
+ - **Code Search:** For examples and usage patterns.
54
+ - **Memory Search:** For past learnings.
75
55
 
76
- ## Next Steps
56
+ ### 3. Synthesis
57
+ Findings are compiled into a structured report with a clear recommendation.
77
58
 
78
- After research:
79
- - `/goop-specify` - Lock the specification (CONTRACT GATE)
59
+ ## Output
80
60
 
81
- ## Quick Mode Shortcut
61
+ - `.goopspec/RESEARCH.md`: Detailed findings and trade-offs.
62
+ - **Memory:** Key learnings are persisted for future recall.
82
63
 
83
- For Quick tasks, Research phase is **SKIPPED entirely**:
84
- - Assumes existing patterns are sufficient
85
- - No parallel agent spawning
86
- - Jumps directly from Plan to Execute
64
+ ## Transitions
87
65
 
88
- ## Comprehensive Mode
66
+ - **Next Step:** `/goop-plan` to apply findings to a plan.
67
+ - **Loop:** `/goop-research` can be run multiple times for deep dives.
89
68
 
90
- For Comprehensive tasks:
91
- - Deeper research per agent
92
- - More alternatives explored
93
- - Extended timeframe
94
- - User reviews RESEARCH.md before Specify
69
+ ## Examples
95
70
 
96
- ---
71
+ **Library Selection:**
72
+ > **User:** `/goop-research best react animation library for minimal bundle size`
73
+ > **Agent:** "I'll compare Framer Motion, React Spring, and a CSS-only approach."
97
74
 
98
- **GoopSpec**: Research thoroughly, decide confidently.
75
+ **Technical Feasibility:**
76
+ > **User:** `/goop-research can we use WebSockets on Vercel serverless?`
77
+ > **Agent:** "Investigating Vercel platform limits and workaround options like Pusher."
@@ -1,57 +1,48 @@
1
1
  ---
2
2
  name: goop-resume
3
- description: Resume from a checkpoint
3
+ description: Resume from a saved checkpoint
4
4
  ---
5
5
 
6
- # GoopSpec Resume
6
+ # /goop-resume
7
7
 
8
- Resume your work from a saved checkpoint.
8
+ **Resume from a checkpoint.** Restore context and continue work.
9
9
 
10
10
  ## Usage
11
11
 
12
- ```
12
+ ```bash
13
13
  /goop-resume [checkpoint-id]
14
14
  ```
15
15
 
16
- ## What Gets Restored
17
-
18
- When resuming:
19
- - Session context is restored
20
- - Current phase is set
21
- - Active spec is loaded
22
- - Todos are displayed
23
- - Modified files list is shown
16
+ ## Tools Used
24
17
 
25
- ## Without Checkpoint ID
18
+ | Tool | Purpose in This Command |
19
+ |------|------------------------|
20
+ | `goop_checkpoint` | Load saved execution state |
21
+ | `goop_status` | Verify current state matches checkpoint |
22
+ | `memory_search` | Find context from when checkpoint was saved |
26
23
 
27
- If no checkpoint ID is provided, loads the **most recent** checkpoint.
28
-
29
- ## Example
30
-
31
- ```
32
- /goop-resume
33
- ```
24
+ **Hook Support:** `system.transform` injects checkpoint context automatically.
34
25
 
35
- Or specify a specific checkpoint:
36
- ```
37
- /goop-resume checkpoint-abc123
38
- ```
26
+ ---
39
27
 
40
- ## Workflow
28
+ ## How It Works
41
29
 
42
- 1. **Load checkpoint data**
43
- 2. **Restore session context**
44
- 3. **Display current todos**
45
- 4. **Show relevant files**
46
- 5. **Ready to continue work**
30
+ Loads a saved state, restores the workflow context, and prepares the agent to continue exactly where it left off.
47
31
 
48
- ## See Available Checkpoints
32
+ ### Behavior
33
+ - **No ID:** Resumes the most recent checkpoint.
34
+ - **With ID:** Resumes specific checkpoint (e.g., `/goop-resume cp-123`).
49
35
 
50
- To list all checkpoints:
51
- ```
52
- Use the goop_checkpoint tool with action: "list"
53
- ```
36
+ ### What Happens
37
+ 1. **Load State:** Reads the checkpoint JSON.
38
+ 2. **Restore Context:** Re-initializes the Orchestrator at the correct phase/wave.
39
+ 3. **Status Check:** Runs a quick status check to confirm environment matches.
40
+ 4. **Prompt:** Reminds user of the next pending task.
54
41
 
55
- ---
42
+ ## Example
56
43
 
57
- **GoopSpec**: Pick up exactly where you left off.
44
+ > **User:** `/goop-resume`
45
+ > **Agent:** "Resuming session from 2 hours ago.
46
+ > Phase: Execute (Wave 2).
47
+ > Next Task: [2.2] Implement handler.
48
+ > Ready to continue?"