opencodekit 0.15.21 → 0.16.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.
Files changed (144) hide show
  1. package/dist/index.js +5 -7
  2. package/dist/template/.opencode/AGENTS.md +85 -23
  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 +231 -91
  13. package/dist/template/.opencode/command/design.md +40 -7
  14. package/dist/template/.opencode/command/handoff.md +22 -0
  15. package/dist/template/.opencode/command/init.md +49 -78
  16. package/dist/template/.opencode/command/plan.md +36 -16
  17. package/dist/template/.opencode/command/pr.md +15 -0
  18. package/dist/template/.opencode/command/research.md +3 -0
  19. package/dist/template/.opencode/command/resume.md +8 -18
  20. package/dist/template/.opencode/command/review-codebase.md +30 -0
  21. package/dist/template/.opencode/command/ship.md +199 -0
  22. package/dist/template/.opencode/command/start.md +316 -28
  23. package/dist/template/.opencode/command/status.md +24 -1
  24. package/dist/template/.opencode/command/ui-review.md +36 -7
  25. package/dist/template/.opencode/command/verify.md +307 -0
  26. package/dist/template/.opencode/memory/_templates/prd.md +29 -0
  27. package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
  28. package/dist/template/.opencode/memory/_templates/spec.md +66 -0
  29. package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
  30. package/dist/template/.opencode/memory/_templates/tech-stack.md +50 -0
  31. package/dist/template/.opencode/memory/project/tech-stack.md +53 -0
  32. package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
  33. package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
  34. package/dist/template/.opencode/memory.db +0 -0
  35. package/dist/template/.opencode/memory.db-shm +0 -0
  36. package/dist/template/.opencode/memory.db-wal +0 -0
  37. package/dist/template/.opencode/opencode.json +18 -4
  38. package/dist/template/.opencode/package.json +1 -0
  39. package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
  40. package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
  41. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
  42. package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
  43. package/dist/template/.opencode/plugin/memory.ts +38 -1
  44. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
  45. package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
  46. package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
  47. package/dist/template/.opencode/tool/memory-get.ts +143 -0
  48. package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
  49. package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
  50. package/dist/template/.opencode/tool/memory-read.ts +17 -46
  51. package/dist/template/.opencode/tool/memory-search.ts +131 -28
  52. package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
  53. package/dist/template/.opencode/tool/memory-update.ts +21 -26
  54. package/dist/template/.opencode/tool/observation.ts +112 -100
  55. package/dist/template/.opencode/tsconfig.json +19 -19
  56. package/package.json +1 -1
  57. package/dist/template/.opencode/command/accessibility-check.md +0 -331
  58. package/dist/template/.opencode/command/agent-browser.md +0 -21
  59. package/dist/template/.opencode/command/analyze-mockup.md +0 -423
  60. package/dist/template/.opencode/command/analyze-project.md +0 -295
  61. package/dist/template/.opencode/command/brainstorm.md +0 -373
  62. package/dist/template/.opencode/command/cloudflare.md +0 -70
  63. package/dist/template/.opencode/command/commit.md +0 -245
  64. package/dist/template/.opencode/command/complete-next-task.md +0 -77
  65. package/dist/template/.opencode/command/design-audit.md +0 -480
  66. package/dist/template/.opencode/command/edit-image.md +0 -242
  67. package/dist/template/.opencode/command/finish.md +0 -255
  68. package/dist/template/.opencode/command/fix-ci.md +0 -109
  69. package/dist/template/.opencode/command/fix-types.md +0 -104
  70. package/dist/template/.opencode/command/fix-ui.md +0 -117
  71. package/dist/template/.opencode/command/fix.md +0 -168
  72. package/dist/template/.opencode/command/frontend-design.md +0 -21
  73. package/dist/template/.opencode/command/generate-diagram.md +0 -349
  74. package/dist/template/.opencode/command/generate-icon.md +0 -283
  75. package/dist/template/.opencode/command/generate-image.md +0 -246
  76. package/dist/template/.opencode/command/generate-pattern.md +0 -247
  77. package/dist/template/.opencode/command/generate-storyboard.md +0 -250
  78. package/dist/template/.opencode/command/implement.md +0 -609
  79. package/dist/template/.opencode/command/import-plan.md +0 -406
  80. package/dist/template/.opencode/command/index-knowledge.md +0 -25
  81. package/dist/template/.opencode/command/integration-test.md +0 -424
  82. package/dist/template/.opencode/command/issue.md +0 -102
  83. package/dist/template/.opencode/command/new-feature.md +0 -651
  84. package/dist/template/.opencode/command/opensrc.md +0 -58
  85. package/dist/template/.opencode/command/quick-build.md +0 -238
  86. package/dist/template/.opencode/command/ralph.md +0 -41
  87. package/dist/template/.opencode/command/research-and-implement.md +0 -148
  88. package/dist/template/.opencode/command/research-ui.md +0 -466
  89. package/dist/template/.opencode/command/restore-image.md +0 -424
  90. package/dist/template/.opencode/command/revert-feature.md +0 -386
  91. package/dist/template/.opencode/command/skill-create.md +0 -517
  92. package/dist/template/.opencode/command/skill-optimize.md +0 -556
  93. package/dist/template/.opencode/command/summarize.md +0 -412
  94. package/dist/template/.opencode/command/triage.md +0 -398
  95. package/dist/template/.opencode/memory/_templates/README.md +0 -35
  96. package/dist/template/.opencode/memory/_templates/observation.md +0 -39
  97. package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
  98. package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
  99. package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
  100. package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
  101. package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
  102. package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
  103. package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
  104. package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
  105. package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
  106. package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
  107. package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
  108. package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
  109. package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
  110. package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
  111. package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
  112. package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
  113. package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
  114. package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
  115. package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
  116. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
  117. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
  118. package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
  119. package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
  120. package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
  121. package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
  122. package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
  123. package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
  124. package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
  125. package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
  126. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
  127. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
  128. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
  129. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
  130. package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
  131. package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
  132. package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
  133. package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
  134. package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
  135. package/dist/template/.opencode/memory/project/architecture.md +0 -60
  136. package/dist/template/.opencode/memory/project/commands.md +0 -72
  137. package/dist/template/.opencode/memory/project/conventions.md +0 -68
  138. package/dist/template/.opencode/memory/project/gotchas.md +0 -41
  139. package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
  140. package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
  141. package/dist/template/.opencode/tool/notebooklm.ts +0 -488
  142. package/dist/template/.opencode/tool/oracle.ts +0 -240
  143. /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
  144. /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
