opencodekit 0.15.21 → 0.16.0
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/dist/index.js +5 -7
- package/dist/template/.opencode/AGENTS.md +21 -20
- package/dist/template/.opencode/agent/build.md +88 -7
- package/dist/template/.opencode/agent/explore.md +1 -1
- package/dist/template/.opencode/agent/general.md +54 -4
- package/dist/template/.opencode/agent/looker.md +1 -1
- package/dist/template/.opencode/agent/painter.md +1 -1
- package/dist/template/.opencode/agent/plan.md +52 -0
- package/dist/template/.opencode/agent/review.md +1 -1
- package/dist/template/.opencode/agent/scout.md +3 -3
- package/dist/template/.opencode/agent/vision.md +1 -1
- package/dist/template/.opencode/command/create.md +201 -95
- package/dist/template/.opencode/command/design.md +5 -7
- package/dist/template/.opencode/command/handoff.md +7 -0
- package/dist/template/.opencode/command/init.md +25 -47
- package/dist/template/.opencode/command/plan.md +35 -16
- package/dist/template/.opencode/command/resume.md +7 -18
- package/dist/template/.opencode/command/ship.md +156 -0
- package/dist/template/.opencode/command/start.md +315 -28
- package/dist/template/.opencode/command/ui-review.md +5 -7
- package/dist/template/.opencode/command/verify.md +279 -0
- package/dist/template/.opencode/memory/_templates/README.md +57 -19
- package/dist/template/.opencode/memory/_templates/prd.md +29 -0
- package/dist/template/.opencode/memory/_templates/project/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
- package/dist/template/.opencode/memory/_templates/spec.md +66 -0
- package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +31 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +25 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +40 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +42 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +31 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +23 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +50 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +26 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +29 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +28 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +43 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +22 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +27 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +35 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +15 -0
- package/dist/template/.opencode/memory/project/command-rules.md +122 -0
- package/dist/template/.opencode/memory/project/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
- package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
- package/dist/template/.opencode/opencode.json +916 -803
- package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
- package/package.json +1 -1
- package/dist/template/.opencode/command/accessibility-check.md +0 -331
- package/dist/template/.opencode/command/agent-browser.md +0 -21
- package/dist/template/.opencode/command/analyze-mockup.md +0 -423
- package/dist/template/.opencode/command/analyze-project.md +0 -295
- package/dist/template/.opencode/command/brainstorm.md +0 -373
- package/dist/template/.opencode/command/cloudflare.md +0 -70
- package/dist/template/.opencode/command/commit.md +0 -245
- package/dist/template/.opencode/command/complete-next-task.md +0 -77
- package/dist/template/.opencode/command/design-audit.md +0 -480
- package/dist/template/.opencode/command/edit-image.md +0 -242
- package/dist/template/.opencode/command/finish.md +0 -255
- package/dist/template/.opencode/command/fix-ci.md +0 -109
- package/dist/template/.opencode/command/fix-types.md +0 -104
- package/dist/template/.opencode/command/fix-ui.md +0 -117
- package/dist/template/.opencode/command/fix.md +0 -168
- package/dist/template/.opencode/command/frontend-design.md +0 -21
- package/dist/template/.opencode/command/generate-diagram.md +0 -349
- package/dist/template/.opencode/command/generate-icon.md +0 -283
- package/dist/template/.opencode/command/generate-image.md +0 -246
- package/dist/template/.opencode/command/generate-pattern.md +0 -247
- package/dist/template/.opencode/command/generate-storyboard.md +0 -250
- package/dist/template/.opencode/command/implement.md +0 -609
- package/dist/template/.opencode/command/import-plan.md +0 -406
- package/dist/template/.opencode/command/index-knowledge.md +0 -25
- package/dist/template/.opencode/command/integration-test.md +0 -424
- package/dist/template/.opencode/command/issue.md +0 -102
- package/dist/template/.opencode/command/new-feature.md +0 -651
- package/dist/template/.opencode/command/opensrc.md +0 -58
- package/dist/template/.opencode/command/quick-build.md +0 -238
- package/dist/template/.opencode/command/ralph.md +0 -41
- package/dist/template/.opencode/command/research-and-implement.md +0 -148
- package/dist/template/.opencode/command/research-ui.md +0 -466
- package/dist/template/.opencode/command/restore-image.md +0 -424
- package/dist/template/.opencode/command/revert-feature.md +0 -386
- package/dist/template/.opencode/command/skill-create.md +0 -517
- package/dist/template/.opencode/command/skill-optimize.md +0 -556
- package/dist/template/.opencode/command/summarize.md +0 -412
- package/dist/template/.opencode/command/triage.md +0 -398
- package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
- package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
- package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
- package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
- package/dist/template/.opencode/tool/notebooklm.ts +0 -488
- package/dist/template/.opencode/tool/oracle.ts +0 -240
|
@@ -1,171 +1,277 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Create a
|
|
3
|
-
argument-hint: "[
|
|
4
|
-
agent:
|
|
2
|
+
description: Create a specification for a bead using templates
|
|
3
|
+
argument-hint: "<bead-id> [--prd] [--proposal]"
|
|
4
|
+
agent: plan
|
|
5
|
+
subtask: true
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Create: $ARGUMENTS
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
Create structured artifacts for a bead using templates. This is the first step before planning.
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## Parse Arguments
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
| Argument | Default | Description |
|
|
15
|
+
| ------------ | -------- | ------------------------------------ |
|
|
16
|
+
| `<bead-id>` | required | The bead to create artifacts for |
|
|
17
|
+
| `--prd` | false | Use PRD template (combined format) |
|
|
18
|
+
| `--proposal` | false | Create proposal.md first (for epics) |
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
## Load Skills
|
|
16
21
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
1. What problem are we solving?
|
|
22
|
-
2. Bug, feature, or task?
|
|
23
|
-
3. What's the acceptance criteria?
|
|
24
|
-
4. Any constraints?
|
|
22
|
+
```typescript
|
|
23
|
+
skill({ name: "beads" });
|
|
24
|
+
skill({ name: "brainstorming" });
|
|
25
|
+
```
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
## Load Bead Context
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
```bash
|
|
30
|
+
bd show $ARGUMENTS
|
|
31
|
+
```
|
|
29
32
|
|
|
30
|
-
|
|
31
|
-
**Complex** (needs decomposition): Multiple domains, natural phases, hours of work
|
|
33
|
+
Check what artifacts already exist:
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
```bash
|
|
36
|
+
ls .beads/artifacts/$ARGUMENTS/ 2>/dev/null || echo "No artifacts yet"
|
|
37
|
+
```
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
---
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
## Phase 1: Setup Artifact Directory
|
|
38
42
|
|
|
39
43
|
```bash
|
|
40
|
-
|
|
44
|
+
BEAD_DIR=".beads/artifacts/$ARGUMENTS"
|
|
45
|
+
mkdir -p "$BEAD_DIR"
|
|
41
46
|
```
|
|
42
47
|
|
|
43
|
-
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Phase 2: Choose Template
|
|
51
|
+
|
|
52
|
+
Based on flags and bead type:
|
|
53
|
+
|
|
54
|
+
| Flag | Template Used | Best For |
|
|
55
|
+
| ------------ | ------------- | ----------------------------- |
|
|
56
|
+
| `--prd` | `prd.md` | Quick features, smaller scope |
|
|
57
|
+
| `--proposal` | `proposal.md` | Epics, major changes |
|
|
58
|
+
| (default) | `spec.md` | Standard task specifications |
|
|
59
|
+
|
|
60
|
+
### Copy Template
|
|
44
61
|
|
|
45
62
|
```bash
|
|
46
|
-
|
|
63
|
+
# Default: Copy spec template
|
|
64
|
+
cp .opencode/memory/_templates/spec.md "$BEAD_DIR/spec.md"
|
|
65
|
+
|
|
66
|
+
# If --prd flag
|
|
67
|
+
cp .opencode/memory/_templates/prd.md "$BEAD_DIR/prd.md"
|
|
68
|
+
|
|
69
|
+
# If --proposal flag (for epics)
|
|
70
|
+
cp .opencode/memory/_templates/proposal.md "$BEAD_DIR/proposal.md"
|
|
71
|
+
cp .opencode/memory/_templates/spec.md "$BEAD_DIR/spec.md"
|
|
47
72
|
```
|
|
48
73
|
|
|
49
|
-
|
|
74
|
+
---
|
|
50
75
|
|
|
51
|
-
|
|
52
|
-
|
|
76
|
+
## Phase 3: Gather Context for Spec
|
|
77
|
+
|
|
78
|
+
### Ask Clarifying Questions
|
|
79
|
+
|
|
80
|
+
Before writing the spec, understand what needs to be built:
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
question({
|
|
84
|
+
questions: [
|
|
85
|
+
{
|
|
86
|
+
header: "Scope",
|
|
87
|
+
question: "What should this feature do? Describe the core functionality.",
|
|
88
|
+
options: [], // Free text
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
header: "Users",
|
|
92
|
+
question: "Who will use this? (developers, end users, API consumers, etc.)",
|
|
93
|
+
options: [
|
|
94
|
+
{ label: "Developers", description: "Internal tooling or API" },
|
|
95
|
+
{ label: "End users", description: "Customer-facing feature" },
|
|
96
|
+
{ label: "Both", description: "Used by developers and users" },
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
header: "Constraints",
|
|
101
|
+
question: "Any constraints? (performance, compatibility, security)",
|
|
102
|
+
options: [], // Free text
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
});
|
|
53
106
|
```
|
|
54
107
|
|
|
55
|
-
|
|
108
|
+
### Research Existing Patterns (Optional)
|
|
56
109
|
|
|
57
|
-
|
|
58
|
-
|
|
110
|
+
If user provides enough context, delegate to explore agent:
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
Task({
|
|
114
|
+
subagent_type: "explore",
|
|
115
|
+
description: "Find similar patterns",
|
|
116
|
+
prompt: `Find patterns in codebase related to: [bead title/description]
|
|
117
|
+
- Similar implementations
|
|
118
|
+
- Existing conventions
|
|
119
|
+
- Test patterns used
|
|
120
|
+
Return: File paths and patterns found`,
|
|
121
|
+
});
|
|
59
122
|
```
|
|
60
123
|
|
|
61
|
-
|
|
124
|
+
---
|
|
62
125
|
|
|
63
|
-
|
|
126
|
+
## Phase 4: Fill In Template
|
|
64
127
|
|
|
65
|
-
|
|
128
|
+
### For spec.md (default)
|
|
66
129
|
|
|
67
|
-
|
|
68
|
-
# [Title]
|
|
130
|
+
Fill in the template with WHEN/THEN scenarios:
|
|
69
131
|
|
|
70
|
-
|
|
71
|
-
|
|
132
|
+
```markdown
|
|
133
|
+
# Specification
|
|
72
134
|
|
|
73
|
-
|
|
135
|
+
**Bead:** $ARGUMENTS
|
|
136
|
+
**Proposal:** N/A
|
|
137
|
+
**Date:** [today]
|
|
74
138
|
|
|
75
|
-
|
|
139
|
+
## Requirements
|
|
76
140
|
|
|
77
|
-
|
|
141
|
+
### [Requirement from user input]
|
|
78
142
|
|
|
79
|
-
|
|
80
|
-
- Verify: `[command]`
|
|
81
|
-
- [ ] [Criterion 2]
|
|
82
|
-
- Verify: `[command]`
|
|
143
|
+
Brief description of what must be true.
|
|
83
144
|
|
|
84
|
-
|
|
145
|
+
#### Scenarios
|
|
85
146
|
|
|
86
|
-
**
|
|
87
|
-
**
|
|
147
|
+
**WHEN** [user/system does action]
|
|
148
|
+
**THEN** [expected outcome]
|
|
88
149
|
|
|
89
|
-
|
|
150
|
+
**WHEN** [edge case condition]
|
|
151
|
+
**THEN** [expected behavior]
|
|
90
152
|
|
|
91
|
-
|
|
153
|
+
## Non-Functional Requirements
|
|
92
154
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
155
|
+
- **Performance:** [from constraints]
|
|
156
|
+
- **Security:** [from constraints]
|
|
157
|
+
- **Compatibility:** [from constraints]
|
|
95
158
|
|
|
96
|
-
##
|
|
159
|
+
## Out of Scope
|
|
97
160
|
|
|
98
|
-
[
|
|
161
|
+
- [Explicitly excluded capability]
|
|
99
162
|
```
|
|
100
163
|
|
|
101
|
-
|
|
164
|
+
### For prd.md (--prd flag)
|
|
102
165
|
|
|
103
|
-
|
|
104
|
-
# First task (no blockers)
|
|
105
|
-
bd create "[subtask 1]" -t task -p 2
|
|
166
|
+
Fill in the PRD template with goal, scope, and tasks:
|
|
106
167
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
bd dep add bd-[second] bd-[first] --type blocks
|
|
110
|
-
```
|
|
168
|
+
```markdown
|
|
169
|
+
# Beads PRD Template
|
|
111
170
|
|
|
112
|
-
|
|
171
|
+
**Bead:** $ARGUMENTS
|
|
172
|
+
**Created:** [today]
|
|
173
|
+
**Status:** Draft
|
|
113
174
|
|
|
114
|
-
|
|
175
|
+
## Goal
|
|
115
176
|
|
|
116
|
-
|
|
177
|
+
[From user input - what are we building and why]
|
|
117
178
|
|
|
118
|
-
|
|
179
|
+
## Scope
|
|
119
180
|
|
|
120
|
-
-
|
|
121
|
-
- Output: `.beads/artifacts/<bead-id>/prd.md`
|
|
181
|
+
### In-Scope
|
|
122
182
|
|
|
123
|
-
|
|
124
|
-
skill({ name: "prd" });
|
|
125
|
-
```
|
|
183
|
+
- [From user input]
|
|
126
184
|
|
|
127
|
-
|
|
185
|
+
### Out-of-Scope
|
|
128
186
|
|
|
129
|
-
|
|
187
|
+
- [Explicitly excluded]
|
|
130
188
|
|
|
131
|
-
|
|
132
|
-
|
|
189
|
+
## Success Criteria
|
|
190
|
+
|
|
191
|
+
- [ ] [Measurable criterion]
|
|
192
|
+
- Verify: `[command]`
|
|
193
|
+
|
|
194
|
+
## Tasks
|
|
195
|
+
|
|
196
|
+
### [Task Title] [category]
|
|
197
|
+
|
|
198
|
+
[End state description]
|
|
199
|
+
|
|
200
|
+
**Verification:**
|
|
201
|
+
|
|
202
|
+
- [Command or check]
|
|
133
203
|
```
|
|
134
204
|
|
|
135
|
-
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## Phase 5: Validate Spec
|
|
208
|
+
|
|
209
|
+
Before saving, validate the spec:
|
|
210
|
+
|
|
211
|
+
- [ ] All requirements have WHEN/THEN scenarios?
|
|
212
|
+
- [ ] Scenarios are testable (not vague)?
|
|
213
|
+
- [ ] Out of scope is defined?
|
|
214
|
+
- [ ] Non-functional requirements addressed?
|
|
215
|
+
|
|
216
|
+
If validation fails, ask user for missing information.
|
|
136
217
|
|
|
137
|
-
|
|
138
|
-
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Phase 6: Save and Report
|
|
139
221
|
|
|
140
|
-
|
|
222
|
+
Save the filled template to the bead artifacts folder.
|
|
141
223
|
|
|
142
224
|
```bash
|
|
143
|
-
|
|
225
|
+
# Verify file was created
|
|
226
|
+
cat "$BEAD_DIR/spec.md"
|
|
144
227
|
```
|
|
145
228
|
|
|
146
|
-
|
|
229
|
+
Update bead with note:
|
|
147
230
|
|
|
231
|
+
```bash
|
|
232
|
+
bd note $ARGUMENTS "Created spec.md with [N] requirements"
|
|
148
233
|
```
|
|
149
|
-
Created: bd-[id]
|
|
150
234
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Output
|
|
154
238
|
|
|
155
|
-
Next:
|
|
156
|
-
- `/start bd-[id]` (recommended)
|
|
157
|
-
- or `/implement bd-[id]` (direct implementation)
|
|
158
239
|
```
|
|
240
|
+
Created: $ARGUMENTS
|
|
241
|
+
━━━━━━━━━━━━━━━━━━━
|
|
159
242
|
|
|
160
|
-
|
|
243
|
+
Artifacts:
|
|
244
|
+
├── .beads/artifacts/$ARGUMENTS/spec.md [NEW]
|
|
245
|
+
└── .beads/artifacts/$ARGUMENTS/proposal.md [if --proposal]
|
|
161
246
|
|
|
247
|
+
Requirements: [N] defined
|
|
248
|
+
Scenarios: [N] WHEN/THEN pairs
|
|
249
|
+
|
|
250
|
+
Next: /research $ARGUMENTS (optional)
|
|
251
|
+
/plan $ARGUMENTS
|
|
162
252
|
```
|
|
163
|
-
Created: bd-[epic] (Epic)
|
|
164
253
|
|
|
165
|
-
|
|
166
|
-
├── bd-[epic].1: [title] ← READY
|
|
167
|
-
├── bd-[epic].2: [title] ← blocked by .1
|
|
168
|
-
└── bd-[epic].3: [title] ← blocked by .2
|
|
254
|
+
---
|
|
169
255
|
|
|
170
|
-
|
|
256
|
+
## Examples
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
# Create standard spec
|
|
260
|
+
/create bd-feat-auth
|
|
261
|
+
|
|
262
|
+
# Create PRD (combined format)
|
|
263
|
+
/create bd-feat-auth --prd
|
|
264
|
+
|
|
265
|
+
# Create proposal first (for epics)
|
|
266
|
+
/create bd-epic-redesign --proposal
|
|
171
267
|
```
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## Related Commands
|
|
272
|
+
|
|
273
|
+
| Need | Command |
|
|
274
|
+
| ------------------ | ---------------------- |
|
|
275
|
+
| Research first | `/research $ARGUMENTS` |
|
|
276
|
+
| Plan after spec | `/plan $ARGUMENTS` |
|
|
277
|
+
| Create bead itself | `bd create "Title"` |
|
|
@@ -602,10 +602,8 @@ If bead exists in `$ARGUMENTS`, design within `.beads/artifacts/<bead-id>/spec.m
|
|
|
602
602
|
|
|
603
603
|
## Related Commands
|
|
604
604
|
|
|
605
|
-
| Need
|
|
606
|
-
|
|
|
607
|
-
|
|
|
608
|
-
|
|
|
609
|
-
|
|
|
610
|
-
| Check accessibility | `/accessibility-check` |
|
|
611
|
-
| Fix UI issues | `/fix-ui` |
|
|
605
|
+
| Need | Command |
|
|
606
|
+
| -------------------- | --------------- |
|
|
607
|
+
| Review existing UI | `/ui-review` |
|
|
608
|
+
| Start implementation | `/start <bead>` |
|
|
609
|
+
| Ship implementation | `/ship <bead>` |
|
|
@@ -8,6 +8,13 @@ agent: build
|
|
|
8
8
|
|
|
9
9
|
You're pausing work on a task. Save state so the next session can pick up cleanly.
|
|
10
10
|
|
|
11
|
+
## Load Skills
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
skill({ name: "beads" });
|
|
15
|
+
skill({ name: "session-management" });
|
|
16
|
+
```
|
|
17
|
+
|
|
11
18
|
## Why Handoff?
|
|
12
19
|
|
|
13
20
|
- Context window getting full
|
|
@@ -9,6 +9,13 @@ subtask: true
|
|
|
9
9
|
|
|
10
10
|
One command to onboard a project. Creates project-root AGENTS.md and populates memory files.
|
|
11
11
|
|
|
12
|
+
## Load Skills
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
skill({ name: "memory-system" });
|
|
16
|
+
skill({ name: "index-knowledge" });
|
|
17
|
+
```
|
|
18
|
+
|
|
12
19
|
## Options
|
|
13
20
|
|
|
14
21
|
- `--deep`: Comprehensive research (~100+ tool calls). Git history, patterns, contributors, subsystem detection.
|
|
@@ -173,61 +180,32 @@ updated: [today]
|
|
|
173
180
|
[from Phase 1]
|
|
174
181
|
```
|
|
175
182
|
|
|
176
|
-
### .opencode/memory/project/
|
|
183
|
+
### .opencode/memory/project/tech-stack.md
|
|
177
184
|
|
|
178
185
|
```markdown
|
|
179
186
|
---
|
|
180
|
-
purpose:
|
|
187
|
+
purpose: Tech stack, constraints, and integrations for AI context injection
|
|
181
188
|
updated: [today]
|
|
182
189
|
---
|
|
183
190
|
|
|
184
|
-
#
|
|
191
|
+
# Tech Stack
|
|
185
192
|
|
|
186
|
-
##
|
|
193
|
+
## Framework & Language
|
|
187
194
|
|
|
188
|
-
|
|
195
|
+
- **Framework:** [detected, e.g., Next.js 15]
|
|
196
|
+
- **Language:** [detected, e.g., TypeScript]
|
|
197
|
+
- **Runtime:** [detected, e.g., Node.js 22]
|
|
189
198
|
|
|
190
|
-
##
|
|
199
|
+
## Key Dependencies
|
|
191
200
|
|
|
192
|
-
|
|
193
|
-
Single test: `[syntax with example]`
|
|
201
|
+
- [detected from package.json/go.mod/etc.]
|
|
194
202
|
|
|
195
|
-
##
|
|
203
|
+
## Key Constraints
|
|
196
204
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
## Dev Server
|
|
200
|
-
|
|
201
|
-
`[detected]`
|
|
205
|
+
- [detected or ask user]
|
|
202
206
|
```
|
|
203
207
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
```markdown
|
|
207
|
-
---
|
|
208
|
-
purpose: Key modules, directory structure
|
|
209
|
-
updated: [today]
|
|
210
|
-
---
|
|
211
|
-
|
|
212
|
-
# Architecture
|
|
213
|
-
|
|
214
|
-
## Structure
|
|
215
|
-
|
|
216
|
-
[detected directory layout with purpose annotations]
|
|
217
|
-
|
|
218
|
-
## Key Modules
|
|
219
|
-
|
|
220
|
-
[identified entry points, core modules, their responsibilities]
|
|
221
|
-
|
|
222
|
-
## Data Flow
|
|
223
|
-
|
|
224
|
-
[how data moves through the system - if detectable]
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
### With --deep, also create:
|
|
228
|
-
|
|
229
|
-
- `project/conventions.md` - from git log analysis
|
|
230
|
-
- `project/gotchas.md` - from bug-fix patterns in history
|
|
208
|
+
**Note:** AI discovers commands, architecture, conventions, and gotchas organically from the codebase and saves learnings via the `observation` tool. No need for static template files.
|
|
231
209
|
|
|
232
210
|
## Phase 6: Initialize Beads (if requested)
|
|
233
211
|
|
|
@@ -262,13 +240,15 @@ Initialization Complete
|
|
|
262
240
|
Files created:
|
|
263
241
|
- ./AGENTS.md ([N] lines)
|
|
264
242
|
- .opencode/memory/user.md
|
|
265
|
-
- .opencode/memory/project/
|
|
266
|
-
- .opencode/memory/project/architecture.md
|
|
243
|
+
- .opencode/memory/project/tech-stack.md
|
|
267
244
|
[- .beads/ (if initialized)]
|
|
268
245
|
|
|
269
246
|
Tech stack: [detected]
|
|
270
247
|
Commands validated: [yes/no]
|
|
271
248
|
|
|
249
|
+
Note: Commands, architecture, conventions, and gotchas are discovered
|
|
250
|
+
organically and saved via the observation tool as the AI works.
|
|
251
|
+
|
|
272
252
|
Suggested next steps:
|
|
273
253
|
1. Review AGENTS.md and adjust boundaries
|
|
274
254
|
2. Run /review-codebase to check conventions
|
|
@@ -281,10 +261,8 @@ Suggested next steps:
|
|
|
281
261
|
./AGENTS.md # Project-specific rules (created, <60 lines)
|
|
282
262
|
.opencode/AGENTS.md # Global rules (untouched)
|
|
283
263
|
.opencode/memory/user.md # User preferences (created)
|
|
284
|
-
.opencode/memory/project/
|
|
285
|
-
.opencode/memory/
|
|
286
|
-
.opencode/memory/project/conventions.md # Patterns (--deep only)
|
|
287
|
-
.opencode/memory/project/gotchas.md # Warnings (--deep only)
|
|
264
|
+
.opencode/memory/project/tech-stack.md # Tech stack for context injection (created)
|
|
265
|
+
.opencode/memory/observations/ # Learnings captured organically by AI
|
|
288
266
|
[packages/*/AGENTS.md] # Subsystem rules (--deep, if requested)
|
|
289
267
|
```
|
|
290
268
|
|
|
@@ -20,6 +20,10 @@ You're creating an implementation plan with proper Epic → Task → Subtask hie
|
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
skill({ name: "beads" });
|
|
23
|
+
skill({ name: "deep-research" });
|
|
24
|
+
skill({ name: "executing-plans" });
|
|
25
|
+
skill({ name: "writing-plans" });
|
|
26
|
+
skill({ name: "subagent-driven-development" });
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
```bash
|
|
@@ -37,28 +41,38 @@ cat .beads/artifacts/$ARGUMENTS/research.md 2>/dev/null || echo "No research fou
|
|
|
37
41
|
|
|
38
42
|
**If complexity > M and no research:** "Consider `/research $ARGUMENTS` first for better planning."
|
|
39
43
|
|
|
44
|
+
## Templates Reference
|
|
45
|
+
|
|
46
|
+
Copy templates from `.opencode/memory/_templates/` to bead artifacts folder:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Copy templates to bead folder
|
|
50
|
+
BEAD_DIR=".beads/artifacts/$ARGUMENTS"
|
|
51
|
+
mkdir -p "$BEAD_DIR"
|
|
52
|
+
|
|
53
|
+
# Copy design template (we'll fill it in Phase 3)
|
|
54
|
+
cp .opencode/memory/_templates/design.md "$BEAD_DIR/design.md"
|
|
55
|
+
|
|
56
|
+
# Copy tasks template (we'll fill it in Phase 6)
|
|
57
|
+
cp .opencode/memory/_templates/tasks.md "$BEAD_DIR/tasks.md"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
| Template | Purpose | Phase Used |
|
|
61
|
+
| ----------- | ------------------------------ | ---------- |
|
|
62
|
+
| `spec.md` | WHEN/THEN behavioral scenarios | Input |
|
|
63
|
+
| `design.md` | Architecture decision records | Phase 3 |
|
|
64
|
+
| `tasks.md` | Numbered implementation steps | Phase 6 |
|
|
65
|
+
|
|
40
66
|
## Check Memory First (Semantic Search)
|
|
41
67
|
|
|
42
68
|
Before subagent research, check what we already know:
|
|
43
69
|
|
|
44
70
|
```typescript
|
|
45
71
|
// Find similar past plans
|
|
46
|
-
|
|
47
|
-
search({
|
|
48
|
-
query: "[bead title/description]",
|
|
49
|
-
mode: "semantic",
|
|
50
|
-
type: "bead",
|
|
51
|
-
limit: 3,
|
|
52
|
-
});
|
|
72
|
+
memory_search({ query: "[bead title/description]", limit: 3 });
|
|
53
73
|
|
|
54
74
|
// Find related patterns and decisions
|
|
55
|
-
|
|
56
|
-
search({
|
|
57
|
-
query: "[domain keywords]",
|
|
58
|
-
mode: "semantic",
|
|
59
|
-
type: "observation",
|
|
60
|
-
limit: 3,
|
|
61
|
-
});
|
|
75
|
+
memory_search({ query: "[domain keywords] gotchas patterns", limit: 3 });
|
|
62
76
|
```
|
|
63
77
|
|
|
64
78
|
Review findings for:
|
|
@@ -104,6 +118,12 @@ Task({
|
|
|
104
118
|
|
|
105
119
|
**Integrate findings into your plan.**
|
|
106
120
|
|
|
121
|
+
## Skill Routing
|
|
122
|
+
|
|
123
|
+
- Use **deep-research** when the domain is unfamiliar or ambiguous.
|
|
124
|
+
- Use **writing-plans** when producing a detailed, step-by-step implementation plan.
|
|
125
|
+
- Use **executing-plans** only when a complete plan already exists and needs execution.
|
|
126
|
+
|
|
107
127
|
---
|
|
108
128
|
|
|
109
129
|
## Phase 2: Analyze for Decomposition
|
|
@@ -528,8 +548,7 @@ Next: /start bd-xxx1
|
|
|
528
548
|
|
|
529
549
|
| Need | Command |
|
|
530
550
|
| -------------------- | ------------------------ |
|
|
531
|
-
| Create spec first | `/create <bead-id>` |
|
|
532
551
|
| Research before plan | `/research <bead-id>` |
|
|
533
552
|
| Start first task | `/start <first-task-id>` |
|
|
553
|
+
| Ship the work | `/ship <bead-id>` |
|
|
534
554
|
| View hierarchy | `bd dep tree <bead-id>` |
|
|
535
|
-
| Import external plan | `/import-plan` |
|
|
@@ -78,21 +78,10 @@ Search for relevant observations and past work:
|
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
80
|
// Find observations related to this bead
|
|
81
|
-
|
|
82
|
-
search({
|
|
83
|
-
query: "$ARGUMENTS [bead title/description]",
|
|
84
|
-
mode: "semantic",
|
|
85
|
-
type: "observation",
|
|
86
|
-
limit: 5,
|
|
87
|
-
});
|
|
81
|
+
memory_search({ query: "$ARGUMENTS [bead title/description]", limit: 5 });
|
|
88
82
|
|
|
89
83
|
// Find similar past work
|
|
90
|
-
|
|
91
|
-
search({
|
|
92
|
-
query: "[bead description keywords]",
|
|
93
|
-
mode: "semantic",
|
|
94
|
-
limit: 3,
|
|
95
|
-
});
|
|
84
|
+
memory_search({ query: "[bead description keywords]", limit: 3 });
|
|
96
85
|
```
|
|
97
86
|
|
|
98
87
|
**Review findings** - past observations may contain:
|
|
@@ -183,11 +172,11 @@ bd update $ARGUMENTS --status in_progress
|
|
|
183
172
|
|
|
184
173
|
Then continue with implementation:
|
|
185
174
|
|
|
186
|
-
| Condition | Command
|
|
187
|
-
| ----------------------- |
|
|
188
|
-
| Swarm was restored | Continue
|
|
189
|
-
| No swarm, standard work | `/
|
|
190
|
-
| Need to re-plan | `/plan $ARGUMENTS`
|
|
175
|
+
| Condition | Command |
|
|
176
|
+
| ----------------------- | ---------------------------------------- |
|
|
177
|
+
| Swarm was restored | Continue with `/ship $ARGUMENTS --swarm` |
|
|
178
|
+
| No swarm, standard work | `/ship $ARGUMENTS` |
|
|
179
|
+
| Need to re-plan | `/plan $ARGUMENTS` |
|
|
191
180
|
|
|
192
181
|
## If Context Is Too Stale
|
|
193
182
|
|