opencodekit 0.13.0 → 0.13.1
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 +2 -2
- package/dist/index.js +1 -1
- package/dist/template/.opencode/README.md +2 -2
- package/dist/template/.opencode/command/implement.md +195 -39
- package/dist/template/.opencode/command/new-feature.md +229 -188
- package/dist/template/.opencode/command/plan.md +354 -82
- package/dist/template/.opencode/command/research.md +29 -2
- package/dist/template/.opencode/command/start.md +125 -4
- package/dist/template/.opencode/memory/project/beads-workflow.md +274 -42
- package/dist/template/.opencode/opencode.json +511 -557
- package/dist/template/.opencode/skill/source-code-research/SKILL.md +537 -0
- package/package.json +1 -1
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Create a new feature with discovery, spec, plan, and sub-tasks
|
|
3
|
-
argument-hint: "<feature-name> [--priority=<0-4>] [--type=<type>] [--
|
|
3
|
+
argument-hint: "<feature-name> [--priority=<0-4>] [--type=<type>] [--worktree] [--quick]"
|
|
4
4
|
agent: planner
|
|
5
|
-
model: proxypal/gemini-3-flash-preview
|
|
6
5
|
---
|
|
7
6
|
|
|
8
7
|
# New Feature: $ARGUMENTS
|
|
9
8
|
|
|
10
|
-
Create a complete feature track with
|
|
9
|
+
Create a complete feature track with Epic → Task → Subtask hierarchy, proper worktree isolation, and subagent delegation.
|
|
11
10
|
|
|
12
|
-
## Load
|
|
11
|
+
## Load Skills
|
|
13
12
|
|
|
14
13
|
```typescript
|
|
15
14
|
skill({ name: "beads" });
|
|
15
|
+
skill({ name: "brainstorming" });
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
This skill provides Epic → Task → Subtask hierarchy for complex features.
|
|
19
|
-
|
|
20
18
|
## Parse Arguments
|
|
21
19
|
|
|
22
20
|
| Argument | Default | Options |
|
|
@@ -24,23 +22,67 @@ This skill provides Epic → Task → Subtask hierarchy for complex features.
|
|
|
24
22
|
| Feature name | required | Descriptive name |
|
|
25
23
|
| `--priority` | 2 | 0 (critical) to 4 (backlog) |
|
|
26
24
|
| `--type` | feature | feature, bug, refactor, chore |
|
|
27
|
-
| `--
|
|
25
|
+
| `--worktree` | false | Create git worktree for isolation |
|
|
28
26
|
| `--quick` | false | Skip brainstorming, use minimal spec |
|
|
29
27
|
|
|
30
28
|
---
|
|
31
29
|
|
|
30
|
+
## Hierarchy Model
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
Epic (feature-level)
|
|
34
|
+
├── Task 1 (domain or phase)
|
|
35
|
+
│ ├── Subtask 1.1 (atomic work unit)
|
|
36
|
+
│ └── Subtask 1.2
|
|
37
|
+
├── Task 2 (blocked by Task 1)
|
|
38
|
+
│ └── Subtask 2.1
|
|
39
|
+
└── Task 3 (blocked by Task 2)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
| Level | Scope | Typical Duration | Agent Work |
|
|
43
|
+
| ------- | ------------ | ---------------- | ------------------------- |
|
|
44
|
+
| Epic | Full feature | Days-weeks | Coordinate, not implement |
|
|
45
|
+
| Task | Domain/phase | Hours-day | May implement or delegate |
|
|
46
|
+
| Subtask | Atomic unit | 30min-2hrs | Implement directly |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
32
50
|
## Phase 1: Context Gathering
|
|
33
51
|
|
|
34
|
-
Before creating anything, understand
|
|
52
|
+
Before creating anything, understand the landscape.
|
|
35
53
|
|
|
36
|
-
|
|
54
|
+
### Parallel Subagent Research
|
|
37
55
|
|
|
38
|
-
|
|
56
|
+
```typescript
|
|
57
|
+
// Fire both in parallel - planner is read-only
|
|
58
|
+
Task({
|
|
59
|
+
subagent_type: "explore",
|
|
60
|
+
prompt: `Research codebase for "${$ARGUMENTS}":
|
|
61
|
+
1. Find similar implementations or patterns
|
|
62
|
+
2. Identify likely affected directories
|
|
63
|
+
3. Find existing tests in related areas
|
|
64
|
+
4. Check for related beads (open or closed)
|
|
65
|
+
Return: File paths, patterns, test locations, related beads`,
|
|
66
|
+
description: "Explore codebase for feature",
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
Task({
|
|
70
|
+
subagent_type: "scout",
|
|
71
|
+
prompt: `Research best practices for "${$ARGUMENTS}":
|
|
72
|
+
1. Industry patterns for this type of feature
|
|
73
|
+
2. Library/framework recommendations
|
|
74
|
+
3. Common pitfalls to avoid
|
|
75
|
+
Return: Recommendations, code examples, warnings`,
|
|
76
|
+
description: "Scout best practices",
|
|
77
|
+
});
|
|
78
|
+
```
|
|
39
79
|
|
|
40
|
-
|
|
41
|
-
lsp_lsp_workspace_symbols({ query: "[relevant-terms]" })
|
|
80
|
+
### Check Existing Work
|
|
42
81
|
|
|
43
|
-
|
|
82
|
+
```bash
|
|
83
|
+
bd list --status all --limit 20 | grep -i "[relevant-terms]"
|
|
84
|
+
git log --oneline -10 -- src/[relevant-path]/
|
|
85
|
+
```
|
|
44
86
|
|
|
45
87
|
**Report:**
|
|
46
88
|
|
|
@@ -48,25 +90,24 @@ lsp_lsp_workspace_symbols({ query: "[relevant-terms]" })
|
|
|
48
90
|
Context Analysis
|
|
49
91
|
━━━━━━━━━━━━━━━━
|
|
50
92
|
|
|
51
|
-
Related beads
|
|
93
|
+
Related beads:
|
|
52
94
|
- bd-abc123: "User auth system" (closed)
|
|
53
95
|
- bd-def456: "Session management" (in_progress)
|
|
54
96
|
|
|
55
|
-
|
|
56
|
-
- src/auth/
|
|
57
|
-
- src/
|
|
97
|
+
Codebase signals:
|
|
98
|
+
- Similar patterns in: src/auth/, src/api/
|
|
99
|
+
- Test patterns: src/__tests__/*.test.ts
|
|
100
|
+
- Recent activity: 3 commits this week
|
|
58
101
|
|
|
59
|
-
|
|
60
|
-
-
|
|
102
|
+
External research:
|
|
103
|
+
- [Key findings from scout]
|
|
61
104
|
```
|
|
62
105
|
|
|
63
106
|
---
|
|
64
107
|
|
|
65
108
|
## Phase 2: Brainstorming (unless --quick)
|
|
66
109
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Before filling templates, explore the problem space:
|
|
110
|
+
Before filling templates, explore the problem space.
|
|
70
111
|
|
|
71
112
|
### Discovery Questions
|
|
72
113
|
|
|
@@ -80,7 +121,7 @@ Ask the user (or infer from context):
|
|
|
80
121
|
6. **Dependencies**: What does this need to work?
|
|
81
122
|
7. **Scope**: What's explicitly NOT included?
|
|
82
123
|
|
|
83
|
-
###
|
|
124
|
+
### Present Options
|
|
84
125
|
|
|
85
126
|
```
|
|
86
127
|
Brainstorming: [Feature Name]
|
|
@@ -114,13 +155,17 @@ Proceed with spec? (yes/modify/explore-more)
|
|
|
114
155
|
bd create "[Feature Name]" -t epic -p [priority]
|
|
115
156
|
```
|
|
116
157
|
|
|
117
|
-
Capture the bead ID for artifact creation.
|
|
158
|
+
Capture the bead ID (e.g., `bd-a1b2c3`) for artifact creation.
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
mkdir -p .beads/artifacts/[bead-id]
|
|
162
|
+
```
|
|
118
163
|
|
|
119
164
|
---
|
|
120
165
|
|
|
121
166
|
## Phase 4: Create Specification
|
|
122
167
|
|
|
123
|
-
|
|
168
|
+
Write `.beads/artifacts/[bead-id]/spec.md`:
|
|
124
169
|
|
|
125
170
|
```markdown
|
|
126
171
|
# [Feature Name] Specification
|
|
@@ -166,21 +211,15 @@ Nice-to-have (P2):
|
|
|
166
211
|
- [Component 1]: [Change description]
|
|
167
212
|
- [Component 2]: [Change description]
|
|
168
213
|
|
|
169
|
-
###
|
|
214
|
+
### Files Affected
|
|
170
215
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
-
|
|
|
174
|
-
|
|
175
|
-
### Database Changes
|
|
176
|
-
|
|
177
|
-
- [ ] New table: [table_name]
|
|
178
|
-
- [ ] New column: [table.column]
|
|
179
|
-
- [ ] Migration needed: [yes/no]
|
|
216
|
+
| File | Change |
|
|
217
|
+
| --------- | -------------- |
|
|
218
|
+
| `src/...` | [What changes] |
|
|
180
219
|
|
|
181
220
|
### Dependencies
|
|
182
221
|
|
|
183
|
-
- External: [APIs, services]
|
|
222
|
+
- External: [APIs, services, libraries]
|
|
184
223
|
- Internal: [Other features, beads]
|
|
185
224
|
|
|
186
225
|
## Estimation
|
|
@@ -189,203 +228,207 @@ Nice-to-have (P2):
|
|
|
189
228
|
| ---------- | ----------- | ----------------- |
|
|
190
229
|
| [S/M/L/XL] | [X-Y hours] | [High/Medium/Low] |
|
|
191
230
|
|
|
192
|
-
Breakdown:
|
|
193
|
-
|
|
194
|
-
- Design: [X hours]
|
|
195
|
-
- Implementation: [X hours]
|
|
196
|
-
- Testing: [X hours]
|
|
197
|
-
- Documentation: [X hours]
|
|
198
|
-
|
|
199
231
|
## Risks
|
|
200
232
|
|
|
201
|
-
| Risk | Likelihood | Impact | Mitigation
|
|
202
|
-
| -------- | ---------- | ------ |
|
|
203
|
-
| [Risk 1] | Medium | High | [How to
|
|
204
|
-
| [Risk 2] | Low | Medium | [How to prevent/handle] |
|
|
233
|
+
| Risk | Likelihood | Impact | Mitigation |
|
|
234
|
+
| -------- | ---------- | ------ | --------------- |
|
|
235
|
+
| [Risk 1] | Medium | High | [How to handle] |
|
|
205
236
|
|
|
206
237
|
## Out of Scope
|
|
207
238
|
|
|
208
|
-
Explicitly NOT included in this feature:
|
|
209
|
-
|
|
210
239
|
- [Thing 1]
|
|
211
240
|
- [Thing 2]
|
|
212
241
|
|
|
213
242
|
## Success Metrics
|
|
214
243
|
|
|
215
|
-
How we'll measure success:
|
|
216
|
-
|
|
217
244
|
- [ ] [Metric 1]: [Target]
|
|
218
245
|
- [ ] [Metric 2]: [Target]
|
|
219
|
-
|
|
220
|
-
## Open Questions
|
|
221
|
-
|
|
222
|
-
- [ ] [Question that needs answering]
|
|
223
|
-
- [ ] [Question that needs answering]
|
|
224
246
|
```
|
|
225
247
|
|
|
226
248
|
---
|
|
227
249
|
|
|
228
|
-
## Phase 5:
|
|
250
|
+
## Phase 5: Create Task Breakdown
|
|
229
251
|
|
|
230
|
-
|
|
252
|
+
Decompose epic into tasks, tasks into subtasks.
|
|
231
253
|
|
|
232
|
-
|
|
233
|
-
Spec Validation
|
|
234
|
-
━━━━━━━━━━━━━━━
|
|
254
|
+
### Decomposition Rules
|
|
235
255
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
256
|
+
| Signal | Create Separate Task |
|
|
257
|
+
| --------------------------------------------- | -------------------- |
|
|
258
|
+
| Different domain (frontend vs backend) | Yes |
|
|
259
|
+
| Natural phase boundary | Yes |
|
|
260
|
+
| Could be done in parallel by different agents | Yes |
|
|
261
|
+
| Strong dependency chain | Yes, with blockers |
|
|
262
|
+
| Same file, same concern | No - keep together |
|
|
243
263
|
|
|
244
|
-
|
|
264
|
+
### Task Creation with Dependencies
|
|
245
265
|
|
|
246
|
-
|
|
266
|
+
```bash
|
|
267
|
+
# Phase 1: Foundation (no blockers - starts immediately)
|
|
268
|
+
bd create "Setup database schema" -t task -p 2
|
|
269
|
+
# Returns: bd-xxx1
|
|
270
|
+
|
|
271
|
+
# Phase 2: Core (blocked by Phase 1)
|
|
272
|
+
bd create "Implement core API endpoints" -t task -p 2
|
|
273
|
+
bd dep add bd-xxx2 bd-xxx1 --type blocks
|
|
274
|
+
# Returns: bd-xxx2
|
|
275
|
+
|
|
276
|
+
# Phase 3: Frontend (blocked by Phase 2)
|
|
277
|
+
bd create "Build UI components" -t task -p 2
|
|
278
|
+
bd dep add bd-xxx3 bd-xxx2 --type blocks
|
|
279
|
+
# Returns: bd-xxx3
|
|
280
|
+
|
|
281
|
+
# Phase 4: Integration (blocked by Phase 3)
|
|
282
|
+
bd create "Integration and E2E tests" -t task -p 2
|
|
283
|
+
bd dep add bd-xxx4 bd-xxx3 --type blocks
|
|
284
|
+
# Returns: bd-xxx4
|
|
285
|
+
|
|
286
|
+
# Link all tasks to epic
|
|
287
|
+
bd dep add bd-xxx1 [epic-id]
|
|
288
|
+
bd dep add bd-xxx2 [epic-id]
|
|
289
|
+
bd dep add bd-xxx3 [epic-id]
|
|
290
|
+
bd dep add bd-xxx4 [epic-id]
|
|
247
291
|
```
|
|
248
292
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
## Phase 6: Create Implementation Plan
|
|
293
|
+
### Subtask Creation (for complex tasks)
|
|
252
294
|
|
|
253
|
-
|
|
295
|
+
```bash
|
|
296
|
+
# For Task 2 (API endpoints), create subtasks:
|
|
297
|
+
bd create "POST /api/users endpoint" -t subtask -p 2
|
|
298
|
+
bd dep add bd-xxx2.1 bd-xxx2
|
|
254
299
|
|
|
255
|
-
|
|
256
|
-
|
|
300
|
+
bd create "GET /api/users/:id endpoint" -t subtask -p 2
|
|
301
|
+
bd dep add bd-xxx2.2 bd-xxx2
|
|
302
|
+
bd dep add bd-xxx2.2 bd-xxx2.1 --type blocks # Sequential if needed
|
|
303
|
+
```
|
|
257
304
|
|
|
258
|
-
|
|
305
|
+
### Verify Hierarchy
|
|
259
306
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
307
|
+
```bash
|
|
308
|
+
bd dep tree [epic-id]
|
|
309
|
+
```
|
|
263
310
|
|
|
264
|
-
|
|
311
|
+
Expected output:
|
|
265
312
|
|
|
266
|
-
|
|
267
|
-
|
|
313
|
+
```
|
|
314
|
+
bd-epic: [Feature Name]
|
|
315
|
+
├── bd-xxx1: Setup database schema ← READY
|
|
316
|
+
├── bd-xxx2: Implement core API (blocked by bd-xxx1)
|
|
317
|
+
│ ├── bd-xxx2.1: POST /api/users
|
|
318
|
+
│ └── bd-xxx2.2: GET /api/users/:id (blocked by bd-xxx2.1)
|
|
319
|
+
├── bd-xxx3: Build UI components (blocked by bd-xxx2)
|
|
320
|
+
└── bd-xxx4: Integration tests (blocked by bd-xxx3)
|
|
321
|
+
```
|
|
268
322
|
|
|
269
|
-
|
|
323
|
+
---
|
|
270
324
|
|
|
271
|
-
|
|
272
|
-
2. [ ] Create base API types
|
|
325
|
+
## Phase 6: Create Implementation Plan
|
|
273
326
|
|
|
274
|
-
|
|
327
|
+
Write `.beads/artifacts/[bead-id]/plan.md`:
|
|
275
328
|
|
|
276
|
-
|
|
329
|
+
```markdown
|
|
330
|
+
# [Feature Name] Implementation Plan
|
|
277
331
|
|
|
278
|
-
**
|
|
279
|
-
**
|
|
332
|
+
**Epic:** [bead-id]
|
|
333
|
+
**Estimated effort:** [X-Y hours total]
|
|
334
|
+
**Approach:** [Selected from brainstorming]
|
|
280
335
|
|
|
281
|
-
|
|
336
|
+
## Task 1: [Title] [S/M]
|
|
282
337
|
|
|
283
|
-
|
|
284
|
-
2
|
|
285
|
-
|
|
338
|
+
**Bead:** bd-xxx1
|
|
339
|
+
**Estimate:** 2-4 hours
|
|
340
|
+
**Blocked by:** None (start immediately)
|
|
286
341
|
|
|
287
|
-
|
|
342
|
+
Work:
|
|
288
343
|
|
|
289
|
-
|
|
344
|
+
- [ ] [Specific task]
|
|
345
|
+
- [ ] [Specific task]
|
|
290
346
|
|
|
291
|
-
|
|
292
|
-
**Depends on:** Phase 2
|
|
347
|
+
Verify: `[command to verify]`
|
|
293
348
|
|
|
294
|
-
|
|
349
|
+
---
|
|
295
350
|
|
|
296
|
-
|
|
297
|
-
2. [ ] Add error handling
|
|
298
|
-
3. [ ] Implement edge cases
|
|
351
|
+
## Task 2: [Title] [M]
|
|
299
352
|
|
|
300
|
-
**
|
|
353
|
+
**Bead:** bd-xxx2
|
|
354
|
+
**Estimate:** 4-6 hours
|
|
355
|
+
**Blocked by:** Task 1
|
|
301
356
|
|
|
302
|
-
|
|
357
|
+
Subtasks:
|
|
303
358
|
|
|
304
|
-
|
|
305
|
-
|
|
359
|
+
- bd-xxx2.1: [Subtask title]
|
|
360
|
+
- bd-xxx2.2: [Subtask title]
|
|
306
361
|
|
|
307
|
-
|
|
362
|
+
Work:
|
|
308
363
|
|
|
309
|
-
|
|
310
|
-
2. [ ] Write integration tests
|
|
311
|
-
3. [ ] Manual testing
|
|
312
|
-
4. [ ] Fix bugs found
|
|
364
|
+
- [ ] [Specific task]
|
|
313
365
|
|
|
314
|
-
|
|
366
|
+
Verify: `[command to verify]`
|
|
315
367
|
|
|
316
|
-
|
|
368
|
+
---
|
|
317
369
|
|
|
318
|
-
|
|
319
|
-
| ----------- | ------------- | -------------------- |
|
|
320
|
-
| Unit | Core logic | [specific modules] |
|
|
321
|
-
| Integration | API endpoints | [specific endpoints] |
|
|
322
|
-
| E2E | Critical path | [user flow] |
|
|
370
|
+
[Continue for all tasks...]
|
|
323
371
|
|
|
324
|
-
##
|
|
372
|
+
## Verification Checklist
|
|
325
373
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
5. [ ] Gradual rollout (10% → 50% → 100%)
|
|
374
|
+
- [ ] All acceptance criteria met
|
|
375
|
+
- [ ] Tests pass: `npm test`
|
|
376
|
+
- [ ] Types check: `npm run typecheck`
|
|
377
|
+
- [ ] Lint clean: `npm run lint`
|
|
331
378
|
|
|
332
379
|
## Rollback Plan
|
|
333
380
|
|
|
334
381
|
If issues detected:
|
|
335
382
|
|
|
336
|
-
1.
|
|
337
|
-
2.
|
|
338
|
-
3. Deploy previous version
|
|
339
|
-
4. Investigate and fix
|
|
340
|
-
|
|
341
|
-
## Definition of Done
|
|
342
|
-
|
|
343
|
-
- [ ] All acceptance criteria met
|
|
344
|
-
- [ ] Tests written and passing
|
|
345
|
-
- [ ] Code reviewed
|
|
346
|
-
- [ ] Documentation updated
|
|
347
|
-
- [ ] Feature flag configured
|
|
348
|
-
- [ ] Monitoring in place
|
|
383
|
+
1. [Step 1]
|
|
384
|
+
2. [Step 2]
|
|
349
385
|
```
|
|
350
386
|
|
|
351
387
|
---
|
|
352
388
|
|
|
353
|
-
## Phase 7:
|
|
389
|
+
## Phase 7: Worktree Setup (if --worktree)
|
|
390
|
+
|
|
391
|
+
For epic-level work, create an isolated workspace:
|
|
354
392
|
|
|
355
|
-
|
|
393
|
+
```typescript
|
|
394
|
+
skill({ name: "using-git-worktrees" });
|
|
395
|
+
```
|
|
356
396
|
|
|
357
397
|
```bash
|
|
358
|
-
#
|
|
359
|
-
|
|
360
|
-
bd dep add <task-id> <epic-id>
|
|
398
|
+
# Ensure .gitignore has worktree directory
|
|
399
|
+
grep -q "^\.worktrees/$" .gitignore || echo ".worktrees/" >> .gitignore
|
|
361
400
|
|
|
362
|
-
#
|
|
363
|
-
|
|
364
|
-
bd dep add <task-id> <epic-id>
|
|
365
|
-
bd dep add <task-id> <phase-1-bead-id>
|
|
401
|
+
# Create worktree for the epic
|
|
402
|
+
git worktree add .worktrees/[epic-id] -b feature/[feature-name]
|
|
366
403
|
|
|
367
|
-
#
|
|
404
|
+
# Setup in worktree
|
|
405
|
+
cd .worktrees/[epic-id]
|
|
406
|
+
npm install # or appropriate setup
|
|
407
|
+
|
|
408
|
+
# Verify clean baseline
|
|
409
|
+
npm test
|
|
368
410
|
```
|
|
369
411
|
|
|
412
|
+
**Worktree + Beads Integration:**
|
|
413
|
+
|
|
414
|
+
- `.beads/` database is shared (main repo)
|
|
415
|
+
- All `bd` commands work normally
|
|
416
|
+
- Commits go to the feature branch
|
|
417
|
+
- Merge back to main when epic complete
|
|
418
|
+
|
|
370
419
|
---
|
|
371
420
|
|
|
372
|
-
## Phase 8:
|
|
421
|
+
## Phase 8: Sync and Report
|
|
373
422
|
|
|
374
423
|
```bash
|
|
375
|
-
|
|
376
|
-
git checkout -b feature/[feature-name]
|
|
377
|
-
|
|
378
|
-
# Or with bead ID
|
|
379
|
-
git checkout -b feature/[bead-id]-[feature-name]
|
|
424
|
+
bd sync
|
|
380
425
|
```
|
|
381
426
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
## Output
|
|
427
|
+
**Output:**
|
|
385
428
|
|
|
386
429
|
```
|
|
387
430
|
Feature Created: [Feature Name]
|
|
388
|
-
|
|
431
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
389
432
|
|
|
390
433
|
Epic: [bead-id]
|
|
391
434
|
Priority: P[X]
|
|
@@ -395,50 +438,48 @@ Artifacts:
|
|
|
395
438
|
├── .beads/artifacts/[bead-id]/spec.md
|
|
396
439
|
└── .beads/artifacts/[bead-id]/plan.md
|
|
397
440
|
|
|
398
|
-
|
|
399
|
-
├── [task-id-1]:
|
|
400
|
-
├── [task-id-2]:
|
|
401
|
-
├── [
|
|
402
|
-
└── [
|
|
441
|
+
Hierarchy:
|
|
442
|
+
├── [task-id-1]: [Title] [S] ← READY
|
|
443
|
+
├── [task-id-2]: [Title] [M] → blocked by task-1
|
|
444
|
+
│ ├── [subtask-2.1]: [Title]
|
|
445
|
+
│ └── [subtask-2.2]: [Title]
|
|
446
|
+
├── [task-id-3]: [Title] [M] → blocked by task-2
|
|
447
|
+
└── [task-id-4]: [Title] [S] → blocked by task-3
|
|
403
448
|
|
|
404
|
-
|
|
449
|
+
Workspace: [main | worktree: .worktrees/[epic-id]]
|
|
405
450
|
|
|
406
451
|
Next Steps:
|
|
407
|
-
├──
|
|
408
|
-
├──
|
|
409
|
-
└── View
|
|
452
|
+
├── Start first task: /start [task-id-1]
|
|
453
|
+
├── View ready work: bd ready
|
|
454
|
+
└── View full tree: bd dep tree [epic-id]
|
|
410
455
|
```
|
|
411
456
|
|
|
412
457
|
---
|
|
413
458
|
|
|
414
459
|
## Quick Mode (--quick)
|
|
415
460
|
|
|
416
|
-
Skip brainstorming,
|
|
461
|
+
Skip brainstorming, minimal spec:
|
|
417
462
|
|
|
418
463
|
- No discovery questions
|
|
419
|
-
-
|
|
420
|
-
-
|
|
421
|
-
- No
|
|
464
|
+
- Single-paragraph spec
|
|
465
|
+
- Flat task list (no subtasks)
|
|
466
|
+
- No worktree
|
|
422
467
|
|
|
423
468
|
Use for: Small features, bug fixes, well-understood work.
|
|
424
469
|
|
|
425
470
|
---
|
|
426
471
|
|
|
427
|
-
##
|
|
428
|
-
|
|
429
|
-
| Size | Hours | Typical Scope |
|
|
430
|
-
| ---- | -------- | ---------------------------------------- |
|
|
431
|
-
| XS | 1-2 | Config change, typo fix |
|
|
432
|
-
| S | 2-4 | Simple feature, single file |
|
|
433
|
-
| M | 4-8 | Multi-file feature, some complexity |
|
|
434
|
-
| L | 1-3 days | Significant feature, multiple components |
|
|
435
|
-
| XL | 3-5 days | Major feature, architecture impact |
|
|
472
|
+
## Subagent Delegation Summary
|
|
436
473
|
|
|
437
|
-
|
|
474
|
+
| Phase | Subagent | Purpose |
|
|
475
|
+
| ------------------ | ---------- | -------------------------- |
|
|
476
|
+
| Context gathering | `@explore` | Find codebase patterns |
|
|
477
|
+
| Context gathering | `@scout` | Research best practices |
|
|
478
|
+
| Brainstorming | None | Interactive with user |
|
|
479
|
+
| Spec/Plan creation | None | Planner writes artifacts |
|
|
480
|
+
| Implementation | `@build` | `/start` then `/implement` |
|
|
438
481
|
|
|
439
|
-
|
|
440
|
-
- **Medium**: Some unknowns, general approach clear
|
|
441
|
-
- **Low**: Significant unknowns, may need spikes
|
|
482
|
+
**Key Rule:** Planner creates structure, Build executes work. Subagents research, leaders act.
|
|
442
483
|
|
|
443
484
|
---
|
|
444
485
|
|
|
@@ -446,8 +487,8 @@ Use for: Small features, bug fixes, well-understood work.
|
|
|
446
487
|
|
|
447
488
|
| Need | Command |
|
|
448
489
|
| -------------------- | --------------------------- |
|
|
449
|
-
| Start
|
|
450
|
-
| View feature status |
|
|
451
|
-
| Import
|
|
452
|
-
| Complete feature | `/finish <
|
|
453
|
-
|
|
|
490
|
+
| Start first task | `/start <task-id>` |
|
|
491
|
+
| View feature status | `bd dep tree <epic-id>` |
|
|
492
|
+
| Import external plan | `/import-plan` |
|
|
493
|
+
| Complete feature | `/finish <epic-id>` |
|
|
494
|
+
| Abandon feature | `/revert-feature <epic-id>` |
|