gsd-opencode 1.3.33 → 1.4.2
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/LICENSE +21 -0
- package/command/gsd/add-phase.md +3 -3
- package/command/gsd/add-todo.md +182 -0
- package/command/gsd/check-todos.md +217 -0
- package/command/gsd/complete-milestone.md +4 -3
- package/command/gsd/consider-issues.md +5 -5
- package/command/gsd/create-roadmap.md +4 -4
- package/command/gsd/debug.md +58 -0
- package/command/gsd/discuss-phase.md +3 -4
- package/command/gsd/execute-phase.md +137 -0
- package/command/gsd/execute-plan.md +70 -95
- package/command/gsd/help.md +83 -6
- package/command/gsd/insert-phase.md +16 -16
- package/command/gsd/list-phase-assumptions.md +8 -8
- package/command/gsd/map-codebase.md +11 -11
- package/command/gsd/new-milestone.md +1 -1
- package/command/gsd/new-project.md +26 -7
- package/command/gsd/pause-work.md +4 -3
- package/command/gsd/plan-fix.md +8 -8
- package/command/gsd/plan-phase.md +9 -9
- package/command/gsd/progress.md +20 -11
- package/command/gsd/remove-phase.md +15 -15
- package/command/gsd/research-phase.md +10 -10
- package/command/gsd/resume-work.md +4 -5
- package/command/gsd/status.md +127 -0
- package/command/gsd/verify-work.md +8 -8
- package/get-shit-done/references/continuation-format.md +8 -8
- package/get-shit-done/references/debugging/debugging-mindset.md +253 -0
- package/get-shit-done/references/debugging/hypothesis-testing.md +373 -0
- package/get-shit-done/references/debugging/investigation-techniques.md +337 -0
- package/get-shit-done/references/debugging/verification-patterns.md +425 -0
- package/get-shit-done/references/debugging/when-to-research.md +361 -0
- package/get-shit-done/references/plan-format.md +68 -21
- package/get-shit-done/references/questioning.md +12 -12
- package/get-shit-done/references/research-pitfalls.md +2 -2
- package/get-shit-done/references/scope-estimation.md +95 -11
- package/get-shit-done/templates/DEBUG.md +159 -0
- package/get-shit-done/templates/agent-history.md +263 -0
- package/get-shit-done/templates/checkpoint-return.md +204 -0
- package/get-shit-done/templates/codebase/architecture.md +4 -4
- package/get-shit-done/templates/codebase/concerns.md +1 -1
- package/get-shit-done/templates/codebase/structure.md +11 -11
- package/get-shit-done/templates/config.json +8 -0
- package/get-shit-done/templates/context.md +0 -21
- package/get-shit-done/templates/continuation-prompt.md +235 -0
- package/get-shit-done/templates/milestone-archive.md +1 -1
- package/get-shit-done/templates/phase-prompt.md +289 -129
- package/get-shit-done/templates/roadmap.md +1 -1
- package/get-shit-done/templates/state.md +11 -0
- package/get-shit-done/templates/subagent-task-prompt.md +95 -0
- package/get-shit-done/templates/summary.md +2 -2
- package/get-shit-done/workflows/_archive/execute-phase.md +899 -0
- package/get-shit-done/workflows/complete-milestone.md +1 -1
- package/get-shit-done/workflows/create-milestone.md +1 -1
- package/get-shit-done/workflows/create-roadmap.md +2 -2
- package/get-shit-done/workflows/debug.md +426 -0
- package/get-shit-done/workflows/discovery-phase.md +1 -1
- package/get-shit-done/workflows/discuss-milestone.md +6 -6
- package/get-shit-done/workflows/discuss-phase.md +12 -22
- package/get-shit-done/workflows/execute-phase.md +272 -1504
- package/get-shit-done/workflows/execute-plan.md +1813 -0
- package/get-shit-done/workflows/map-codebase.md +9 -9
- package/get-shit-done/workflows/plan-phase.md +262 -49
- package/get-shit-done/workflows/resume-project.md +28 -2
- package/get-shit-done/workflows/transition.md +4 -4
- package/get-shit-done/workflows/verify-work.md +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# Checkpoint Return Template
|
|
2
|
+
|
|
3
|
+
Structured format for subagent checkpoint returns. Enables orchestrator to spawn continuation agents without relying on resume.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Template
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
## CHECKPOINT REACHED
|
|
11
|
+
|
|
12
|
+
**Type:** [human-verify | decision | human-action]
|
|
13
|
+
**Plan:** {phase}-{plan}
|
|
14
|
+
**Progress:** {completed}/{total} tasks complete
|
|
15
|
+
|
|
16
|
+
### Completed Tasks
|
|
17
|
+
|
|
18
|
+
| Task | Name | Commit | Files |
|
|
19
|
+
|------|------|--------|-------|
|
|
20
|
+
| 1 | [task name] | [hash] | [key files created/modified] |
|
|
21
|
+
| 2 | [task name] | [hash] | [key files created/modified] |
|
|
22
|
+
|
|
23
|
+
### Current Task
|
|
24
|
+
|
|
25
|
+
**Task {N}:** [task name]
|
|
26
|
+
**Status:** [blocked | awaiting verification | awaiting decision]
|
|
27
|
+
**Blocked by:** [specific blocker - auth required, user verification needed, decision needed]
|
|
28
|
+
|
|
29
|
+
### Checkpoint Details
|
|
30
|
+
|
|
31
|
+
[Checkpoint-specific content based on type - see below]
|
|
32
|
+
|
|
33
|
+
### Awaiting
|
|
34
|
+
|
|
35
|
+
[What user needs to do/provide]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Checkpoint Type Details
|
|
41
|
+
|
|
42
|
+
### For human-verify
|
|
43
|
+
|
|
44
|
+
```markdown
|
|
45
|
+
### Checkpoint Details
|
|
46
|
+
|
|
47
|
+
**What was built:**
|
|
48
|
+
[Description of completed work]
|
|
49
|
+
|
|
50
|
+
**How to verify:**
|
|
51
|
+
1. [Step 1 - exact command/URL]
|
|
52
|
+
2. [Step 2 - what to check]
|
|
53
|
+
3. [Step 3 - expected behavior]
|
|
54
|
+
|
|
55
|
+
### Awaiting
|
|
56
|
+
|
|
57
|
+
Type "approved" or describe issues to fix.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### For human-action
|
|
61
|
+
|
|
62
|
+
```markdown
|
|
63
|
+
### Checkpoint Details
|
|
64
|
+
|
|
65
|
+
**Automation attempted:**
|
|
66
|
+
[What Claude tried to do]
|
|
67
|
+
|
|
68
|
+
**Error encountered:**
|
|
69
|
+
[Exact error message or auth failure]
|
|
70
|
+
|
|
71
|
+
**What you need to do:**
|
|
72
|
+
1. [Step 1]
|
|
73
|
+
2. [Step 2]
|
|
74
|
+
|
|
75
|
+
**I'll verify after:**
|
|
76
|
+
[How Claude will confirm completion]
|
|
77
|
+
|
|
78
|
+
### Awaiting
|
|
79
|
+
|
|
80
|
+
Type "done" when complete.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### For decision
|
|
84
|
+
|
|
85
|
+
```markdown
|
|
86
|
+
### Checkpoint Details
|
|
87
|
+
|
|
88
|
+
**Decision needed:**
|
|
89
|
+
[What's being decided]
|
|
90
|
+
|
|
91
|
+
**Context:**
|
|
92
|
+
[Why this matters]
|
|
93
|
+
|
|
94
|
+
**Options:**
|
|
95
|
+
|
|
96
|
+
| Option | Pros | Cons |
|
|
97
|
+
|--------|------|------|
|
|
98
|
+
| [option-a] | [benefits] | [tradeoffs] |
|
|
99
|
+
| [option-b] | [benefits] | [tradeoffs] |
|
|
100
|
+
|
|
101
|
+
### Awaiting
|
|
102
|
+
|
|
103
|
+
Select: [option-a | option-b | ...]
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Why This Structure
|
|
109
|
+
|
|
110
|
+
**Completed Tasks table:** Orchestrator knows exactly what's done. Fresh agent won't redo work.
|
|
111
|
+
|
|
112
|
+
**Commit hashes:** Verification that work was committed. Fresh agent can check git log.
|
|
113
|
+
|
|
114
|
+
**Files column:** Quick reference for what exists. Fresh agent can verify state.
|
|
115
|
+
|
|
116
|
+
**Current Task + Blocked by:** Precise continuation point. Fresh agent knows exactly where to pick up.
|
|
117
|
+
|
|
118
|
+
**Checkpoint Details:** User-facing content. Orchestrator presents this directly.
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Example: Auth Gate
|
|
123
|
+
|
|
124
|
+
```markdown
|
|
125
|
+
## CHECKPOINT REACHED
|
|
126
|
+
|
|
127
|
+
**Type:** human-action
|
|
128
|
+
**Plan:** 01-01
|
|
129
|
+
**Progress:** 1/3 tasks complete
|
|
130
|
+
|
|
131
|
+
### Completed Tasks
|
|
132
|
+
|
|
133
|
+
| Task | Name | Commit | Files |
|
|
134
|
+
|------|------|--------|-------|
|
|
135
|
+
| 1 | Initialize Next.js 15 project | d6fe73f | package.json, tsconfig.json, next.config.js, app/ |
|
|
136
|
+
|
|
137
|
+
### Current Task
|
|
138
|
+
|
|
139
|
+
**Task 2:** Initialize Convex backend
|
|
140
|
+
**Status:** blocked
|
|
141
|
+
**Blocked by:** Convex CLI authentication required
|
|
142
|
+
|
|
143
|
+
### Checkpoint Details
|
|
144
|
+
|
|
145
|
+
**Automation attempted:**
|
|
146
|
+
Ran `npx convex dev` to initialize Convex backend
|
|
147
|
+
|
|
148
|
+
**Error encountered:**
|
|
149
|
+
"Error: Not authenticated. Run `npx convex login` first."
|
|
150
|
+
|
|
151
|
+
**What you need to do:**
|
|
152
|
+
1. Run: `npx convex login`
|
|
153
|
+
2. Complete browser authentication
|
|
154
|
+
3. Run: `npx convex dev`
|
|
155
|
+
4. Create project named "convex-saas-community" when prompted
|
|
156
|
+
|
|
157
|
+
**I'll verify after:**
|
|
158
|
+
`cat .env.local | grep CONVEX` returns the Convex URL
|
|
159
|
+
|
|
160
|
+
### Awaiting
|
|
161
|
+
|
|
162
|
+
Type "done" when Convex is authenticated and project created.
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Example: Visual Verification
|
|
168
|
+
|
|
169
|
+
```markdown
|
|
170
|
+
## CHECKPOINT REACHED
|
|
171
|
+
|
|
172
|
+
**Type:** human-verify
|
|
173
|
+
**Plan:** 03-02
|
|
174
|
+
**Progress:** 2/3 tasks complete
|
|
175
|
+
|
|
176
|
+
### Completed Tasks
|
|
177
|
+
|
|
178
|
+
| Task | Name | Commit | Files |
|
|
179
|
+
|------|------|--------|-------|
|
|
180
|
+
| 1 | Create dashboard layout | a1b2c3d | src/app/dashboard/layout.tsx, src/components/Sidebar.tsx |
|
|
181
|
+
| 2 | Add responsive navigation | e4f5g6h | src/components/NavBar.tsx, src/styles/nav.css |
|
|
182
|
+
|
|
183
|
+
### Current Task
|
|
184
|
+
|
|
185
|
+
**Task 3:** Verify responsive behavior
|
|
186
|
+
**Status:** awaiting verification
|
|
187
|
+
**Blocked by:** Human visual verification required
|
|
188
|
+
|
|
189
|
+
### Checkpoint Details
|
|
190
|
+
|
|
191
|
+
**What was built:**
|
|
192
|
+
Responsive dashboard with collapsible sidebar navigation
|
|
193
|
+
|
|
194
|
+
**How to verify:**
|
|
195
|
+
1. Run: `npm run dev`
|
|
196
|
+
2. Visit: http://localhost:3000/dashboard
|
|
197
|
+
3. Desktop (>1024px): Sidebar visible on left, content on right
|
|
198
|
+
4. Tablet (768px): Sidebar collapses to icons
|
|
199
|
+
5. Mobile (375px): Sidebar hidden, hamburger menu appears
|
|
200
|
+
|
|
201
|
+
### Awaiting
|
|
202
|
+
|
|
203
|
+
Type "approved" or describe issues to fix.
|
|
204
|
+
```
|
|
@@ -124,7 +124,7 @@ Template for `.planning/codebase/ARCHITECTURE.md` - captures conceptual code org
|
|
|
124
124
|
**Command Layer:**
|
|
125
125
|
- Purpose: Parse user input and route to appropriate handler
|
|
126
126
|
- Contains: Command definitions, argument parsing, help text
|
|
127
|
-
- Location: `src/
|
|
127
|
+
- Location: `src/command/*.ts`
|
|
128
128
|
- Depends on: Service layer for business logic
|
|
129
129
|
- Used by: CLI entry point (`src/index.ts`)
|
|
130
130
|
|
|
@@ -148,7 +148,7 @@ Template for `.planning/codebase/ARCHITECTURE.md` - captures conceptual code org
|
|
|
148
148
|
|
|
149
149
|
1. User runs: `gsd new-project`
|
|
150
150
|
2. Commander parses args and flags
|
|
151
|
-
3. Command handler invoked (`src/
|
|
151
|
+
3. Command handler invoked (`src/command/new-project.ts`)
|
|
152
152
|
4. Handler calls service methods (`src/services/project.ts` → `create()`)
|
|
153
153
|
5. Service reads templates, processes files, writes output
|
|
154
154
|
6. Results logged to console
|
|
@@ -168,7 +168,7 @@ Template for `.planning/codebase/ARCHITECTURE.md` - captures conceptual code org
|
|
|
168
168
|
|
|
169
169
|
**Command:**
|
|
170
170
|
- Purpose: CLI command definition
|
|
171
|
-
- Examples: `src/
|
|
171
|
+
- Examples: `src/command/new-project.ts`, `src/command/plan-phase.ts`
|
|
172
172
|
- Pattern: Commander.js command registration
|
|
173
173
|
|
|
174
174
|
**Template:**
|
|
@@ -184,7 +184,7 @@ Template for `.planning/codebase/ARCHITECTURE.md` - captures conceptual code org
|
|
|
184
184
|
- Responsibilities: Register commands, parse args, display help
|
|
185
185
|
|
|
186
186
|
**Commands:**
|
|
187
|
-
- Location: `src/
|
|
187
|
+
- Location: `src/command/*.ts`
|
|
188
188
|
- Triggers: Matched command from CLI
|
|
189
189
|
- Responsibilities: Validate input, call services, format output
|
|
190
190
|
|
|
@@ -306,5 +306,5 @@ Template for `.planning/codebase/CONCERNS.md` - captures known issues and areas
|
|
|
306
306
|
- Planning refactoring work
|
|
307
307
|
|
|
308
308
|
**How this gets populated:**
|
|
309
|
-
|
|
309
|
+
explore agents detect these during codebase mapping. Manual additions welcome for human-discovered issues. This is living documentation, not a complaint list.
|
|
310
310
|
</guidelines>
|
|
@@ -125,7 +125,7 @@ Template for `.planning/codebase/STRUCTURE.md` - captures physical file organiza
|
|
|
125
125
|
```
|
|
126
126
|
get-shit-done/
|
|
127
127
|
├── bin/ # Executable entry points
|
|
128
|
-
├──
|
|
128
|
+
├── command/ # Slash command definitions
|
|
129
129
|
│ └── gsd/ # GSD-specific commands
|
|
130
130
|
├── get-shit-done/ # Skill resources
|
|
131
131
|
│ ├── references/ # Principle documents
|
|
@@ -145,8 +145,8 @@ get-shit-done/
|
|
|
145
145
|
- Key files: install.js - handles npx installation
|
|
146
146
|
- Subdirectories: None
|
|
147
147
|
|
|
148
|
-
**
|
|
149
|
-
- Purpose: Slash command definitions for
|
|
148
|
+
**command/gsd/**
|
|
149
|
+
- Purpose: Slash command definitions for OpenCode
|
|
150
150
|
- Contains: *.md files (one per command)
|
|
151
151
|
- Key files: new-project.md, plan-phase.md, execute-plan.md
|
|
152
152
|
- Subdirectories: None (flat structure)
|
|
@@ -166,7 +166,7 @@ get-shit-done/
|
|
|
166
166
|
**get-shit-done/workflows/**
|
|
167
167
|
- Purpose: Reusable multi-step procedures
|
|
168
168
|
- Contains: Workflow definitions called by commands
|
|
169
|
-
- Key files: execute-
|
|
169
|
+
- Key files: execute-plan.md, research-phase.md
|
|
170
170
|
- Subdirectories: None
|
|
171
171
|
|
|
172
172
|
## Key File Locations
|
|
@@ -186,7 +186,7 @@ get-shit-done/
|
|
|
186
186
|
|
|
187
187
|
**Documentation:**
|
|
188
188
|
- `README.md` - User-facing installation and usage guide
|
|
189
|
-
- `CLAUDE.md` - Instructions for
|
|
189
|
+
- `CLAUDE.md` - Instructions for OpenCode when working in this repo
|
|
190
190
|
|
|
191
191
|
## Naming Conventions
|
|
192
192
|
|
|
@@ -197,7 +197,7 @@ get-shit-done/
|
|
|
197
197
|
|
|
198
198
|
**Directories:**
|
|
199
199
|
- kebab-case: All directories
|
|
200
|
-
- Plural for collections: templates/,
|
|
200
|
+
- Plural for collections: templates/, command/, workflows/
|
|
201
201
|
|
|
202
202
|
**Special Patterns:**
|
|
203
203
|
- {command-name}.md: Slash command definition
|
|
@@ -206,8 +206,8 @@ get-shit-done/
|
|
|
206
206
|
## Where to Add New Code
|
|
207
207
|
|
|
208
208
|
**New Slash Command:**
|
|
209
|
-
- Primary code: `
|
|
210
|
-
- Tests: `tests/
|
|
209
|
+
- Primary code: `command/gsd/{command-name}.md`
|
|
210
|
+
- Tests: `tests/command/{command-name}.test.js` (if testing implemented)
|
|
211
211
|
- Documentation: Update `README.md` with new command
|
|
212
212
|
|
|
213
213
|
**New Template:**
|
|
@@ -220,7 +220,7 @@ get-shit-done/
|
|
|
220
220
|
|
|
221
221
|
**New Reference Document:**
|
|
222
222
|
- Implementation: `get-shit-done/references/{name}.md`
|
|
223
|
-
- Usage: Reference from
|
|
223
|
+
- Usage: Reference from command/workflows as needed
|
|
224
224
|
|
|
225
225
|
**Utilities:**
|
|
226
226
|
- No utilities yet (`install.js` is monolithic)
|
|
@@ -233,8 +233,8 @@ get-shit-done/
|
|
|
233
233
|
- Source: Copied by bin/install.js during installation
|
|
234
234
|
- Committed: Yes (source of truth)
|
|
235
235
|
|
|
236
|
-
**
|
|
237
|
-
- Purpose: Slash commands installed to ~/.config/opencode/
|
|
236
|
+
**command/**
|
|
237
|
+
- Purpose: Slash commands installed to ~/.config/opencode/command/
|
|
238
238
|
- Source: Copied by bin/install.js during installation
|
|
239
239
|
- Committed: Yes (source of truth)
|
|
240
240
|
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mode": "interactive",
|
|
3
3
|
"depth": "standard",
|
|
4
|
+
"parallelization": {
|
|
5
|
+
"enabled": true,
|
|
6
|
+
"plan_level": true,
|
|
7
|
+
"task_level": false,
|
|
8
|
+
"skip_checkpoints": true,
|
|
9
|
+
"max_concurrent_agents": 3,
|
|
10
|
+
"min_plans_for_parallel": 2
|
|
11
|
+
},
|
|
4
12
|
"gates": {
|
|
5
13
|
"confirm_project": true,
|
|
6
14
|
"confirm_phases": true,
|
|
@@ -32,17 +32,6 @@ Template for `.planning/phases/XX-name/{phase}-CONTEXT.md` - captures the user's
|
|
|
32
32
|
|
|
33
33
|
</essential>
|
|
34
34
|
|
|
35
|
-
<boundaries>
|
|
36
|
-
## What's Out of Scope
|
|
37
|
-
|
|
38
|
-
[Explicit exclusions for this phase. What are we NOT building? Where does this phase end and the next begin?]
|
|
39
|
-
|
|
40
|
-
- [Not doing X - that's Phase Y]
|
|
41
|
-
- [Not including Z - deferred]
|
|
42
|
-
- [Explicitly excluding W]
|
|
43
|
-
|
|
44
|
-
</boundaries>
|
|
45
|
-
|
|
46
35
|
<specifics>
|
|
47
36
|
## Specific Ideas
|
|
48
37
|
|
|
@@ -91,16 +80,6 @@ The main thing is seeing their active projects and what needs attention. Think o
|
|
|
91
80
|
|
|
92
81
|
</essential>
|
|
93
82
|
|
|
94
|
-
<boundaries>
|
|
95
|
-
## What's Out of Scope
|
|
96
|
-
|
|
97
|
-
- Team features (shared dashboards, permissions) - that's a future milestone
|
|
98
|
-
- Analytics/reporting - just show what needs attention, not graphs
|
|
99
|
-
- Customizable layouts - keep it simple, one good layout
|
|
100
|
-
- Mobile optimization - desktop first for now
|
|
101
|
-
|
|
102
|
-
</boundaries>
|
|
103
|
-
|
|
104
83
|
<specifics>
|
|
105
84
|
## Specific Ideas
|
|
106
85
|
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# Continuation Prompt Template
|
|
2
|
+
|
|
3
|
+
Template for spawning fresh agent to continue plan execution after checkpoint resolution.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Template
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
<objective>
|
|
11
|
+
Continue executing plan {plan_number} of phase {phase_number}-{phase_name}.
|
|
12
|
+
|
|
13
|
+
**DO NOT REDO completed tasks.** They are already committed. Start from the resume point below.
|
|
14
|
+
|
|
15
|
+
Commit each remaining task atomically. Create SUMMARY.md when all tasks complete. Update STATE.md.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<completed_tasks>
|
|
19
|
+
The following tasks are ALREADY DONE. Do not repeat them.
|
|
20
|
+
|
|
21
|
+
{completed_tasks_table}
|
|
22
|
+
|
|
23
|
+
**Verify before continuing:** Check that these commits exist with `git log --oneline -5`
|
|
24
|
+
</completed_tasks>
|
|
25
|
+
|
|
26
|
+
<resume_point>
|
|
27
|
+
**Resume from:** Task {resume_task_number} - {resume_task_name}
|
|
28
|
+
**Status:** {resume_status}
|
|
29
|
+
**User response:** {user_response}
|
|
30
|
+
|
|
31
|
+
{resume_instructions}
|
|
32
|
+
</resume_point>
|
|
33
|
+
|
|
34
|
+
<execution_context>
|
|
35
|
+
@~/.config/opencode/get-shit-done/workflows/execute-plan.md
|
|
36
|
+
@~/.config/opencode/get-shit-done/templates/summary.md
|
|
37
|
+
@~/.config/opencode/get-shit-done/references/checkpoints.md
|
|
38
|
+
@~/.config/opencode/get-shit-done/references/tdd.md
|
|
39
|
+
</execution_context>
|
|
40
|
+
|
|
41
|
+
<context>
|
|
42
|
+
Plan: @{plan_path}
|
|
43
|
+
Project state: @.planning/STATE.md
|
|
44
|
+
Config: @.planning/config.json (if exists)
|
|
45
|
+
</context>
|
|
46
|
+
|
|
47
|
+
<checkpoint_behavior>
|
|
48
|
+
If you hit another checkpoint, return using the format in:
|
|
49
|
+
@~/.config/opencode/get-shit-done/templates/checkpoint-return.md
|
|
50
|
+
|
|
51
|
+
Include ALL completed tasks (both previous and new) in the Completed Tasks table.
|
|
52
|
+
</checkpoint_behavior>
|
|
53
|
+
|
|
54
|
+
<completion_format>
|
|
55
|
+
When plan completes successfully, return:
|
|
56
|
+
|
|
57
|
+
## PLAN COMPLETE
|
|
58
|
+
|
|
59
|
+
**Plan:** {phase}-{plan}
|
|
60
|
+
**Tasks:** {total}/{total}
|
|
61
|
+
**SUMMARY:** {path to SUMMARY.md}
|
|
62
|
+
|
|
63
|
+
**Commits:**
|
|
64
|
+
- {hash}: {message}
|
|
65
|
+
...
|
|
66
|
+
|
|
67
|
+
Include commits from both previous execution and this continuation.
|
|
68
|
+
</completion_format>
|
|
69
|
+
|
|
70
|
+
<success_criteria>
|
|
71
|
+
- [ ] Verified previous commits exist (did not redo work)
|
|
72
|
+
- [ ] Remaining tasks executed
|
|
73
|
+
- [ ] Each new task committed individually
|
|
74
|
+
- [ ] SUMMARY.md created in plan directory (covers ALL tasks)
|
|
75
|
+
- [ ] STATE.md updated with position and decisions
|
|
76
|
+
</success_criteria>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Placeholders
|
|
82
|
+
|
|
83
|
+
| Placeholder | Source | Example |
|
|
84
|
+
|-------------|--------|---------|
|
|
85
|
+
| `{phase_number}` | Checkpoint return | `01` |
|
|
86
|
+
| `{phase_name}` | Checkpoint return | `foundation` |
|
|
87
|
+
| `{plan_number}` | Checkpoint return | `01` |
|
|
88
|
+
| `{plan_path}` | Original prompt | `.planning/phases/01-foundation/01-01-PLAN.md` |
|
|
89
|
+
| `{completed_tasks_table}` | Checkpoint return | Markdown table of completed tasks |
|
|
90
|
+
| `{resume_task_number}` | Checkpoint return | `2` |
|
|
91
|
+
| `{resume_task_name}` | Checkpoint return | `Initialize Convex backend` |
|
|
92
|
+
| `{resume_status}` | Derived from checkpoint type | `User completed authentication` |
|
|
93
|
+
| `{user_response}` | User input | `done` or `approved` or `option-a` |
|
|
94
|
+
| `{resume_instructions}` | Derived from checkpoint type | See below |
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Resume Instructions by Checkpoint Type
|
|
99
|
+
|
|
100
|
+
### After human-action (e.g., auth gate)
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
**Resume from:** Task 2 - Initialize Convex backend
|
|
104
|
+
**Status:** User completed authentication
|
|
105
|
+
**User response:** done
|
|
106
|
+
|
|
107
|
+
The user has completed the manual action. Verify it worked, then continue:
|
|
108
|
+
1. Verify: `cat .env.local | grep CONVEX` shows Convex URL
|
|
109
|
+
2. If verified: Continue with remaining Task 2 steps (if any), then Task 3
|
|
110
|
+
3. If not verified: Report what's missing, create new checkpoint
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### After human-verify (e.g., visual check)
|
|
114
|
+
|
|
115
|
+
```markdown
|
|
116
|
+
**Resume from:** Task 3 - Verify responsive behavior
|
|
117
|
+
**Status:** User approved verification
|
|
118
|
+
**User response:** approved
|
|
119
|
+
|
|
120
|
+
User confirmed the implementation is correct. Continue to next task.
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Or if issues reported:
|
|
124
|
+
|
|
125
|
+
```markdown
|
|
126
|
+
**Resume from:** Task 3 - Verify responsive behavior
|
|
127
|
+
**Status:** User reported issues
|
|
128
|
+
**User response:** "Sidebar overlaps content on tablet view"
|
|
129
|
+
|
|
130
|
+
Fix the reported issues:
|
|
131
|
+
1. Address: "Sidebar overlaps content on tablet view"
|
|
132
|
+
2. After fixing, re-present the verification checkpoint
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### After decision
|
|
136
|
+
|
|
137
|
+
```markdown
|
|
138
|
+
**Resume from:** Task 4 - Select authentication provider
|
|
139
|
+
**Status:** User made decision
|
|
140
|
+
**User response:** clerk
|
|
141
|
+
|
|
142
|
+
Proceed with the selected option (Clerk). Implement accordingly.
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Example: Continuation After Auth Gate
|
|
148
|
+
|
|
149
|
+
```markdown
|
|
150
|
+
<objective>
|
|
151
|
+
Continue executing plan 01 of phase 01-foundation.
|
|
152
|
+
|
|
153
|
+
**DO NOT REDO completed tasks.** They are already committed. Start from the resume point below.
|
|
154
|
+
|
|
155
|
+
Commit each remaining task atomically. Create SUMMARY.md when all tasks complete. Update STATE.md.
|
|
156
|
+
</objective>
|
|
157
|
+
|
|
158
|
+
<completed_tasks>
|
|
159
|
+
The following tasks are ALREADY DONE. Do not repeat them.
|
|
160
|
+
|
|
161
|
+
| Task | Name | Commit | Files |
|
|
162
|
+
|------|------|--------|-------|
|
|
163
|
+
| 1 | Initialize Next.js 15 project | d6fe73f | package.json, tsconfig.json, next.config.js, app/ |
|
|
164
|
+
|
|
165
|
+
**Verify before continuing:** Check that these commits exist with `git log --oneline -5`
|
|
166
|
+
</completed_tasks>
|
|
167
|
+
|
|
168
|
+
<resume_point>
|
|
169
|
+
**Resume from:** Task 2 - Initialize Convex backend
|
|
170
|
+
**Status:** User completed authentication
|
|
171
|
+
**User response:** done
|
|
172
|
+
|
|
173
|
+
The user has completed the manual action. Verify it worked, then continue:
|
|
174
|
+
1. Verify: `cat .env.local | grep CONVEX` shows Convex URL
|
|
175
|
+
2. If verified: Continue with remaining Task 2 steps (create schema, verify deployment), then Task 3
|
|
176
|
+
3. If not verified: Report what's missing, create new checkpoint
|
|
177
|
+
</resume_point>
|
|
178
|
+
|
|
179
|
+
<execution_context>
|
|
180
|
+
@~/.config/opencode/get-shit-done/workflows/execute-plan.md
|
|
181
|
+
@~/.config/opencode/get-shit-done/templates/summary.md
|
|
182
|
+
@~/.config/opencode/get-shit-done/references/checkpoints.md
|
|
183
|
+
@~/.config/opencode/get-shit-done/references/tdd.md
|
|
184
|
+
</execution_context>
|
|
185
|
+
|
|
186
|
+
<context>
|
|
187
|
+
Plan: @.planning/phases/01-foundation/01-01-PLAN.md
|
|
188
|
+
Project state: @.planning/STATE.md
|
|
189
|
+
</context>
|
|
190
|
+
|
|
191
|
+
<checkpoint_behavior>
|
|
192
|
+
If you hit another checkpoint, return using the format in:
|
|
193
|
+
@~/.config/opencode/get-shit-done/templates/checkpoint-return.md
|
|
194
|
+
|
|
195
|
+
Include ALL completed tasks (both previous and new) in the Completed Tasks table.
|
|
196
|
+
</checkpoint_behavior>
|
|
197
|
+
|
|
198
|
+
<completion_format>
|
|
199
|
+
When plan completes successfully, return:
|
|
200
|
+
|
|
201
|
+
## PLAN COMPLETE
|
|
202
|
+
|
|
203
|
+
**Plan:** 01-01
|
|
204
|
+
**Tasks:** 3/3
|
|
205
|
+
**SUMMARY:** .planning/phases/01-foundation/01-01-SUMMARY.md
|
|
206
|
+
|
|
207
|
+
**Commits:**
|
|
208
|
+
- d6fe73f: feat(01-01): initialize Next.js 15 with TypeScript and Tailwind
|
|
209
|
+
- [new]: feat(01-01): initialize Convex backend with schema
|
|
210
|
+
- [new]: feat(01-01): integrate Clerk authentication
|
|
211
|
+
</completion_format>
|
|
212
|
+
|
|
213
|
+
<success_criteria>
|
|
214
|
+
- [ ] Verified previous commits exist (did not redo work)
|
|
215
|
+
- [ ] Remaining tasks executed
|
|
216
|
+
- [ ] Each new task committed individually
|
|
217
|
+
- [ ] SUMMARY.md created in plan directory (covers ALL tasks)
|
|
218
|
+
- [ ] STATE.md updated with position and decisions
|
|
219
|
+
</success_criteria>
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## Usage
|
|
225
|
+
|
|
226
|
+
Orchestrator fills placeholders from checkpoint return and user response:
|
|
227
|
+
|
|
228
|
+
```python
|
|
229
|
+
Task(
|
|
230
|
+
prompt=filled_continuation_template,
|
|
231
|
+
subagent_type="general"
|
|
232
|
+
)
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Fresh agent loads @-references, verifies completed work, continues from resume point.
|