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.
Files changed (116) hide show
  1. package/dist/index.js +5 -7
  2. package/dist/template/.opencode/AGENTS.md +21 -20
  3. package/dist/template/.opencode/agent/build.md +88 -7
  4. package/dist/template/.opencode/agent/explore.md +1 -1
  5. package/dist/template/.opencode/agent/general.md +54 -4
  6. package/dist/template/.opencode/agent/looker.md +1 -1
  7. package/dist/template/.opencode/agent/painter.md +1 -1
  8. package/dist/template/.opencode/agent/plan.md +52 -0
  9. package/dist/template/.opencode/agent/review.md +1 -1
  10. package/dist/template/.opencode/agent/scout.md +3 -3
  11. package/dist/template/.opencode/agent/vision.md +1 -1
  12. package/dist/template/.opencode/command/create.md +201 -95
  13. package/dist/template/.opencode/command/design.md +5 -7
  14. package/dist/template/.opencode/command/handoff.md +7 -0
  15. package/dist/template/.opencode/command/init.md +25 -47
  16. package/dist/template/.opencode/command/plan.md +35 -16
  17. package/dist/template/.opencode/command/resume.md +7 -18
  18. package/dist/template/.opencode/command/ship.md +156 -0
  19. package/dist/template/.opencode/command/start.md +315 -28
  20. package/dist/template/.opencode/command/ui-review.md +5 -7
  21. package/dist/template/.opencode/command/verify.md +279 -0
  22. package/dist/template/.opencode/memory/_templates/README.md +57 -19
  23. package/dist/template/.opencode/memory/_templates/prd.md +29 -0
  24. package/dist/template/.opencode/memory/_templates/project/tech-stack.md +50 -0
  25. package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
  26. package/dist/template/.opencode/memory/_templates/spec.md +66 -0
  27. package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
  28. package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +15 -0
  29. package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +31 -0
  30. package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +25 -0
  31. package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +14 -0
  32. package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +15 -0
  33. package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +40 -0
  34. package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +42 -0
  35. package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +14 -0
  36. package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +31 -0
  37. package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +14 -0
  38. package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +23 -0
  39. package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +14 -0
  40. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +14 -0
  41. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +14 -0
  42. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +14 -0
  43. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +14 -0
  44. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +14 -0
  45. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +14 -0
  46. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +14 -0
  47. package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +50 -0
  48. package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +26 -0
  49. package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +29 -0
  50. package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +15 -0
  51. package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +28 -0
  52. package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +43 -0
  53. package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +14 -0
  54. package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +22 -0
  55. package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +27 -0
  56. package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +35 -0
  57. package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +14 -0
  58. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +14 -0
  59. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +14 -0
  60. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +14 -0
  61. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +14 -0
  62. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +15 -0
  63. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +15 -0
  64. package/dist/template/.opencode/memory/project/command-rules.md +122 -0
  65. package/dist/template/.opencode/memory/project/tech-stack.md +50 -0
  66. package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
  67. package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
  68. package/dist/template/.opencode/opencode.json +916 -803
  69. package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
  70. package/package.json +1 -1
  71. package/dist/template/.opencode/command/accessibility-check.md +0 -331
  72. package/dist/template/.opencode/command/agent-browser.md +0 -21
  73. package/dist/template/.opencode/command/analyze-mockup.md +0 -423
  74. package/dist/template/.opencode/command/analyze-project.md +0 -295
  75. package/dist/template/.opencode/command/brainstorm.md +0 -373
  76. package/dist/template/.opencode/command/cloudflare.md +0 -70
  77. package/dist/template/.opencode/command/commit.md +0 -245
  78. package/dist/template/.opencode/command/complete-next-task.md +0 -77
  79. package/dist/template/.opencode/command/design-audit.md +0 -480
  80. package/dist/template/.opencode/command/edit-image.md +0 -242
  81. package/dist/template/.opencode/command/finish.md +0 -255
  82. package/dist/template/.opencode/command/fix-ci.md +0 -109
  83. package/dist/template/.opencode/command/fix-types.md +0 -104
  84. package/dist/template/.opencode/command/fix-ui.md +0 -117
  85. package/dist/template/.opencode/command/fix.md +0 -168
  86. package/dist/template/.opencode/command/frontend-design.md +0 -21
  87. package/dist/template/.opencode/command/generate-diagram.md +0 -349
  88. package/dist/template/.opencode/command/generate-icon.md +0 -283
  89. package/dist/template/.opencode/command/generate-image.md +0 -246
  90. package/dist/template/.opencode/command/generate-pattern.md +0 -247
  91. package/dist/template/.opencode/command/generate-storyboard.md +0 -250
  92. package/dist/template/.opencode/command/implement.md +0 -609
  93. package/dist/template/.opencode/command/import-plan.md +0 -406
  94. package/dist/template/.opencode/command/index-knowledge.md +0 -25
  95. package/dist/template/.opencode/command/integration-test.md +0 -424
  96. package/dist/template/.opencode/command/issue.md +0 -102
  97. package/dist/template/.opencode/command/new-feature.md +0 -651
  98. package/dist/template/.opencode/command/opensrc.md +0 -58
  99. package/dist/template/.opencode/command/quick-build.md +0 -238
  100. package/dist/template/.opencode/command/ralph.md +0 -41
  101. package/dist/template/.opencode/command/research-and-implement.md +0 -148
  102. package/dist/template/.opencode/command/research-ui.md +0 -466
  103. package/dist/template/.opencode/command/restore-image.md +0 -424
  104. package/dist/template/.opencode/command/revert-feature.md +0 -386
  105. package/dist/template/.opencode/command/skill-create.md +0 -517
  106. package/dist/template/.opencode/command/skill-optimize.md +0 -556
  107. package/dist/template/.opencode/command/summarize.md +0 -412
  108. package/dist/template/.opencode/command/triage.md +0 -398
  109. package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
  110. package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
  111. package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
  112. package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
  113. package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
  114. package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
  115. package/dist/template/.opencode/tool/notebooklm.ts +0 -488
  116. package/dist/template/.opencode/tool/oracle.ts +0 -240
