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-amend.md
CHANGED
|
@@ -3,173 +3,57 @@ name: goop-amend
|
|
|
3
3
|
description: Propose changes to a locked specification
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# /goop-amend
|
|
7
7
|
|
|
8
|
-
|
|
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
|
-
##
|
|
16
|
+
## Tools Used
|
|
30
17
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
**
|
|
25
|
+
**Hook Support:** `tool.execute.after` updates spec lock state.
|
|
55
26
|
|
|
56
|
-
|
|
57
|
-
Removing requirements to reduce scope.
|
|
27
|
+
---
|
|
58
28
|
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
/goop-amend Remove remember me feature, focus on core login
|
|
62
|
-
```
|
|
29
|
+
## How It Works
|
|
63
30
|
|
|
64
|
-
|
|
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
|
-
###
|
|
67
|
-
|
|
33
|
+
### 1. Change Request
|
|
34
|
+
User proposes a change (e.g., "Add password reset button").
|
|
68
35
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
- `
|
|
116
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
|
3
|
+
description: Complete and archive the current milestone
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# /goop-complete
|
|
7
7
|
|
|
8
|
-
Complete
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
29
|
+
## How It Works
|
|
135
30
|
|
|
136
|
-
|
|
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
|
-
|
|
33
|
+
### 1. Archival
|
|
34
|
+
Moves active artifacts (`SPEC.md`, `BLUEPRINT.md`, etc.) to `.goopspec/archive/<milestone-slug>/`.
|
|
144
35
|
|
|
145
|
-
|
|
36
|
+
### 2. Retrospective
|
|
37
|
+
Generates `RETROSPECTIVE.md` analyzing:
|
|
38
|
+
- What went well?
|
|
39
|
+
- What failed?
|
|
40
|
+
- Metrics (Time, diff size).
|
|
146
41
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
|
|
49
|
+
### 4. Tagging
|
|
50
|
+
Optionally creates a git tag for the release.
|
|
153
51
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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."
|