opencode-goopspec 0.1.2 → 0.1.3
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 +36 -34
- package/agents/goop-orchestrator.md +106 -20
- package/commands/goop-accept.md +43 -163
- package/commands/goop-amend.md +26 -155
- package/commands/goop-complete.md +30 -187
- package/commands/goop-debug.md +25 -303
- package/commands/goop-discuss.md +9 -125
- package/commands/goop-execute.md +49 -115
- package/commands/goop-map-codebase.md +3 -3
- package/commands/goop-milestone.md +20 -196
- package/commands/goop-pause.md +22 -43
- package/commands/goop-plan.md +404 -46
- package/commands/goop-quick.md +29 -145
- package/commands/goop-research.md +43 -77
- package/commands/goop-resume.md +19 -40
- package/commands/goop-setup.md +207 -116
- package/commands/goop-specify.md +58 -134
- package/commands/goop-status.md +32 -134
- package/dist/index.js +5952 -2796
- package/package.json +1 -1
- package/references/interactive-questioning.md +122 -0
- package/references/ui-interaction-patterns.md +133 -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/commands/goop-specify.md
CHANGED
|
@@ -1,145 +1,69 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: goop-specify
|
|
3
|
-
description: Lock the specification
|
|
3
|
+
description: Lock the specification contract
|
|
4
|
+
phase: specify
|
|
5
|
+
next-step: "Once the spec is locked and confirmed, begin implementation"
|
|
6
|
+
next-command: /goop-execute
|
|
7
|
+
alternatives:
|
|
8
|
+
- command: /goop-amend
|
|
9
|
+
when: "If you need to modify the locked specification"
|
|
10
|
+
- command: /goop-pause
|
|
11
|
+
when: "To save progress and continue later"
|
|
4
12
|
---
|
|
5
13
|
|
|
6
|
-
#
|
|
14
|
+
# /goop-specify
|
|
7
15
|
|
|
8
|
-
Lock the specification
|
|
16
|
+
**Lock the specification.** Create a binding contract between user and agent.
|
|
9
17
|
|
|
10
18
|
## Usage
|
|
11
19
|
|
|
12
|
-
```
|
|
13
|
-
/goop-specify
|
|
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
|
-
║ CONTRACT GATE ║
|
|
28
|
-
║ User MUST confirm before execution begins ║
|
|
29
|
-
╚══════════════════════════════════════════════╝
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
The Specify phase answers: **What exactly will we deliver?**
|
|
33
|
-
|
|
34
|
-
## What Happens
|
|
35
|
-
|
|
36
|
-
1. **Synthesize Plan + Research** - Combine intent with technical approach
|
|
37
|
-
2. **Define Must-Haves** - Observable, achievable, specific deliverables (3-7 items)
|
|
38
|
-
3. **Set Boundaries** - Explicitly state what's out of scope
|
|
39
|
-
4. **Create SPEC.md** - The locked specification document
|
|
40
|
-
5. **Create BLUEPRINT.md** - Wave-based execution plan
|
|
41
|
-
6. **Present Contract** - Show must-haves, nice-to-haves, out-of-scope
|
|
42
|
-
7. **Wait for Confirmation** - User MUST type "confirm" to proceed
|
|
43
|
-
|
|
44
|
-
## The Contract Concept
|
|
45
|
-
|
|
46
|
-
Once locked, the specification becomes a binding agreement:
|
|
47
|
-
- **Agent commits** to delivering must-haves
|
|
48
|
-
- **User commits** to accepting if must-haves are met
|
|
49
|
-
- **Changes require** explicit amendment via `/goop-amend`
|
|
50
|
-
|
|
51
|
-
### Why Contracts Matter
|
|
52
|
-
|
|
53
|
-
**Without a locked spec:**
|
|
54
|
-
- Scope creeps silently
|
|
55
|
-
- "Almost done" never ends
|
|
56
|
-
- Success criteria shift
|
|
57
|
-
- Both parties frustrated
|
|
58
|
-
|
|
59
|
-
**With a locked spec:**
|
|
60
|
-
- Clear deliverables
|
|
61
|
-
- Measurable completion
|
|
62
|
-
- Explicit change process
|
|
63
|
-
- Satisfied expectations
|
|
64
|
-
|
|
65
|
-
## Artifacts Created
|
|
66
|
-
|
|
67
|
-
- `SPEC.md` - Locked specification with:
|
|
68
|
-
- Intent summary
|
|
69
|
-
- Must-haves (guaranteed)
|
|
70
|
-
- Nice-to-haves (best effort)
|
|
71
|
-
- Out-of-scope (explicitly excluded)
|
|
72
|
-
- Technical approach
|
|
73
|
-
- Target files
|
|
74
|
-
- Acceptance criteria
|
|
75
|
-
|
|
76
|
-
- `BLUEPRINT.md` - Wave-based execution plan with:
|
|
77
|
-
- Wave 1: Foundation tasks
|
|
78
|
-
- Wave 2: Core tasks
|
|
79
|
-
- Wave 3: Integration tasks
|
|
80
|
-
- Wave 4: Polish tasks
|
|
81
|
-
|
|
82
|
-
## Confirmation Prompt
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
╭─ ⬢ GoopSpec ───────────────────────────────────────╮
|
|
86
|
-
│ │
|
|
87
|
-
│ 🔒 CONTRACT GATE │
|
|
88
|
-
│ │
|
|
89
|
-
│ I'm ready to lock the specification. │
|
|
90
|
-
│ │
|
|
91
|
-
│ MUST HAVES (I commit to delivering): │
|
|
92
|
-
│ • User can log in with email/password │
|
|
93
|
-
│ • Session persists across refresh │
|
|
94
|
-
│ • Error messages displayed │
|
|
95
|
-
│ │
|
|
96
|
-
│ NICE TO HAVES (Best effort): │
|
|
97
|
-
│ • Remember me option │
|
|
98
|
-
│ │
|
|
99
|
-
│ OUT OF SCOPE: │
|
|
100
|
-
│ • OAuth providers (future enhancement) │
|
|
101
|
-
│ • Password reset (separate feature) │
|
|
102
|
-
│ │
|
|
103
|
-
│ ACCEPTANCE CRITERIA: │
|
|
104
|
-
│ 1. User can successfully log in │
|
|
105
|
-
│ 2. Tests pass for auth flow │
|
|
106
|
-
│ 3. Session management works │
|
|
107
|
-
│ │
|
|
108
|
-
│ ───────────────────────────────────────────── │
|
|
109
|
-
│ Type "confirm" to lock and proceed. │
|
|
110
|
-
│ Type "amend" to request changes. │
|
|
111
|
-
│ │
|
|
112
|
-
╰────────────────────────────────────────────────────╯
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
## Example
|
|
116
|
-
|
|
117
|
-
After research on authentication:
|
|
118
|
-
|
|
119
|
-
```
|
|
20
|
+
```bash
|
|
120
21
|
/goop-specify
|
|
121
22
|
```
|
|
122
23
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
24
|
+
## How It Works
|
|
25
|
+
|
|
26
|
+
This command marks the transition from planning to commitment. It generates the `SPEC.md` and `BLUEPRINT.md` files and presents them for user confirmation.
|
|
27
|
+
|
|
28
|
+
### 1. Artifact Generation
|
|
29
|
+
Based on the plan (and optional research), the agent generates:
|
|
30
|
+
- **SPEC.md:** The requirements contract.
|
|
31
|
+
- **BLUEPRINT.md:** The execution plan (Waves & Tasks).
|
|
32
|
+
|
|
33
|
+
### 2. The Contract Gate
|
|
34
|
+
The agent displays a summary of the contract:
|
|
35
|
+
- **Must Haves:** Guaranteed deliverables.
|
|
36
|
+
- **Nice to Haves:** Best-effort items.
|
|
37
|
+
- **Out of Scope:** Explicit exclusions.
|
|
38
|
+
|
|
39
|
+
### 3. User Confirmation
|
|
40
|
+
The user **MUST** type "confirm" to lock the spec.
|
|
41
|
+
- If the user types "amend", the agent enters amendment mode to adjust requirements.
|
|
42
|
+
|
|
43
|
+
## Output
|
|
44
|
+
|
|
45
|
+
- `.goopspec/SPEC.md` (Locked)
|
|
46
|
+
- `.goopspec/BLUEPRINT.md` (Ready for execution)
|
|
47
|
+
- **State Transition:** `plan` -> `execute`
|
|
48
|
+
|
|
49
|
+
## Example Interaction
|
|
50
|
+
|
|
51
|
+
> **User:** `/goop-specify`
|
|
52
|
+
> **Agent:**
|
|
53
|
+
> ```
|
|
54
|
+
> 🔒 CONTRACT GATE
|
|
55
|
+
>
|
|
56
|
+
> MUST HAVES:
|
|
57
|
+
> • Email/Password Login
|
|
58
|
+
> • Session Persistence
|
|
59
|
+
>
|
|
60
|
+
> OUT OF SCOPE:
|
|
61
|
+
> • OAuth (Google/Github)
|
|
62
|
+
>
|
|
63
|
+
> Type "confirm" to lock, or "amend" to change.
|
|
64
|
+
> ```
|
|
65
|
+
> **User:** `confirm`
|
|
66
|
+
> **Agent:** "Spec locked. Ready to execute."
|
|
67
|
+
|
|
68
|
+
## Quick Mode
|
|
69
|
+
For `/goop-quick` tasks, this phase is skipped. The intent captured in the plan serves as the implicit spec.
|
package/commands/goop-status.md
CHANGED
|
@@ -1,153 +1,51 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: goop-status
|
|
3
|
-
description: Show GoopSpec status
|
|
3
|
+
description: Show current GoopSpec status
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# /goop-status
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**Show project status.** View progress, active phase, and pending tasks.
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
11
|
|
|
12
|
+
```bash
|
|
13
|
+
/goop-status [--verbose]
|
|
12
14
|
```
|
|
13
|
-
/goop-status
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Information Shown
|
|
17
|
-
|
|
18
|
-
### Project State
|
|
19
|
-
- Initialized: Yes/No
|
|
20
|
-
- Active: Yes/No
|
|
21
|
-
- Current milestone (if any)
|
|
22
|
-
- Task mode: Quick | Standard | Comprehensive | Milestone
|
|
23
|
-
|
|
24
|
-
### Current Workflow
|
|
25
|
-
- Phase: Plan | Research | Specify | Execute | Accept
|
|
26
|
-
- Spec locked: Yes/No
|
|
27
|
-
- Acceptance confirmed: Yes/No
|
|
28
|
-
- Last activity timestamp
|
|
29
15
|
|
|
30
|
-
|
|
31
|
-
- Current wave: N of M
|
|
32
|
-
- Tasks completed in current wave
|
|
33
|
-
- Total tasks completed
|
|
34
|
-
- Recent commits
|
|
16
|
+
## How It Works
|
|
35
17
|
|
|
36
|
-
|
|
37
|
-
- Specification locked at: [timestamp]
|
|
38
|
-
- Must-haves: N total
|
|
39
|
-
- Must-haves completed: N of M
|
|
40
|
-
- Nice-to-haves completed: N of M
|
|
18
|
+
Displays a dashboard of the current GoopSpec session.
|
|
41
19
|
|
|
42
|
-
###
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
20
|
+
### Information Shown
|
|
21
|
+
- **Project State:** Initialized? Active Milestone?
|
|
22
|
+
- **Current Phase:** Discuss, Plan, Research, Specify, Execute, or Accept.
|
|
23
|
+
- **Progress:** Wave completion (e.g., "Wave 2 of 4").
|
|
24
|
+
- **Task Status:** Current active task and recent completions.
|
|
25
|
+
- **Gates:** Spec locked? Acceptance pending?
|
|
46
26
|
|
|
47
|
-
###
|
|
48
|
-
-
|
|
49
|
-
- Observations saved: N
|
|
50
|
-
- Patterns documented: N
|
|
27
|
+
### Interactive Actions
|
|
28
|
+
From the status view, the agent often suggests the logical next command (e.g., "Execution complete. Run `/goop-accept` to verify.").
|
|
51
29
|
|
|
52
30
|
## Example Output
|
|
53
31
|
|
|
54
32
|
```
|
|
55
|
-
⬢ GoopSpec
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
☑ Task 1.2: Config
|
|
71
|
-
☑ Task 1.3: Base
|
|
72
|
-
|
|
73
|
-
Wave 2: Core [IN PROGRESS]
|
|
74
|
-
☑ Task 2.1: Auth
|
|
75
|
-
◉ Task 2.2: Logic
|
|
76
|
-
○ Task 2.3: Data
|
|
77
|
-
|
|
78
|
-
Wave 3: Integration [PENDING]
|
|
79
|
-
Wave 4: Polish [PENDING]
|
|
80
|
-
|
|
81
|
-
MUST-HAVES: 2 of 3 complete
|
|
82
|
-
☑ User can log in
|
|
83
|
-
☑ Session persists
|
|
84
|
-
○ Error messages displayed
|
|
85
|
-
|
|
86
|
-
CHECKPOINTS: 2 saved
|
|
87
|
-
Latest: checkpoint-xyz789 (30 mins ago)
|
|
88
|
-
|
|
89
|
-
MEMORY: 5 decisions, 12 observations
|
|
90
|
-
|
|
91
|
-
──────────────────────────────────────────────────────
|
|
33
|
+
⬢ GoopSpec Status
|
|
34
|
+
─────────────────
|
|
35
|
+
Phase: EXECUTE (Wave 2/4)
|
|
36
|
+
Task: [2.1] Implement Login Handler (In Progress)
|
|
37
|
+
Milestone: Auth System v1
|
|
38
|
+
|
|
39
|
+
Progress:
|
|
40
|
+
[✓] Wave 1: Foundation
|
|
41
|
+
[→] Wave 2: Core Logic
|
|
42
|
+
[✓] 2.1 Define types
|
|
43
|
+
[→] 2.2 Implement handler
|
|
44
|
+
[ ] 2.3 Add tests
|
|
45
|
+
[ ] Wave 3: Integration
|
|
46
|
+
|
|
47
|
+
Next: Finish Task 2.2
|
|
92
48
|
```
|
|
93
49
|
|
|
94
|
-
##
|
|
95
|
-
|
|
96
|
-
### Plan Phase
|
|
97
|
-
- Intent captured: Yes/No
|
|
98
|
-
- Requirements categorized: Yes/No
|
|
99
|
-
- Success criteria defined: Yes/No
|
|
100
|
-
- Ready for research: Yes/No
|
|
101
|
-
|
|
102
|
-
### Research Phase
|
|
103
|
-
- Agents spawned: N
|
|
104
|
-
- Research complete: Yes/No
|
|
105
|
-
- RESEARCH.md created: Yes/No
|
|
106
|
-
- Ready for specify: Yes/No
|
|
107
|
-
|
|
108
|
-
### Specify Phase
|
|
109
|
-
- SPEC.md created: Yes/No
|
|
110
|
-
- BLUEPRINT.md created: Yes/No
|
|
111
|
-
- Contract presented: Yes/No
|
|
112
|
-
- User confirmed: Yes/No
|
|
113
|
-
|
|
114
|
-
### Execute Phase
|
|
115
|
-
- Current wave: N of M
|
|
116
|
-
- Tasks complete: N of M
|
|
117
|
-
- Deviations: N logged
|
|
118
|
-
- Blockers: N active
|
|
119
|
-
|
|
120
|
-
### Accept Phase
|
|
121
|
-
- Verification complete: Yes/No
|
|
122
|
-
- Must-haves verified: N of M
|
|
123
|
-
- Tests passing: Yes/No
|
|
124
|
-
- User accepted: Yes/No
|
|
125
|
-
|
|
126
|
-
## Quick Actions
|
|
127
|
-
|
|
128
|
-
From status view, you can:
|
|
129
|
-
- `/goop-plan [intent]` - Start planning
|
|
130
|
-
- `/goop-research` - Begin research
|
|
131
|
-
- `/goop-specify` - Lock specification
|
|
132
|
-
- `/goop-execute` - Continue execution
|
|
133
|
-
- `/goop-accept` - Verify completion
|
|
134
|
-
- `/goop-pause` - Save checkpoint
|
|
135
|
-
- `/goop-resume` - Resume from checkpoint
|
|
136
|
-
|
|
137
|
-
## Verbose Mode
|
|
138
|
-
|
|
139
|
-
For detailed status:
|
|
140
|
-
|
|
141
|
-
```
|
|
142
|
-
/goop-status --verbose
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
Shows additional information:
|
|
146
|
-
- Full task list with commit hashes
|
|
147
|
-
- All deviations with details
|
|
148
|
-
- Complete checkpoint history
|
|
149
|
-
- Memory entries related to current work
|
|
150
|
-
|
|
151
|
-
---
|
|
152
|
-
|
|
153
|
-
**GoopSpec**: Know exactly where you stand.
|
|
50
|
+
## Flags
|
|
51
|
+
- `--verbose`: Show full task history, memory stats, and recent deviations.
|