@@ -0,0 +1,307 @@
1
+ ---
2
+ description: Verify implementation completeness, correctness, and coherence
3
+ argument-hint: "<bead-id> [--quick] [--fix]"
4
+ agent: review
5
+ subtask: true
6
+ ---
7
+
8
+ # Verify: $ARGUMENTS
9
+
10
+ Three-dimensional verification before claiming work complete. Inspired by OpenSpec's verify workflow.
11
+
12
+ ## Load Skills
13
+
14
+ ```typescript
15
+ skill({ name: "beads" });
16
+ skill({ name: "verification-before-completion" });
17
+ skill({ name: "systematic-debugging" });
18
+ skill({ name: "memory-system" });
19
+ ```
20
+
21
+ ## Parse Arguments
22
+
23
+ | Argument | Default | Description |
24
+ | ----------- | -------- | -------------------------------- |
25
+ | `<bead-id>` | required | The bead to verify |
26
+ | `--quick` | false | Skip coherence check, gates only |
27
+ | `--fix` | false | Auto-fix issues where possible |
28
+
29
+ ---
30
+
31
+ ## Phase 1: Check Memory for Context
32
+
33
+ Search for relevant verification patterns and past issues:
34
+
35
+ ```typescript
36
+ memory_search({ query: "$ARGUMENTS verification issues patterns", limit: 3 });
37
+ ```
38
+
39
+ ---
40
+
41
+ ## Phase 2: Gather Artifacts
42
+
43
+ ```bash
44
+ bd show $ARGUMENTS
45
+ ls .beads/artifacts/$ARGUMENTS/
46
+ ```
47
+
48
+ Read all artifacts:
49
+
50
+ ```bash
51
+ cat .beads/artifacts/$ARGUMENTS/spec.md 2>/dev/null
52
+ cat .beads/artifacts/$ARGUMENTS/plan.md 2>/dev/null
53
+ cat .beads/artifacts/$ARGUMENTS/research.md 2>/dev/null
54
+ cat .beads/artifacts/$ARGUMENTS/design.md 2>/dev/null
55
+ ```
56
+
57
+ ---
58
+
59
+ ## Phase 3: Completeness Check
60
+
61
+ **Are all required artifacts present?**
62
+
63
+ | Artifact | Required | Status |
64
+ | ------------- | -------- | ------ |
65
+ | `spec.md` | Yes | [ ] |
66
+ | `plan.md` | Yes | [ ] |
67
+ | `research.md` | No | [ ] |
68
+ | `design.md` | No | [ ] |
69
+
70
+ **Are all tasks in the spec addressed?**
71
+
72
+ Extract tasks/criteria from spec.md and verify each is implemented:
73
+
74
+ ```markdown
75
+ ## Completeness Report
76
+
77
+ | Requirement | Status | Evidence |
78
+ | ----------------- | ---------- | ----------------------- |
79
+ | [Req 1 from spec] | ✓ Complete | `src/foo.ts:42` |
80
+ | [Req 2 from spec] | ✓ Complete | `src/bar.ts:15` |
81
+ | [Req 3 from spec] | ⚠ Partial | Missing edge case tests |
82
+ | [Req 4 from spec] | ✗ Missing | Not implemented |
83
+ ```
84
+
85
+ **Completeness Score:** X/Y requirements met
86
+
87
+ ---
88
+
89
+ ## Phase 4: Correctness Check
90
+
91
+ **Do the automated gates pass?**
92
+
93
+ ```bash
94
+ # Detect project type and run gates
95
+ ls package.json Cargo.toml pyproject.toml go.mod 2>/dev/null
96
+ ```
97
+
98
+ **Node/TypeScript:**
99
+
100
+ ```bash
101
+ npm run build 2>&1 | tail -10
102
+ npm test 2>&1 | tail -20
103
+ npm run lint 2>&1 | tail -10
104
+ npm run typecheck 2>&1 | tail -10
105
+ ```
106
+
107
+ **Rust:**
108
+
109
+ ```bash
110
+ cargo build 2>&1 | tail -10
111
+ cargo test 2>&1 | tail -20
112
+ cargo clippy -- -D warnings 2>&1 | tail -10
113
+ ```
114
+
115
+ **Python:**
116
+
117
+ ```bash
118
+ pytest 2>&1 | tail -20
119
+ ruff check . 2>&1 | tail -10
120
+ mypy . 2>&1 | tail -10
121
+ ```
122
+
123
+ **Go:**
124
+
125
+ ```bash
126
+ go build ./... 2>&1 | tail -10
127
+ go test ./... 2>&1 | tail -20
128
+ golangci-lint run 2>&1 | tail -10
129
+ ```
130
+
131
+ ```markdown
132
+ ## Correctness Report
133
+
134
+ | Gate | Status | Details |
135
+ | --------- | ------ | ------------------------- |
136
+ | Build | ✓ Pass | |
137
+ | Tests | ✓ Pass | 42 tests, 0 failures |
138
+ | Lint | ⚠ Warn | 2 warnings (non-blocking) |
139
+ | Typecheck | ✓ Pass | |
140
+ ```
141
+
142
+ **Correctness Score:** X/Y gates passed
143
+
144
+ ---
145
+
146
+ ## Phase 5: Coherence Check (skip with --quick)
147
+
148
+ **Do artifacts agree with each other?**
149
+
150
+ Cross-reference artifacts for contradictions:
151
+
152
+ | Check | Status | Issue |
153
+ | ---------------------------- | ------ | ------------------------------------ |
154
+ | spec.md ↔ plan.md | ✓ | Plan addresses all spec requirements |
155
+ | plan.md ↔ implementation | ✓ | Code follows plan structure |
156
+ | research.md ↔ implementation | ⚠ | Didn't use recommended approach |
157
+ | design.md ↔ implementation | ✓ | Follows design patterns |
158
+
159
+ **Common coherence issues:**
160
+
161
+ - Plan says X, implementation does Y
162
+ - Research recommended approach A, used approach B (without justification)
163
+ - Spec says must-have, implementation treats as optional
164
+ - Design specifies pattern, implementation uses different pattern
165
+
166
+ ```markdown
167
+ ## Coherence Report
168
+
169
+ Contradictions found: 1
170
+
171
+ 1. **Research vs Implementation**
172
+ - Research recommended: Use `zod` for validation
173
+ - Implementation uses: Manual validation
174
+ - Impact: Medium - works but less maintainable
175
+ - Action: Document decision or refactor
176
+ ```
177
+
178
+ **Coherence Score:** X/Y checks passed
179
+
180
+ ---
181
+
182
+ ## Phase 6: Verification Summary
183
+
184
+ ```
185
+ Verification: $ARGUMENTS
186
+ ━━━━━━━━━━━━━━━━━━━━━━━
187
+
188
+ Dimension Score Status
189
+ ───────────────────────────────
190
+ Completeness 4/5 ⚠ PARTIAL
191
+ Correctness 4/4 ✓ PASS
192
+ Coherence 3/4 ⚠ PARTIAL
193
+
194
+ Overall: ⚠ NEEDS ATTENTION
195
+
196
+ Issues Found:
197
+ ─────────────
198
+ BLOCKING (must fix):
199
+ • [Req 4] Not implemented
200
+
201
+ NON-BLOCKING (should fix):
202
+ • [Req 3] Missing edge case tests
203
+ • Research recommendation not followed
204
+
205
+ Recommendations:
206
+ ────────────────
207
+ 1. Implement [Req 4] before closing
208
+ 2. Add tests for edge case X
209
+ 3. Document why zod was not used, or refactor to use it
210
+ ```
211
+
212
+ ---
213
+
214
+ ## Phase 7: Auto-Fix (if --fix)
215
+
216
+ For fixable issues, attempt automatic resolution:
217
+
218
+ ```typescript
219
+ // If lint issues are fixable
220
+ if (hasLintWarnings && canAutoFix) {
221
+ bash({ command: "npm run lint -- --fix" });
222
+ }
223
+
224
+ // If missing tests detected
225
+ if (missingTests) {
226
+ console.log("Consider adding tests for: [list uncovered code]");
227
+ }
228
+ ```
229
+
230
+ ---
231
+
232
+ ## Phase 8: Update Bead Notes
233
+
234
+ Record verification results in bead:
235
+
236
+ ```bash
237
+ bd note $ARGUMENTS "Verification: [PASS|PARTIAL|FAIL] - [summary]"
238
+ ```
239
+
240
+ ---
241
+
242
+ ## Phase 9: Record Findings
243
+
244
+ If significant issues or patterns discovered:
245
+
246
+ ```typescript
247
+ observation({
248
+ type: "discovery",
249
+ title: "Verification findings for $ARGUMENTS",
250
+ narrative: "[Summary of issues found, patterns discovered, or lessons learned]",
251
+ concepts: "verification, testing, quality",
252
+ bead_id: "$ARGUMENTS",
253
+ confidence: "high",
254
+ });
255
+ ```
256
+
257
+ ---
258
+
259
+ ## Output
260
+
261
+ ```
262
+ Verification Complete: $ARGUMENTS
263
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
264
+
265
+ Result: ✓ READY TO SHIP | ⚠ NEEDS WORK | ✗ BLOCKED
266
+
267
+ Completeness: [score] - [status]
268
+ Correctness: [score] - [status]
269
+ Coherence: [score] - [status]
270
+
271
+ [If READY TO SHIP]
272
+ Next: /ship $ARGUMENTS
273
+
274
+ [If NEEDS WORK]
275
+ Fix these before shipping:
276
+ • [issue 1]
277
+ • [issue 2]
278
+
279
+ [If BLOCKED]
280
+ Cannot proceed until:
281
+ • [blocker 1]
282
+ ```
283
+
284
+ ---
285
+
286
+ ## Examples
287
+
288
+ ```bash
289
+ # Full verification
290
+ /verify bd-feature-auth
291
+
292
+ # Quick check (gates only)
293
+ /verify bd-feature-auth --quick
294
+
295
+ # Verify and auto-fix where possible
296
+ /verify bd-feature-auth --fix
297
+ ```
298
+
299
+ ---
300
+
301
+ ## Related Commands
302
+
303
+ | Need | Command |
304
+ | ----------------- | ------------------ |
305
+ | Ship after verify | `/ship $ARGUMENTS` |
306
+ | Review code | `/review-codebase` |
307
+ | Check status | `/status` |
@@ -60,11 +60,21 @@ Rules:
60
60
  - Each task is a `### <Title> [category]` heading.
