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
@@ -3,173 +3,57 @@ name: goop-amend
3
3
  description: Propose changes to a locked specification
4
4
  ---
5
5
 
6
- # GoopSpec Amend
6
+ # /goop-amend
7
7
 
8
- Propose changes to a locked specification after the CONTRACT GATE.
8
+ **Modify a locked specification.** Manage scope creep responsibly.
9
9
 
10
10
  ## Usage
11
11
 
12
+ ```bash
13
+ /goop-amend [description of change]
12
14
  ```
13
- /goop-amend [change description]
14
- ```
15
-
16
- ## When to Use
17
-
18
- Use `/goop-amend` when:
19
- - Specification is already locked
20
- - Requirements have changed
21
- - New constraints discovered
22
- - Scope needs adjustment
23
- - User realizes something was missed
24
-
25
- **Before locking:** Just type "amend" at the CONTRACT GATE prompt.
26
-
27
- **After locking:** Use this command to propose changes.
28
15
 
29
- ## What Happens
16
+ ## Tools Used
30
17
 
31
- 1. **Stop Current Execution** - Pause any in-progress work
32
- 2. **Document Change Request** - Record what needs to change and why
33
- 3. **Assess Impact** - Analyze effect on:
34
- - Completed work
35
- - In-progress tasks
36
- - Remaining tasks
37
- - Timeline and effort
38
- 4. **Present Options** - Show impact and alternatives
39
- 5. **User Confirms Amendment** - Must explicitly approve
40
- 6. **Update SPEC.md** - Modify locked specification
41
- 7. **Update BLUEPRINT.md** - Adjust wave/task plan
42
- 8. **Resume or Restart** - Continue execution with new spec
43
-
44
- ## Amendment Types
45
-
46
- ### Additive Amendment
47
- Adding new requirements without removing existing ones.
48
-
49
- **Example:**
50
- ```
51
- /goop-amend Add OAuth login support alongside email/password
52
- ```
18
+ | Tool | Purpose in This Command |
19
+ |------|------------------------|
20
+ | `goop_status` | Check spec is locked |
21
+ | `goop_spec` | Load current spec for amendment |
22
+ | `goop_adl` | Log amendment decision |
23
+ | `memory_decision` | Record amendment rationale |
53
24
 
54
- **Impact:** Extends scope, adds tasks, increases timeline.
25
+ **Hook Support:** `tool.execute.after` updates spec lock state.
55
26
 
56
- ### Subtractive Amendment
57
- Removing requirements to reduce scope.
27
+ ---
58
28
 
59
- **Example:**
60
- ```
61
- /goop-amend Remove remember me feature, focus on core login
62
- ```
29
+ ## How It Works
63
30
 
64
- **Impact:** Reduces scope, removes tasks, decreases timeline.
31
+ Once a spec is locked via `/goop-specify`, it cannot be silently changed. `/goop-amend` provides a formal process to alter the contract.
65
32
 
66
- ### Replacement Amendment
67
- Changing approach or swapping requirements.
33
+ ### 1. Change Request
34
+ User proposes a change (e.g., "Add password reset button").
68
35
 
69
- **Example:**
70
- ```
71
- /goop-amend Use session-based auth instead of JWT
72
- ```
36
+ ### 2. Impact Analysis
37
+ The agent analyzes the impact:
38
+ - **Scope:** Does this add new tasks?
39
+ - **Risk:** Does it break existing work?
40
+ - **Timeline:** How much longer will it take?
73
41
 
74
- **Impact:** May require rework, affects architecture.
75
-
76
- ## Amendment Process
77
-
78
- ```
79
- User: /goop-amend Add password reset functionality
80
-
81
- Agent:
82
- ╭─ ⬢ GoopSpec ───────────────────────────────────────╮
83
- │ │
84
- │ 📝 AMENDMENT REQUEST │
85
- │ │
86
- │ PROPOSED CHANGE: │
87
- │ Add password reset functionality │
88
- │ │
89
- │ IMPACT ASSESSMENT: │
90
- │ • Current progress: Wave 2 of 4 (50% complete) │
91
- │ • Completed work: Not affected │
92
- │ • New work required: │
93
- │ - Add password reset endpoint │
94
- │ - Email service integration │
95
- │ - Reset token management │
96
- │ - UI for reset flow │
97
- │ • Estimated additional effort: +4 hours │
98
- │ • New must-have: User can reset password │
99
- │ │
100
- │ OPTIONS: │
101
- │ 1. Add to current spec (extends timeline) │
102
- │ 2. Defer to next phase (separate feature) │
103
- │ 3. Cancel amendment (keep current spec) │
104
- │ │
105
- │ ───────────────────────────────────────────── │
106
- │ Type "confirm" to update spec and continue. │
107
- │ Type "defer" to handle in next phase. │
108
- │ Type "cancel" to keep current spec. │
109
- │ │
110
- ╰────────────────────────────────────────────────────╯
111
- ```
42
+ ### 3. Decision
43
+ The agent presents the impact and asks for confirmation.
44
+ - **Confirm:** Update SPEC.md and BLUEPRINT.md.
45
+ - **Defer:** Add to a future milestone/task.
46
+ - **Cancel:** Abort change.
112
47
 
113
48
  ## Artifacts Updated
114
-
115
- - `SPEC.md` - Updated with amendment:
116
- ```markdown
117
- ## Amendment History
118
-
119
- ### Amendment 1 - [Date]
120
- **Change:** Added password reset functionality
121
- **Reason:** User requirement discovered during execution
122
- **Impact:** +4 hours, +1 must-have
123
- ```
124
-
125
- - `BLUEPRINT.md` - Updated with new/modified tasks
126
- - `CHRONICLE.md` - Amendment logged with impact
127
-
128
- ## Best Practices
129
-
130
- ### When to Amend
131
-
132
- **GOOD reasons:**
133
- - Critical requirement missed
134
- - User needs changed
135
- - Technical constraint discovered
136
- - Security issue requires different approach
137
-
138
- **BAD reasons:**
139
- - "Nice to have" feature idea
140
- - Scope creep without justification
141
- - Avoiding difficult implementation
142
- - Perfectionism
143
-
144
- ### Minimizing Amendments
145
-
146
- To reduce need for amendments:
147
- - Thorough planning phase
148
- - Clear success criteria
149
- - Explicit out-of-scope items
150
- - User confirmation at CONTRACT GATE
49
+ - `SPEC.md`: Adds an "Amendment" entry.
50
+ - `BLUEPRINT.md`: Adds/Removes tasks.
51
+ - `CHRONICLE.md`: Logs the scope change.
151
52
 
152
53
  ## Example
153
54
 
154
- During authentication implementation, user realizes password reset is critical:
155
-
156
- ```
157
- /goop-amend Add password reset - users need recovery option
158
- ```
159
-
160
- Agent assesses impact, presents options, user confirms.
161
- SPEC.md updated, new tasks added to BLUEPRINT.md.
162
-
163
- ## Next Steps
164
-
165
- After amendment confirmed:
166
- - `/goop-execute` - Resume execution with updated spec
167
- - `/goop-status` - Check updated progress
168
-
169
- If amendment deferred:
170
- - Continue current work
171
- - Plan amendment as next phase
172
-
173
- ---
174
-
175
- **GoopSpec**: Adapt when needed, maintain the contract.
55
+ > **User:** `/goop-amend We need a 'Forgot Password' link`
56
+ > **Agent:** "Impact: Adds ~2 hours. Requires new API endpoint.
57
+ > Confirm amendment?"
58
+ > **User:** `confirm`
59
+ > **Agent:** "Spec updated. New tasks added to Wave 2."
@@ -1,206 +1,62 @@
1
1
  ---
2
2
  name: goop-complete
3
- description: Complete and archive a milestone
3
+ description: Complete and archive the current milestone
4
4
  ---
5
5
 
6
- # GoopSpec Complete
6
+ # /goop-complete
7
7
 
8
- Complete and archive a milestone, extracting learnings and preparing for the next phase.
8
+ **Complete a milestone.** Archive artifacts and extract learnings.
9
9
 
10
10
  ## Usage
11
11
 
12
- ```
12
+ ```bash
13
13
  /goop-complete
14
14
  ```