@@ -1,171 +1,277 @@
1
1
  ---
2
- description: Create a tracked task with spec
3
- argument-hint: "[title or description]"
4
- agent: build
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
- You're creating a new tracked task. Keep it simple unless complexity demands otherwise.
10
+ Create structured artifacts for a bead using templates. This is the first step before planning.
10
11
 
11
- ## Check For Duplicates First
12
+ ## Parse Arguments
12
13
 
13
- !`bd list --status=all | grep -i "[keywords]"`
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
- If similar work exists, link to it or extend it instead of creating duplicate.
20
+ ## Load Skills
16
21
 
17
- ## Gather Requirements
18
-
19
- If `$ARGUMENTS` is clear, use it directly. If vague, ask:
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
- Keep it brief. Don't over-engineer the interview.
27
+ ## Load Bead Context
27
28
 
28
- ## Assess Complexity
29
+ ```bash
30
+ bd show $ARGUMENTS
31
+ ```
29
32
 
30
- **Simple** (single bead): One file, one clear action, ~30 min or less
31
- **Complex** (needs decomposition): Multiple domains, natural phases, hours of work
33
+ Check what artifacts already exist:
32
34
 
33
- If complex, ask: "This looks like it needs decomposition. Create an epic with subtasks?"
35
+ ```bash
36
+ ls .beads/artifacts/$ARGUMENTS/ 2>/dev/null || echo "No artifacts yet"
37
+ ```
34
38
 
35
- ## Create The Bead
39
+ ---
36
40
 
37
- Simple task:
41
+ ## Phase 1: Setup Artifact Directory
38
42
 
39
43
  ```bash
40
- bd create "[title]" -t task -p 2
44
+ BEAD_DIR=".beads/artifacts/$ARGUMENTS"
45
+ mkdir -p "$BEAD_DIR"
41
46
  ```
42
47
 
43
- Bug:
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
- bd create "[title]" -t bug -p 1
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
- Feature:
74
+ ---
50
75
 
51
- ```bash
52
- bd create "[title]" -t feature -p 2
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
- Epic (if decomposing):
108
+ ### Research Existing Patterns (Optional)
56
109
 
57
- ```bash
58
- bd create "[title]" -t epic -p 1
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
- ## Create Spec
124
+ ---
62
125
 
63
- Write `.beads/artifacts/<bead-id>/spec.md`.
126
+ ## Phase 4: Fill In Template
64
127
 
65
- Treat `spec.md` as a **short task card** (one screen): goal + success criteria + constraints. Put the detailed plan and task breakdown in `prd.md`.
128
+ ### For spec.md (default)
66
129
 
67
- ```markdown
68
- # [Title]
130
+ Fill in the template with WHEN/THEN scenarios:
69
131
 
70
- **Bead:** <bead-id>
71
- **Created:** [date]
132
+ ```markdown
133
+ # Specification
72
134
 
73
- ## Goal
135
+ **Bead:** $ARGUMENTS
136
+ **Proposal:** N/A
137
+ **Date:** [today]
74
138
 
75
- [1-2 sentences: What and why]
139
+ ## Requirements
76
140
 
77
- ## Success Criteria
141
+ ### [Requirement from user input]
78
142
 
79
- - [ ] [Criterion 1]
80
- - Verify: `[command]`
81
- - [ ] [Criterion 2]
82
- - Verify: `[command]`
143
+ Brief description of what must be true.
83
144
 