61
61
  - Provide one sentence describing the end state.
62
62
  - Include `**Verification:**` with bullet steps proving it works.
63
+ - Include `**Metadata:**` with dependency and parallelization info.
63
64
 
64
65
  ### <Task Title> [category]
65
66
 
66
67
  <One sentence describing the end state>
67
68
 
69
+ **Metadata:**
70
+
71
+ ```yaml
72
+ depends_on: [] # Task titles that must complete first
73
+ parallel: true # Can run with other parallel tasks
74
+ conflicts_with: [] # Task titles modifying same files
75
+ files: [] # Files this task will modify
76
+ ```
77
+
68
78
  **Verification:**
69
79
 
70
80
  - [Command or check]
@@ -74,6 +84,25 @@ Rules:
74
84
 
75
85
  <One sentence describing the end state>
76
86
 
87
+ **Metadata:**
88
+
89
+ ```yaml
90
+ depends_on: ["<Previous Task Title>"]
91
+ parallel: false
92
+ files: []
93
+ ```
94
+
77
95
  **Verification:**
78
96
 
79
97
  - [Command or check]
98
+
99
+ ---
100
+
101
+ ## Dependency Legend
102
+
103
+ | Field | Purpose | Example |
104
+ | ---------------- | ------------------------------------------------- | ------------------------------------------ |
105
+ | `depends_on` | Must complete before this task starts | `["Setup database", "Create schema"]` |
106
+ | `parallel` | Can run concurrently with other parallel tasks | `true` / `false` |
107
+ | `conflicts_with` | Cannot run in parallel (same files) | `["Update config"]` |
108
+ | `files` | Files this task modifies (for conflict detection) | `["src/db/schema.ts", "src/db/client.ts"]` |
@@ -0,0 +1,38 @@
1
+ # Proposal
2
+
3
+ **Bead:** [bead-id]
4
+ **Author:** [author]
5
+ **Date:** [YYYY-MM-DD]
6
+
7
+ ## Why
8
+
9
+ <!-- What problem does this solve? Why now? -->
10
+
11
+ ## What Changes
12
+
13
+ <!-- High-level description of the proposed changes -->
14
+
15
+ ## Capabilities
16
+
17
+ ### New Capabilities
18
+
19
+ - `capability-name`: Brief description of what it enables
20
+
21
+ ### Modified Capabilities
22
+
23
+ - `capability-name`: How existing behavior changes
24
+
25
+ ## Impact
26
+
27
+ ### Users Affected
28
+
29
+ - [User type or system]
30
+
31
+ ### Migration Required
32
+
33
+ - [ ] Yes / No
34
+ - If yes: [brief migration notes]
35
+
36
+ ## Open Questions
37
+
38
+ - [ ] [Question that needs answering before proceeding]
@@ -0,0 +1,66 @@
1
+ # Specification
2
+
3
+ **Bead:** [bead-id]
4
+ **Proposal:** [link to proposal]
5
+ **Date:** [YYYY-MM-DD]
6
+
7
+ ## Bead Metadata
8
+
9
+ ```yaml
10
+ depends_on: [] # Bead IDs that must complete before this one
11
+ parallel: true # Can run concurrently with other parallel beads
12
+ conflicts_with: [] # Bead IDs that modify same files (cannot parallelize)
13
+ blocks: [] # Bead IDs that are waiting on this one
14
+ estimated_hours: 2 # Time estimate for planning
15
+ ```
16
+
17
+ ---
18
+
19
+ ## Requirements
20
+
21
+ ### [Requirement Name]
22
+
23
+ Brief description of what must be true.
24
+
25
+ #### Scenarios
26
+
27
+ **WHEN** [precondition or trigger]
28
+ **THEN** [expected outcome]
29
+
30
+ **WHEN** [edge case condition]
31
+ **THEN** [expected behavior]
32
+
33
+ ### [Requirement Name]
34
+
35
+ Brief description.
36
+
37
+ #### Scenarios
38
+
39
+ **WHEN** [condition]
40
+ **THEN** [outcome]
41
+
42
+ ---
43
+
44
+ ## Non-Functional Requirements
45
+
46
+ - **Performance:** [constraint if applicable]
47
+ - **Security:** [constraint if applicable]
48
+ - **Compatibility:** [constraint if applicable]
49
+
50
+ ---
51
+
52
+ ## Affected Files
53
+
54
+ List files this bead will modify (for conflict detection with other beads):
55
+
56
+ ```yaml
57
+ files:
58
+ - src/path/to/file.ts # Why
59
+ - src/path/to/other.ts # Why
60
+ ```
61
+
62
+ ---
63
+
64
+ ## Out of Scope
65
+
66
+ - [Explicitly excluded capability]
@@ -0,0 +1,198 @@
1
+ # Implementation Tasks
2
+
3
+ **Bead:** [bead-id]
4
+ **Spec:** [link to spec]
5
+ **Date:** [YYYY-MM-DD]
6
+
7
+ ---
8
+
9
+ ## Task Metadata
10
+
11
+ Each task can have these optional fields in YAML frontmatter:
12
+
13
+ ```yaml
14
+ ---
15
+ id: "1.1" # Task identifier
16
+ depends_on: [] # Task IDs that must complete first
17
+ parallel: true # Can run concurrently with other parallel tasks
18
+ conflicts_with: [] # Task IDs that modify same files (cannot parallelize)
19
+ files: [] # Files this task will modify
20
+ estimated_minutes: 30 # Time estimate for planning
21
+ ---
22
+ ```
23
+
24
+ ---
25
+
26
+ ## 1. Setup
27
+
28
+ ### 1.1 [Prerequisite task]
29
+
30
+ ```yaml
31
+ depends_on: []
32
+ parallel: false
33
+ files: ["package.json", "tsconfig.json"]
34
+ ```
35
+
36
+ - [ ] [Task description]
37
+
38
+ ### 1.2 [Environment or config task]
39
+
40
+ ```yaml
41
+ depends_on: ["1.1"]
42
+ parallel: false
43
+ files: [".env.example"]
44
+ ```
45
+
46
+ - [ ] [Task description]
47
+
48
+ ---
49
+
50
+ ## 2. Core Implementation
51
+
52
+ ### 2.1 [Primary implementation task]
53
+
54
+ ```yaml
55
+ depends_on: ["1.1", "1.2"]
56
+ parallel: true
57
+ conflicts_with: []
58
+ files: ["src/feature/index.ts"]
59
+ ```
60
+
61
+ - [ ] [Task description]
62
+
63
+ ### 2.2 [Secondary implementation task]
64
+
65
+ ```yaml
66
+ depends_on: ["1.1", "1.2"]
67
+ parallel: true
68
+ conflicts_with: []
69
+ files: ["src/feature/utils.ts"]
70
+ ```
71
+
72
+ - [ ] [Task description]
73
+
74
+ ### 2.3 [Integration task]
75
+
76
+ ```yaml
77
+ depends_on: ["2.1", "2.2"]
78
+ parallel: false
79
+ conflicts_with: []
80
+ files: ["src/feature/index.ts", "src/feature/utils.ts"]
81
+ ```
82
+
83
+ - [ ] [Task description]
84
+
85
+ ---
86
+
87
+ ## 3. Testing
88
+
89
+ ### 3.1 [Unit test task]
90
+
91
+ ```yaml
92
+ depends_on: ["2.1"]
93
+ parallel: true
94
+ files: ["tests/feature.test.ts"]
95
+ ```
96
+
97
+ - [ ] [Task description]
98
+
99
+ ### 3.2 [Integration test task]
100
+
101
+ ```yaml
102
+ depends_on: ["2.3"]
103
+ parallel: true
104
+ files: ["tests/integration/feature.test.ts"]
105
+ ```
106
+
107
+ - [ ] [Task description]
108
+
109
+ ### 3.3 [Edge case verification]
110
+
111
+ ```yaml
112
+ depends_on: ["3.1", "3.2"]
113
+ parallel: false
114
+ files: []
115
+ ```
116
+
117
+ - [ ] [Task description]
118
+
119
+ ---
120
+
121
+ ## 4. Documentation
122
+
123
+ ### 4.1 [Code comments / JSDoc]
124
+
125
+ ```yaml
126
+ depends_on: ["2.3"]
127
+ parallel: true
128
+ files: ["src/feature/*.ts"]
129
+ ```
130
+
131
+ - [ ] [Task description]
132
+
133
+ ### 4.2 [README updates]
134
+
135
+ ```yaml
136
+ depends_on: ["2.3"]
137
+ parallel: true
138
+ files: ["README.md"]
139
+ ```
140
+
141
+ - [ ] [Task description]
142
+
143
+ ---
144
+
145
+ ## 5. Verification
146
+
147
+ ### 5.1 All tests pass
148
+
149
+ ```yaml
150
+ depends_on: ["3.1", "3.2", "3.3"]
151
+ parallel: false
152
+ ```
153
+
154
+ - [ ] `[test command]`
155
+
156
+ ### 5.2 Lint clean
157
+
158
+ ```yaml
159
+ depends_on: ["2.3", "4.1"]
160
+ parallel: true
161
+ ```
162
+
163
+ - [ ] `[lint command]`
164
+
165
+ ### 5.3 Build succeeds
166
+
167
+ ```yaml
168
+ depends_on: ["5.1", "5.2"]
169
+ parallel: false
170
+ ```
171
+
172
+ - [ ] `[build command]`
173
+
174
+ ---
175
+
176
+ ## Dependency Graph
177
+
178
+ Visualize task flow (auto-generated from above):
179
+
180
+ ```
181
+ 1.1 ──┬──> 2.1 ──┬──> 2.3 ──┬──> 3.2 ──┬──> 5.1 ──> 5.3
182
+ │ │ │ │
183
+ 1.2 ──┘ 2.2 ──┘ 3.1 ──┘ 5.2 ──┘
184
+
185
+ 4.1 ──┘
186
+ 4.2
187
+ ```
188
+
189
+ **Legend:**
190
+
191
+ - `──>` = depends_on (sequential)
192
+ - Tasks at same level with `parallel: true` = can run concurrently
193
+
194
+ ---
195
+
196
+ ## Notes
197
+
198
+ <!-- Implementation notes, gotchas, or decisions made during task creation -->
@@ -0,0 +1,50 @@
1
+ ---
2
+ purpose: Tech stack, constraints, and integrations for AI context injection
3
+ updated: 2026-02-01
4
+ ---
5
+
6
+ # Tech Stack
7
+
8
+ This file is automatically injected into ALL AI prompts via `opencode.json` instructions[].
9
+
10
+ ## Framework & Language
11
+
12
+ - **Framework:** [e.g., Next.js 15, React 19]
13
+ - **Language:** TypeScript (strict mode)
14
+ - **Runtime:** [e.g., Node.js 22, Bun 1.x]
15
+
16
+ ## Styling & UI
17
+
18
+ - **CSS:** [e.g., Tailwind CSS v4]
19
+ - **Components:** [e.g., shadcn/ui, Radix Primitives]
20
+ - **Design System:** [e.g., Custom tokens in tailwind.config.ts]
21
+
22
+ ## Data & State
23
+
24
+ - **Database:** [e.g., PostgreSQL via Supabase]
25
+ - **ORM:** [e.g., Drizzle, Prisma]
26
+ - **State Management:** [e.g., Zustand, React Query]
27
+ - **API Style:** [e.g., REST, tRPC, GraphQL]
28
+
29
+ ## Testing
30
+
31
+ - **Unit Tests:** [e.g., Vitest]
32
+ - **E2E Tests:** [e.g., Playwright]
33
+ - **Coverage Target:** [e.g., 80%]
34
+
35
+ ## Key Constraints
36
+
37
+ - [Constraint 1: e.g., Must work offline]
38
+ - [Constraint 2: e.g., WCAG 2.1 AA compliance required]
39
+ - [Constraint 3: e.g., Bundle size < 500KB]
40
+
41
+ ## Active Integrations
42
+
43
+ - [Service 1: e.g., Stripe for payments]
44
+ - [Service 2: e.g., Resend for email]
45
+ - [Service 3: e.g., Sentry for error tracking]
46
+
47
+ ---
48
+
49
+ _Update this file when tech stack or constraints change._
50
+ _AI will capture architecture, conventions, and gotchas via the `observation` tool as it works._