15
15
 
16
- ## When to Use
17
-
18
- Use `/goop-complete` when:
19
- - A major milestone is finished
20
- - Multiple features are complete
21
- - Ready to close a development cycle
22
- - Want to extract learnings before next phase
23
-
24
- **Note:** For individual features, `/goop-accept` is sufficient. Use `/goop-complete` for larger milestones.
25
-
26
- ## What Happens
27
-
28
- 1. **Verify Completion** - Confirm all milestone features accepted
29
- 2. **Generate RETROSPECTIVE.md** - Reflect on what worked/didn't
30
- 3. **Extract LEARNINGS.md** - Document patterns, decisions, insights
31
- 4. **Archive Files** - Move to `archive/milestone-N/`:
32
- - SPEC.md
33
- - BLUEPRINT.md
34
- - CHRONICLE.md
35
- - RESEARCH.md
36
- - RETROSPECTIVE.md
37
- - LEARNINGS.md
38
- 5. **Persist to Memory** - Save key learnings for future reference
39
- 6. **Tag Git** - Create version tag (e.g., `v1.0.0`)
40
- 7. **Clean Workspace** - Clear active workflow state
41
- 8. **Celebrate** - Acknowledge completion
42
-
43
- ## RETROSPECTIVE.md
44
-
45
- Generated retrospective includes:
46
-
47
- ```markdown
48
- # Retrospective: [Milestone Name]
49
-
50
- **Completed:** [Date]
51
- **Duration:** [Time period]
52
- **Features Delivered:** [Count]
53
-
54
- ## What Went Well
55
-
56
- - [Success 1]
57
- - [Success 2]
58
-
59
- ## What Could Improve
60
-
61
- - [Challenge 1]
62
- - [Challenge 2]
63
-
64
- ## Key Decisions
65
-
66
- - [Decision 1]: [Rationale]
67
- - [Decision 2]: [Rationale]
68
-
69
- ## Metrics
70
-
71
- - Tasks completed: [N]
72
- - Commits: [N]
73
- - Tests added: [N]
74
- - Files modified: [N]
75
- - Deviations: [N]
76
-
77
- ## Team Feedback
78
-
79
- [User observations and feedback]
80
- ```
81
-
82
- ## LEARNINGS.md
83
-
84
- Extracted learnings include:
85
-
86
- ```markdown
87
- # Learnings: [Milestone Name]
88
-
89
- ## Technical Patterns
90
-
91
- ### Pattern 1: [Name]
92
- **Context:** [When to use]
93
- **Implementation:** [How it works]
94
- **Benefits:** [Why it's good]
95
- **Files:** [Where it's used]
16
+ ## Tools Used
96
17
 
97
- ## Architectural Decisions
18
+ | Tool | Purpose in This Command |
19
+ |------|------------------------|
20
+ | `goop_status` | Verify milestone is ready for completion |
21
+ | `goop_adl` | Log completion decision |
22
+ | `memory_save` | Persist milestone learnings |
23
+ | `goop_checkpoint` | Archive milestone state |
98
24
 
99
- ### Decision 1: [Name]
100
- **Problem:** [What we needed to solve]
101
- **Solution:** [What we chose]
102
- **Alternatives:** [What we didn't choose]
103
- **Rationale:** [Why this was best]
25
+ **Hook Support:** `tool.execute.after` triggers archive feature.
104
26
 
105
- ## Gotchas Discovered
106
-
107
- - [Gotcha 1]: [How to avoid]
108
- - [Gotcha 2]: [How to avoid]
109
-
110
- ## Reusable Components
111
-
112
- - [Component 1]: [Purpose and location]
113
- - [Component 2]: [Purpose and location]
114
-
115
- ## Future Recommendations
116
-
117
- - [Recommendation 1]
118
- - [Recommendation 2]
119
- ```
120
-
121
- ## Archive Structure
122
-
123
- ```
124
- archive/
125
- └── milestone-1-auth-system/
126
- ├── SPEC.md
127
- ├── BLUEPRINT.md
128
- ├── CHRONICLE.md
129
- ├── RESEARCH.md
130
- ├── RETROSPECTIVE.md
131
- └── LEARNINGS.md
132
- ```
27
+ ---
133
28
 