84
- ## Constraints
145
+ #### Scenarios
85
146
 
86
- **Must:** [required]
87
- **Never:** [forbidden]
147
+ **WHEN** [user/system does action]
148
+ **THEN** [expected outcome]
88
149
 
89
- ## PRD (Optional)
150
+ **WHEN** [edge case condition]
151
+ **THEN** [expected behavior]
90
152
 
91
- If this task has a PRD, keep details there:
153
+ ## Non-Functional Requirements
92
154
 
93
- - `.beads/artifacts/<bead-id>/prd.md`
94
- - `.beads/artifacts/<bead-id>/prd.json` (generated)
155
+ - **Performance:** [from constraints]
156
+ - **Security:** [from constraints]
157
+ - **Compatibility:** [from constraints]
95
158
 
96
- ## Notes
159
+ ## Out of Scope
97
160
 
98
- [only brief context here; details belong in prd.md]
161
+ - [Explicitly excluded capability]
99
162
  ```
100
163
 
101
- ## If Epic: Create Subtasks
164
+ ### For prd.md (--prd flag)
102
165
 
103
- ```bash
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
- # Second task (blocked by first)
108
- bd create "[subtask 2]" -t task -p 2
109
- bd dep add bd-[second] bd-[first] --type blocks
110
- ```
168
+ ```markdown
169
+ # Beads PRD Template
111
170
 
112
- Visualize:
171
+ **Bead:** $ARGUMENTS
172
+ **Created:** [today]
173
+ **Status:** Draft
113
174
 
114
- !`bd dep tree bd-[epic]`
175
+ ## Goal
115
176
 
116
- ## Optional: Create a PRD (Recommended for features)
177
+ [From user input - what are we building and why]
117
178
 
118
- If the work is more than a small one-off change, create a PRD alongside the spec.
179
+ ## Scope
119
180
 
120
- - Template: `.opencode/memory/_templates/prd.md`
121
- - Output: `.beads/artifacts/<bead-id>/prd.md`
181
+ ### In-Scope
122
182
 
123
- ```typescript
124
- skill({ name: "prd" });
125
- ```
183
+ - [From user input]
126
184
 
127
- Write the PRD so it includes a `## Tasks` section (each `### ... [category]` with `**Verification:**` bullets).
185
+ ### Out-of-Scope
128
186
 
129
- After PRD is written, convert it to executable tasks:
187
+ - [Explicitly excluded]
130
188
 
131
- ```typescript
132
- skill({ name: "prd-task" });
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
- This generates:
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
- - `.beads/artifacts/<bead-id>/prd.json`
138
- - `.beads/artifacts/<bead-id>/progress.txt`
218
+ ---
219
+
220
+ ## Phase 6: Save and Report
139
221
 
140
- ## Sync
222
+ Save the filled template to the bead artifacts folder.
141
223
 
142
224
  ```bash
143
- bd sync
225
+ # Verify file was created
226
+ cat "$BEAD_DIR/spec.md"
144
227
  ```
145
228
 
146
- ## Output
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
- Type: [task/bug/feature/epic]
152
- Priority: [0-4]
153
- Spec: .beads/artifacts/bd-[id]/spec.md
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
- If epic with subtasks:
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
- Subtasks:
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
- Next: /implement bd-[epic].1
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 | Command |
606
- | --------------------- | ---------------------- |
607
- | Audit existing system | `/design-audit` |
608
- | Analyze mockup | `/analyze-mockup` |
609
- | Implement design | `/implement` |
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/commands.md
183
+ ### .opencode/memory/project/tech-stack.md
177
184
 
178
185
  ```markdown
179
186
  ---
180
- purpose: Build, test, lint, deploy commands
187
+ purpose: Tech stack, constraints, and integrations for AI context injection
181
188
  updated: [today]
182
189
  ---
183
190
 
184
- # Commands
191
+ # Tech Stack
185
192
 
186
- ## Build
193
+ ## Framework & Language
187
194
 
188
- `[detected and validated]`
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
- ## Test
199
+ ## Key Dependencies
191
200
 
192
- `[detected]`
193
- Single test: `[syntax with example]`
201
+ - [detected from package.json/go.mod/etc.]
194
202
 
195
- ## Lint
203
+ ## Key Constraints
196
204
 
197
- `[detected]`
198
-
199
- ## Dev Server
200
-
201
- `[detected]`
205
+ - [detected or ask user]
202
206
  ```
203
207
 
204
- ### .opencode/memory/project/architecture.md
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/commands.md
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/commands.md # Build commands (created)
285
- .opencode/memory/project/architecture.md # Structure (created)
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
- memory -
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
- memory -
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
- memory -
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
- memory -
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 monitoring with `/implement $ARGUMENTS --swarm` |
189
- | No swarm, standard work | `/implement $ARGUMENTS` |
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