134
- ## Memory Persistence
29
+ ## How It Works
135
30
 
136
- Key information saved to memory:
137
- - Architectural decisions
138
- - Reusable patterns discovered
139
- - Gotchas and how to avoid them
140
- - Performance insights
141
- - Security considerations
31
+ Marks the end of a significant body of work (a Milestone). It focuses on cleanup, reflection, and memory persistence.
142
32
 
143
- ## Git Tagging
33
+ ### 1. Archival
34
+ Moves active artifacts (`SPEC.md`, `BLUEPRINT.md`, etc.) to `.goopspec/archive/<milestone-slug>/`.
144
35
 
145
- Milestone tagged in git:
36
+ ### 2. Retrospective
37
+ Generates `RETROSPECTIVE.md` analyzing:
38
+ - What went well?
39
+ - What failed?
40
+ - Metrics (Time, diff size).
146
41
 
147
- ```bash
148
- git tag -a v1.0.0 -m "Milestone 1: Authentication System"
149
- git push origin v1.0.0
150
- ```
42
+ ### 3. Memory Extraction
43
+ Parses the session for reusable knowledge:
44
+ - **Patterns:** "We used Recoil for state."
45
+ - **Decisions:** "Chosen Redis over Memcached."
46
+ - **Gotchas:** "Beware of circular deps in utils."
47
+ These are saved to persistent memory.
151
48
 
152
- ## Completion Prompt
49
+ ### 4. Tagging
50
+ Optionally creates a git tag for the release.
153
51
 
154
- ```
155
- ╭─ GoopSpec ───────────────────────────────────────╮
156
- │ │
157
- │ 🎯 MILESTONE COMPLETE │
158
- │ │
159
- │ Milestone: Authentication System │
160
- │ │
161
- │ DELIVERED: │
162
- │ • User login/logout │
163
- │ • Session management │
164
- │ • Password reset │
165
- │ • OAuth integration │
166
- │ │
167
- │ METRICS: │
168
- │ • Duration: 3 days │
169
- │ • Tasks: 24 completed │
170
- │ • Commits: 24 │
171
- │ • Tests: 87% coverage │
172
- │ │
173
- │ ARCHIVED: │
174
- │ • Specifications │
175
- │ • Research findings │
176
- │ • Learnings extracted │
177
- │ • Git tagged: v1.0.0 │
178
- │ │
179
- ╰────────────────────────────────────────────────────╯
180
-
181
- What's next?
182
- • /goop-milestone [name] - Start next milestone
183
- • /goop-plan [feature] - Plan next feature
184
- • /goop-status - Check project status
185
- ```
52
+ ## Output
53
+ - Archived files.
54
+ - `RETROSPECTIVE.md`.
55
+ - Memory updates.
186
56
 
187
57
  ## Example
188
-
189
- After completing authentication system milestone:
190
-
191
- ```
192
- /goop-complete
193
- ```
194
-
195
- Agent generates retrospective, extracts learnings, archives files, tags git, and prepares for next milestone.
196
-
197
- ## Next Steps
198
-
199
- After completion:
200
- - `/goop-milestone [name]` - Start new milestone
201
- - `/goop-plan [feature]` - Plan next feature
202
- - Review LEARNINGS.md for insights
203
-
204
- ---
205
-
206
- **GoopSpec**: Complete with reflection, start fresh with wisdom.
58
+ > **User:** `/goop-complete`
59
+ > **Agent:** "Milestone 'Auth V1' archived.
60
+ > Retrospective generated.
61
+ > Saved 3 new patterns to memory.
62
+ > Ready for next milestone."