opencodekit 0.21.10 → 0.23.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 (213) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +4 -25
  3. package/dist/template/.opencode/.template-manifest.json +115 -188
  4. package/dist/template/.opencode/AGENTS.md +127 -484
  5. package/dist/template/.opencode/README.md +2 -2
  6. package/dist/template/.opencode/agent/build.md +158 -356
  7. package/dist/template/.opencode/agent/explore.md +0 -1
  8. package/dist/template/.opencode/agent/plan.md +7 -16
  9. package/dist/template/.opencode/agent/review.md +0 -1
  10. package/dist/template/.opencode/agent/scout.md +2 -3
  11. package/dist/template/.opencode/agent/vision.md +0 -1
  12. package/dist/template/.opencode/artifacts/.active +1 -0
  13. package/dist/template/.opencode/artifacts/example/plan.md +12 -0
  14. package/dist/template/.opencode/artifacts/example/progress.md +4 -0
  15. package/dist/template/.opencode/artifacts/example/research.md +4 -0
  16. package/dist/template/.opencode/artifacts/example/spec.md +16 -0
  17. package/dist/template/.opencode/artifacts/todo.md +5 -0
  18. package/dist/template/.opencode/artifacts/verify.log +4 -0
  19. package/dist/template/.opencode/command/clarify.md +46 -0
  20. package/dist/template/.opencode/command/commit.md +53 -0
  21. package/dist/template/.opencode/command/create.md +29 -71
  22. package/dist/template/.opencode/command/design.md +1 -2
  23. package/dist/template/.opencode/command/explore.md +3 -4
  24. package/dist/template/.opencode/command/fix.md +55 -0
  25. package/dist/template/.opencode/command/improve-architecture.md +55 -0
  26. package/dist/template/.opencode/command/init.md +86 -69
  27. package/dist/template/.opencode/command/plan.md +30 -60
  28. package/dist/template/.opencode/command/pr.md +10 -28
  29. package/dist/template/.opencode/command/refactor.md +65 -0
  30. package/dist/template/.opencode/command/research.md +7 -29
  31. package/dist/template/.opencode/command/review-codebase.md +6 -13
  32. package/dist/template/.opencode/command/ship.md +136 -78
  33. package/dist/template/.opencode/command/test.md +66 -0
  34. package/dist/template/.opencode/command/ui-review.md +2 -4
  35. package/dist/template/.opencode/command/verify.md +15 -23
  36. package/dist/template/.opencode/dcp.jsonc +96 -85
  37. package/dist/template/.opencode/memory/README.md +4 -6
  38. package/dist/template/.opencode/memory/_templates/adr.md +45 -0
  39. package/dist/template/.opencode/memory/_templates/prd.md +1 -1
  40. package/dist/template/.opencode/memory/_templates/roadmap.md +1 -1
  41. package/dist/template/.opencode/memory/_templates/state.md +1 -1
  42. package/dist/template/.opencode/memory/project/gotchas.md +4 -4
  43. package/dist/template/.opencode/memory/project/project.md +2 -2
  44. package/dist/template/.opencode/memory/project/roadmap.md +1 -1
  45. package/dist/template/.opencode/memory/project/state.md +2 -2
  46. package/dist/template/.opencode/memory/project/tech-stack.md +2 -2
  47. package/dist/template/.opencode/memory/session-context.md +1 -1
  48. package/dist/template/.opencode/opencode.json +14 -152
  49. package/dist/template/.opencode/plugin/README.md +2 -2
  50. package/dist/template/.opencode/plugin/guard.ts +62 -0
  51. package/dist/template/.opencode/plugin/{lib/memory-admin-tools.ts → memory/admin.ts} +4 -4
  52. package/dist/template/.opencode/plugin/{lib → memory}/capture.ts +1 -1
  53. package/dist/template/.opencode/plugin/{lib → memory}/compile.ts +2 -2
  54. package/dist/template/.opencode/plugin/{lib → memory}/context.ts +1 -1
  55. package/dist/template/.opencode/plugin/{lib → memory}/curator.ts +1 -1
  56. package/dist/template/.opencode/plugin/{lib → memory}/db/observations.ts +102 -3
  57. package/dist/template/.opencode/plugin/{lib → memory}/db/schema.ts +43 -1
  58. package/dist/template/.opencode/plugin/{lib → memory}/db/types.ts +22 -0
  59. package/dist/template/.opencode/plugin/{lib/memory-db.ts → memory/db.ts} +1 -1
  60. package/dist/template/.opencode/plugin/{lib → memory}/distill.ts +1 -1
  61. package/dist/template/.opencode/plugin/{lib/memory-helpers.ts → memory/helpers.ts} +5 -1
  62. package/dist/template/.opencode/plugin/{lib/memory-hooks.ts → memory/hooks.ts} +1 -1
  63. package/dist/template/.opencode/plugin/{lib → memory}/index-generator.ts +2 -2
  64. package/dist/template/.opencode/plugin/{lib → memory}/inject.ts +1 -1
  65. package/dist/template/.opencode/plugin/{lib → memory}/lint.ts +2 -2
  66. package/dist/template/.opencode/plugin/memory/tools.ts +322 -0
  67. package/dist/template/.opencode/plugin/{lib → memory}/validate.ts +2 -2
  68. package/dist/template/.opencode/plugin/memory.ts +7 -17
  69. package/dist/template/.opencode/plugin/srcwalk.ts +721 -0
  70. package/dist/template/.opencode/skill/agent-code-quality-gate/SKILL.md +98 -0
  71. package/dist/template/.opencode/skill/behavioral-kernel/SKILL.md +52 -0
  72. package/dist/template/.opencode/skill/brainstorming/SKILL.md +1 -1
  73. package/dist/template/.opencode/skill/browser-testing-with-devtools/SKILL.md +85 -0
  74. package/dist/template/.opencode/skill/code-cleanup/SKILL.md +114 -0
  75. package/dist/template/.opencode/skill/code-navigation/SKILL.md +142 -0
  76. package/dist/template/.opencode/skill/code-review-and-quality/SKILL.md +131 -0
  77. package/dist/template/.opencode/skill/context-engineering/SKILL.md +1 -1
  78. package/dist/template/.opencode/skill/debugging-and-error-recovery/SKILL.md +109 -0
  79. package/dist/template/.opencode/skill/deep-module-design/SKILL.md +207 -0
  80. package/dist/template/.opencode/skill/development-lifecycle/SKILL.md +26 -45
  81. package/dist/template/.opencode/skill/gemini-large-context/SKILL.md +4 -4
  82. package/dist/template/.opencode/skill/git-workflow-and-versioning/SKILL.md +77 -0
  83. package/dist/template/.opencode/skill/grill-me/SKILL.md +140 -0
  84. package/dist/template/.opencode/skill/memory-system/SKILL.md +9 -10
  85. package/dist/template/.opencode/skill/opensrc/references/example-workflow.md +1 -1
  86. package/dist/template/.opencode/skill/planning-and-task-breakdown/SKILL.md +116 -0
  87. package/dist/template/.opencode/skill/shipping-and-launch/SKILL.md +95 -0
  88. package/dist/template/.opencode/skill/source-driven-development/SKILL.md +103 -0
  89. package/dist/template/.opencode/skill/spec-driven-development/SKILL.md +121 -0
  90. package/dist/template/.opencode/skill/srcwalk/SKILL.md +161 -0
  91. package/dist/template/.opencode/skill/subagent-driven-development/SKILL.md +1 -1
  92. package/dist/template/.opencode/skill/ubiquitous-language/SKILL.md +184 -0
  93. package/dist/template/.opencode/skill/using-git-worktrees/SKILL.md +6 -6
  94. package/dist/template/.opencode/skill/verification-before-completion/SKILL.md +6 -6
  95. package/dist/template/.opencode/skill/verification-before-completion/references/VERIFICATION_PROTOCOL.md +5 -5
  96. package/package.json +76 -76
  97. package/dist/template/.opencode/AGENT_ALIGNMENT.md +0 -564
  98. package/dist/template/.opencode/agent/painter.md +0 -83
  99. package/dist/template/.opencode/command/compound.md +0 -240
  100. package/dist/template/.opencode/command/curate.md +0 -299
  101. package/dist/template/.opencode/command/handoff.md +0 -149
  102. package/dist/template/.opencode/command/health.md +0 -356
  103. package/dist/template/.opencode/command/init-context.md +0 -297
  104. package/dist/template/.opencode/command/init-user.md +0 -125
  105. package/dist/template/.opencode/command/iterate.md +0 -200
  106. package/dist/template/.opencode/command/lfg.md +0 -173
  107. package/dist/template/.opencode/command/resume.md +0 -78
  108. package/dist/template/.opencode/command/status.md +0 -126
  109. package/dist/template/.opencode/command/ui-slop-check.md +0 -169
  110. package/dist/template/.opencode/plans/1768385996691-silent-wizard.md +0 -247
  111. package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +0 -418
  112. package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +0 -170
  113. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +0 -278
  114. package/dist/template/.opencode/plans/1770112267595-shiny-rocket.md +0 -258
  115. package/dist/template/.opencode/plans/swarm-protocol.md +0 -123
  116. package/dist/template/.opencode/plugin/lib/memory-tools.ts +0 -535
  117. package/dist/template/.opencode/skill/agent-evals/SKILL.md +0 -208
  118. package/dist/template/.opencode/skill/anti-ai-slop/SKILL.md +0 -76
  119. package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +0 -122
  120. package/dist/template/.opencode/skill/augment-context-engine/mcp.json +0 -6
  121. package/dist/template/.opencode/skill/beads/SKILL.md +0 -182
  122. package/dist/template/.opencode/skill/beads/references/BEST_PRACTICES.md +0 -27
  123. package/dist/template/.opencode/skill/beads/references/BOUNDARIES.md +0 -219
  124. package/dist/template/.opencode/skill/beads/references/DEPENDENCIES.md +0 -124
  125. package/dist/template/.opencode/skill/beads/references/EXAMPLES.md +0 -45
  126. package/dist/template/.opencode/skill/beads/references/FILE_CLAIMING.md +0 -101
  127. package/dist/template/.opencode/skill/beads/references/GIT_SYNC.md +0 -25
  128. package/dist/template/.opencode/skill/beads/references/HIERARCHY.md +0 -71
  129. package/dist/template/.opencode/skill/beads/references/MULTI_AGENT.md +0 -40
  130. package/dist/template/.opencode/skill/beads/references/RESUMABILITY.md +0 -177
  131. package/dist/template/.opencode/skill/beads/references/SESSION_PROTOCOL.md +0 -61
  132. package/dist/template/.opencode/skill/beads/references/TASK_CREATION.md +0 -38
  133. package/dist/template/.opencode/skill/beads/references/TROUBLESHOOTING.md +0 -38
  134. package/dist/template/.opencode/skill/beads/references/WORKFLOWS.md +0 -226
  135. package/dist/template/.opencode/skill/brand-asset-protocol/SKILL.md +0 -222
  136. package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +0 -224
  137. package/dist/template/.opencode/skill/code-simplification/SKILL.md +0 -211
  138. package/dist/template/.opencode/skill/context-condensation/SKILL.md +0 -149
  139. package/dist/template/.opencode/skill/context-initialization/SKILL.md +0 -69
  140. package/dist/template/.opencode/skill/context-management/SKILL.md +0 -390
  141. package/dist/template/.opencode/skill/deep-research/SKILL.md +0 -384
  142. package/dist/template/.opencode/skill/design-direction-advisor/SKILL.md +0 -139
  143. package/dist/template/.opencode/skill/dispatching-parallel-agents/SKILL.md +0 -191
  144. package/dist/template/.opencode/skill/executing-plans/SKILL.md +0 -247
  145. package/dist/template/.opencode/skill/figma-go/SKILL.md +0 -65
  146. package/dist/template/.opencode/skill/finishing-a-development-branch/SKILL.md +0 -357
  147. package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +0 -62
  148. package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +0 -29
  149. package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +0 -237
  150. package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +0 -38
  151. package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +0 -509
  152. package/dist/template/.opencode/skill/hi-fi-prototype-html/SKILL.md +0 -253
  153. package/dist/template/.opencode/skill/html-deck-export/SKILL.md +0 -189
  154. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +0 -413
  155. package/dist/template/.opencode/skill/memory-grounding/SKILL.md +0 -68
  156. package/dist/template/.opencode/skill/playwriter/SKILL.md +0 -158
  157. package/dist/template/.opencode/skill/portless/SKILL.md +0 -109
  158. package/dist/template/.opencode/skill/prd/SKILL.md +0 -146
  159. package/dist/template/.opencode/skill/prd-task/SKILL.md +0 -182
  160. package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +0 -124
  161. package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +0 -90
  162. package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +0 -91
  163. package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +0 -157
  164. package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +0 -263
  165. package/dist/template/.opencode/skill/reconcile/SKILL.md +0 -183
  166. package/dist/template/.opencode/skill/reflection-checkpoints/SKILL.md +0 -183
  167. package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +0 -443
  168. package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +0 -108
  169. package/dist/template/.opencode/skill/requesting-code-review/review.md +0 -160
  170. package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +0 -134
  171. package/dist/template/.opencode/skill/screenshot/SKILL.md +0 -48
  172. package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +0 -54
  173. package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +0 -22
  174. package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +0 -40
  175. package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +0 -126
  176. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +0 -163
  177. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +0 -585
  178. package/dist/template/.opencode/skill/security-threat-model/SKILL.md +0 -36
  179. package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +0 -255
  180. package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +0 -32
  181. package/dist/template/.opencode/skill/sharing-skills/SKILL.md +0 -214
  182. package/dist/template/.opencode/skill/skill-creator/SKILL.md +0 -181
  183. package/dist/template/.opencode/skill/skill-installer/SKILL.md +0 -58
  184. package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +0 -21
  185. package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +0 -313
  186. package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +0 -106
  187. package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +0 -244
  188. package/dist/template/.opencode/skill/swarm-coordination/references/architecture.md +0 -39
  189. package/dist/template/.opencode/skill/swarm-coordination/references/delegation-worker-protocol.md +0 -145
  190. package/dist/template/.opencode/skill/swarm-coordination/references/dependency-graph.md +0 -50
  191. package/dist/template/.opencode/skill/swarm-coordination/references/drift-check.md +0 -90
  192. package/dist/template/.opencode/skill/swarm-coordination/references/integration-beads.md +0 -20
  193. package/dist/template/.opencode/skill/swarm-coordination/references/launch-flow.md +0 -186
  194. package/dist/template/.opencode/skill/swarm-coordination/references/reconciler.md +0 -172
  195. package/dist/template/.opencode/skill/swarm-coordination/references/tier-enforcement.md +0 -78
  196. package/dist/template/.opencode/skill/swarm-coordination/references/tmux-integration.md +0 -134
  197. package/dist/template/.opencode/skill/systematic-debugging/SKILL.md +0 -402
  198. package/dist/template/.opencode/skill/terse-output-mode/SKILL.md +0 -95
  199. package/dist/template/.opencode/skill/think-in-code/SKILL.md +0 -136
  200. package/dist/template/.opencode/skill/ux-quality-gates/SKILL.md +0 -137
  201. package/dist/template/.opencode/skill/v1-run/SKILL.md +0 -175
  202. package/dist/template/.opencode/skill/v1-run/mcp.json +0 -6
  203. package/dist/template/.opencode/skill/verification-gates/SKILL.md +0 -63
  204. package/dist/template/.opencode/skill/visual-analysis/SKILL.md +0 -154
  205. package/dist/template/.opencode/skill/web-design-guidelines/SKILL.md +0 -46
  206. package/dist/template/.opencode/skill/workspace-setup/SKILL.md +0 -76
  207. package/dist/template/.opencode/skill/writing-plans/SKILL.md +0 -320
  208. /package/dist/template/.opencode/plugin/{lib → memory}/compact.ts +0 -0
  209. /package/dist/template/.opencode/plugin/{lib → memory}/db/graph.ts +0 -0
  210. /package/dist/template/.opencode/plugin/{lib → memory}/db/maintenance.ts +0 -0
  211. /package/dist/template/.opencode/plugin/{lib → memory}/db/pipeline.ts +0 -0
  212. /package/dist/template/.opencode/plugin/{lib → memory}/notify.ts +0 -0
  213. /package/dist/template/.opencode/plugin/{lib → memory}/operation-log.ts +0 -0
@@ -0,0 +1,140 @@
1
+ ---
2
+ name: grill-me
3
+ description: Adversarial interrogation of ideas before implementation — pushes on ambiguity, hidden assumptions, missing constraints, and hand-waving. Use when you have a rough idea, ADR, PRD, or spec that needs to survive scrutiny before code is written.
4
+ version: 1.0.0
5
+ tags: [planning, review, decision]
6
+ dependencies: [brainstorming, spec-driven-development]
7
+ agent_types: [planner, worker, reviewer]
8
+ tools: []
9
+ ---
10
+
11
+ # Grill Me — Adversarial Idea Interrogation
12
+
13
+ > **Replaces** skipping straight from idea to implementation without pressure-testing the plan.
14
+ > **Sits between** `brainstorming` (collaborative refinement) and `spec-driven-development` (formal spec/ADR creation).
15
+
16
+ ## When to Use
17
+
18
+ - You have a rough idea that needs to be tested before implementation
19
+ - You just finished brainstorming and need to find the flaws
20
+ - You have an existing ADR, PRD, or spec that needs to be stress-tested
21
+ - The agent (me) seems unclear about what to build and you want to surface that confusion
22
+
23
+ ## When NOT to Use
24
+
25
+ - Requirements are already well-understood and the task is mechanical
26
+ - You are already in implementation with a validated plan
27
+ - The task is trivial (< 1 file, no decisions needed)
28
+ - You need creative exploration (use `brainstorming` instead)
29
+
30
+ ## How This Is Different From Brainstorming
31
+
32
+ | Brainstorming | Grill Me |
33
+ |---|---|
34
+ | Collaborative exploration | Adversarial interrogation |
35
+ | "What do we need to build?" | "Why is this idea wrong or incomplete?" |
36
+ | Generates options and approaches | Destroys weak options |
37
+ | Asks clarifying questions | Asks challenging, uncomfortable questions |
38
+ | Refines the idea | Tests if the idea survives scrutiny |
39
+ | Output: a better design | Output: resolved uncertainties, killed bad ideas, hardened decisions |
40
+
41
+ ## Process
42
+
43
+ ### Phase 1: Surface the Idea
44
+
45
+ Read the available context — the user's prompt, any existing docs, the repo structure, relevant code. Identify exactly what is being proposed. Restate it clearly so the human can correct any misunderstanding.
46
+
47
+ ### Phase 2: Interrogate
48
+
49
+ Go after the idea systematically. Do not be polite. Do not assume the idea is sound. Push on:
50
+
51
+ **Ambiguity**
52
+ - Which terms in this description could mean different things to different people?
53
+ - What's the actual scope boundary — what's explicitly in, what's explicitly out?
54
+ - Can you point to a concrete example of the expected behavior?
55
+
56
+ **Hidden assumptions**
57
+ - What does this idea assume about the existing system?
58
+ - What does it assume about user behavior, data quality, or failure modes?
59
+ - What does it assume about team capacity, deployment timeline, or external dependencies?
60
+ - What does it assume the human reviewer will accept without question?
61
+
62
+ **Missing constraints**
63
+ - What constraints are implicit but never stated?
64
+ - Performance? Security? Backward compatibility? Error handling? Observability?
65
+ - What existing patterns in the codebase constrain this design?
66
+ - What deadlines or external commitments constrain the approach?
67
+
68
+ **Hand-waving**
69
+ - Where does the idea say "we'll figure that out later"?
70
+ - Where are the "obviously" or "simply" or "just" statements? Those are hiding complexity.
71
+ - What's the hardest part of this idea, and how does the current plan address it?
72
+ - What would have to go wrong for this idea to fail, and how would we know?
73
+
74
+ **Integration & blast radius**
75
+ - What existing code would this touch?
76
+ - What would break if this change were deployed?
77
+ - What tests would need to change?
78
+ - What documentation would become outdated?
79
+
80
+ ### Phase 3: Resolve
81
+
82
+ For each question raised in Phase 2:
83
+
84
+ 1. Present the question to the human with a concrete example
85
+ 2. Let the human answer or make a decision
86
+ 3. Record the resolution
87
+ 4. Update any existing documents (ADR, PRD, spec) with the new information
88
+
89
+ If the human cannot answer a question, flag it as a blocker — do not proceed to implementation until it's resolved.
90
+
91
+ ### Phase 4: Assess
92
+
93
+ After all questions have been addressed:
94
+
95
+ - **Is the idea clearly defined enough to proceed?** YES → recommend writing it up as an ADR or spec via `documentation-and-adrs` or `spec-driven-development`.
96
+ - **Is the idea fundamentally flawed?** YES → say so directly. Explain why and suggest alternatives.
97
+ - **Are there too many unresolved questions?** YES → recommend another brainstorming round or more research before committing to implementation.
98
+
99
+ ### Phase 5 (optional): Grill-with-Docs
100
+
101
+ If you're working with an existing ADR, PRD, or spec document:
102
+
103
+ 1. Read the document(s) thoroughly
104
+ 2. Apply the same interrogation against the document content
105
+ 3. For each gap found, propose edits to the document
106
+ 4. Present the proposed edits to the human for approval
107
+ 5. Apply approved edits
108
+
109
+ ## Success Criteria
110
+
111
+ The grilling is complete when:
112
+ - Questions start repeating (you've exhausted the line of inquiry)
113
+ - Added precision stops changing the plan (diminishing returns)
114
+ - Every ambiguity, assumption, constraint gap, and hand-wave has been surfaced and either resolved or flagged as a blocker
115
+ - You can state clearly: "this idea is ready for an ADR/spec" or "this idea should be killed/reworked"
116
+
117
+ ## Output
118
+
119
+ Leave behind a clear summary of:
120
+ - What was challenged and resolved
121
+ - What decisions were made
122
+ - What remains blocked or unresolved
123
+ - Recommended next step (ADR, spec, more research, kill the idea)
124
+
125
+ This summary becomes the input for the next phase (ADR writing or spec-driven-development).
126
+
127
+ ## Anti-Patterns
128
+
129
+ - **Being too nice.** This is not a collaborative exploration — this is an adversarial review. If you're not making the human think hard, you're doing it wrong.
130
+ - **Grilling during implementation.** Do this BEFORE any code is written. Once files change, the cost of finding a flaw is much higher.
131
+ - **Grilling trivial tasks.** A one-line bugfix doesn't need this. Use judgment.
132
+ - **Accepting "we'll fix it later."** If something is identified as risky, it needs a decision now or a clear blocker flag.
133
+ - **Grilling without context.** Read the repo, understand the existing patterns, and ground your questions in actual code.
134
+
135
+ ## See Also
136
+
137
+ - `brainstorming` — collaborative exploration (use before grilling)
138
+ - `spec-driven-development` — formal spec writing (use after grilling)
139
+ - `documentation-and-adrs` — recording decisions in ADR format
140
+ - `development-lifecycle` — full phased workflow
@@ -31,21 +31,20 @@ dependencies: []
31
31
  - Run `memory-search` with task keywords before implementation.
32
32
  - Check recent handoffs when resuming interrupted work.
33
33
  2. **Calibrate (progressive disclosure)**
34
- - Use search results as index.
35
- - Fetch full entries only for relevant IDs (`memory-get`).
36
- - Pull timeline context only when sequencing matters (`memory-timeline`).
34
+ - Use search results as index; `memory-search({ file: "..." })` for file access.
35
+ - Retrieve full observation details from search output.
37
36
  3. **Record (high-signal only)**
38
37
  - Create `observation` for decisions, bugfixes, patterns, warnings, or durable learnings.
39
38
  - Include searchable concepts and concrete file references.
40
39
  4. **Handoff (if session boundary)**
41
- - Write a concise status note with completed work, blockers, and next steps using `memory-update` under `handoffs/`.
40
+ - Write a concise status note with completed work, blockers, and next steps using `observation`.
42
41
 
43
42
  ## What Goes Where
44
43
 
45
44
  | Store | Put Here | Avoid Here |
46
45
  | --- | --- | --- |
47
- | `observation` (SQLite) | Events: decisions, bugfixes, reusable patterns, warnings | Temporary notes, speculative ideas without evidence |
48
- | `memory-update` files | Durable docs: handoffs, research, project notes | Every minor runtime detail from a single debug run |
46
+ | `observation` (SQLite) | Events: decisions, bugfixes, reusable patterns, warnings, handoffs | Temporary notes, speculative ideas without evidence |
47
+ | `memory-search` by file | Durable docs: handoffs, research, project notes | Every minor runtime detail from a single debug run |
49
48
  | Auto pipeline | Captured messages + distillations (automatic) | Manual copying of full transcripts |
50
49
 
51
50
  ## Observation Quality Bar
@@ -66,7 +65,7 @@ If most answers are "no", skip creating the observation.
66
65
  | Storing transient debugging info as permanent observations | Pollutes search results with low-value noise | Keep transient info in session context; record only durable findings |
67
66
  | Creating observations for every small finding (signal-to-noise) | Important items get buried and retrieval quality drops | Batch minor notes; publish one distilled observation per meaningful outcome |
68
67
  | Not searching memory before creating duplicate observations | Produces conflicting/duplicated records | Run `memory-search` first; update/supersede existing records when appropriate |
69
- | Using `memory-update` for data that should be an observation | Durable events become hard to discover and rank | Use `observation` for events; reserve `memory-update` for document-style files |
68
+ | Using `observation` with `file` param for document-style content | Document-style content should use `memory-search({ file: "..." })` for file access | Use `observation` for events; write to memory files when structured document storage is needed |
70
69
 
71
70
  ## Verification
72
71
 
@@ -114,9 +113,9 @@ memory-admin({ operation: "log" })
114
113
 
115
114
  ### Reading Compiled Artifacts
116
115
  ```
117
- memory-read({ file: "index" }) // Full observation catalog
118
- memory-read({ file: "compiled/auth" }) // Compiled article for "auth" concept
119
- memory-read({ file: "log" }) // Operation audit trail
116
+ memory-search({ file: "index" }) // Full observation catalog
117
+ memory-search({ file: "compiled/auth" }) // Compiled article for "auth" concept
118
+ memory-search({ file: "log" }) // Operation audit trail
120
119
  ```
121
120
 
122
121
  ## Validation Gate
@@ -39,7 +39,7 @@ read({
39
39
 
40
40
  // 6. Document findings
41
41
  write({
42
- filePath: ".beads/artifacts/br-xxx/research.md",
42
+ filePath: ".opencode/artifacts/<slug>/research.md",
43
43
  content: `# Zod Async Refinements
44
44
 
45
45
  **Finding:** Async refinements use \`parseAsync()\` not \`parse()\`
@@ -0,0 +1,116 @@
1
+ ---
2
+ name: planning-and-task-breakdown
3
+ description: Decomposes a spec into small verifiable tasks with dependencies and acceptance checks. Use when a feature/change has a spec or clear goal and needs an executable implementation plan.
4
+ version: 1.0.0
5
+ tags: [workflow, planning, agent-coordination]
6
+ dependencies: [spec-driven-development]
7
+ agent_types: [planner]
8
+ tools: [TaskCreate, TaskUpdate, memory, srcwalk_search]
9
+ ---
10
+
11
+ # Planning & Task Breakdown
12
+
13
+ ## Overview
14
+
15
+ A good plan creates leverage for builders. It says what must become true, where to work, what not to touch, and how to prove success.
16
+
17
+ Core principle: plan backward from observable truths into artifacts, wiring, tasks, dependencies, and verification.
18
+
19
+ ## When to Use
20
+
21
+ - A spec or clear goal exists and implementation is non-trivial.
22
+ - Work spans multiple files, phases, or agents.
23
+ - Tasks need dependency ordering or parallelization decisions.
24
+ - You need a handoff artifact for worker agents.
25
+
26
+ ## When NOT to Use
27
+
28
+ - Single-file fixes that can be implemented directly.
29
+ - Requirements are still unclear; use `spec-driven-development` first.
30
+ - You are debugging an active failure; use `debugging-and-error-recovery`.
31
+
32
+ ## Workflow
33
+
34
+ 1. Restate the goal and constraints.
35
+ 2. Convert observable truths into required artifacts.
36
+ 3. Identify required wiring between artifacts.
37
+ 4. Mark key links most likely to break.
38
+ 5. Decompose into vertical slices, not horizontal layers.
39
+ 6. Limit each task to a small scope with exact files when known.
40
+ 7. Add acceptance checks and verification commands to every task.
41
+ 8. Build a dependency graph and execution order.
42
+ 9. Create tracked tasks or write a plan artifact.
43
+
44
+ ## Task Packet Template
45
+
46
+ ```markdown
47
+ ## Task N: [Name]
48
+
49
+ Goal: [one sentence]
50
+ Files in scope:
51
+ - [path]
52
+ Acceptance checks:
53
+ - [behavior] -> verify with [command/check]
54
+ Non-goals:
55
+ - [explicit exclusion]
56
+ Dependencies:
57
+ - [task id/name or none]
58
+ Review depth: targeted|standard|full
59
+ ```
60
+
61
+ ## Slicing Rules
62
+
63
+ - Prefer vertical slices that produce end-to-end behavior.
64
+ - Put risky unknowns first.
65
+ - Do not mix refactors with feature behavior unless the refactor is required.
66
+ - If one task touches more than five files, split it.
67
+ - If a task needs architectural judgment, route to `planner`, not `worker`.
68
+
69
+ ## Common Rationalizations
70
+
71
+ | Rationalization | Rebuttal |
72
+ | --- | --- |
73
+ | "I'll make tasks as I go" | Hidden dependencies appear too late. Plan the graph first. |
74
+ | "Layer-by-layer is cleaner" | Horizontal layers delay integration and hide broken wiring. |
75
+ | "Acceptance criteria are obvious" | Workers need objective checks, not intent. |
76
+ | "One big task is simpler" | Big tasks are hard to review, rollback, and verify. |
77
+
78
+ ## Red Flags
79
+
80
+ - Tasks named after vague activities like "update backend".
81
+ - No verification command/check per task.
82
+ - UI, API, and data work split so nothing works until the end.
83
+ - Multiple agents assigned to overlapping files without sequencing.
84
+ - Plan omits non-goals or rollback considerations.
85
+
86
+ ## Verification
87
+
88
+ - Every task has goal, scope, acceptance checks, non-goals, dependencies.
89
+ - Execution order respects dependencies.
90
+ - Key links are identified for reviewer verification.
91
+ - The first task can be implemented without further planning.
92
+
93
+ ## Skill Result Contract
94
+
95
+ ```xml
96
+ <skill_result>
97
+ <skill>planning-and-task-breakdown</skill>
98
+ <status>success|partial|blocked|failure</status>
99
+ <evidence>Plan/task packets include scope, dependencies, and verification</evidence>
100
+ <artifacts>Task ids or plan file path</artifacts>
101
+ <risks>Large tasks, unresolved dependencies, or none</risks>
102
+ </skill_result>
103
+ ```
104
+
105
+
106
+ ## Consolidated Planning Workflow
107
+
108
+ This is the canonical active planning skill. It absorbs PRD-to-plan and writing-plans responsibilities. Use spec-driven-development first when requirements are still unclear.
109
+
110
+ Plans should include:
111
+ - scope and non-goals;
112
+ - ordered tasks with dependencies;
113
+ - exact files or search targets when known;
114
+ - acceptance checks per task;
115
+ - review and verification gates;
116
+ - handoff details for subagents with zero assumed context.
@@ -0,0 +1,95 @@
1
+ ---
2
+ name: shipping-and-launch
3
+ description: Guides final readiness checks, rollback planning, documentation, and release handoff. Use when preparing to merge, deploy, release, or declare a development branch complete.
4
+ version: 1.0.0
5
+ tags: [shipping, workflow, release]
6
+ dependencies: [verification-before-completion, documentation-and-adrs]
7
+ agent_types: [planner, reviewer]
8
+ tools: [bash, ask_user_question, memory]
9
+ ---
10
+
11
+ # Shipping & Launch
12
+
13
+ ## Overview
14
+
15
+ Shipping should be boring because risk was removed earlier. The ship phase verifies readiness, documents what changed, and makes rollback possible.
16
+
17
+ Core principle: do not ship work that cannot be verified, explained, or rolled back.
18
+
19
+ ## When to Use
20
+
21
+ - User says ship, merge, deploy, release, or finish.
22
+ - Before closing tracked work as complete.
23
+ - Before creating a PR or release notes.
24
+ - After build/review/QA phases pass.
25
+
26
+ ## When NOT to Use
27
+
28
+ - Work is still being implemented.
29
+ - Critical review findings are open.
30
+ - Verification cannot run and no user-approved exception exists.
31
+
32
+ ## Workflow
33
+
34
+ 1. Check worktree state and identify intended changes.
35
+ 2. Confirm spec/plan acceptance criteria are met.
36
+ 3. Run required verification or use a fresh valid verification stamp.
37
+ 4. Run phantom completion checks for stubs, placeholders, and disconnected wiring.
38
+ 5. Review security/secrets/configuration risk in the diff.
39
+ 6. Confirm docs/ADRs/changelog updates are sufficient.
40
+ 7. Define rollback path: revert commit, feature flag, migration rollback, or manual procedure.
41
+ 8. Present ship options when action is irreversible: PR, merge, deploy, hold.
42
+ 9. Record handoff/memory when useful.
43
+
44
+ ## Pre-Ship Checklist
45
+
46
+ - Tests relevant to changed behavior pass.
47
+ - Build/typecheck/lint pass or exceptions are documented.
48
+ - No high-severity review findings remain.
49
+ - No secrets or local-only paths in diff.
50
+ - User-facing/API behavior is documented.
51
+ - Rollback path is clear.
52
+ - User approval exists for irreversible actions.
53
+
54
+ ## Common Rationalizations
55
+
56
+ | Rationalization | Rebuttal |
57
+ | --- | --- |
58
+ | "Tests passed earlier" | Fresh changes require fresh evidence or a valid unchanged-state stamp. |
59
+ | "Rollback is just git revert" | Migrations, flags, queues, and external state may need more. |
60
+ | "Docs can wait" | Shipped behavior without docs becomes support debt. |
61
+ | "Small release, no checklist" | Small releases still leak secrets and break config. |
62
+
63
+ ## Red Flags
64
+
65
+ - Completion claim without verification evidence.
66
+ - Unresolved P0/P1 findings.
67
+ - No rollback plan for data or API changes.
68
+ - Changelog omits user-visible behavior changes.
69
+ - Deployment/merge attempted without explicit user approval.
70
+ - Placeholder/stub patterns remain in modified code.
71
+
72
+ ## Verification
73
+
74
+ - Verification commands and outputs are recorded.
75
+ - Acceptance criteria are checked line-by-line.
76
+ - Phantom completion scan is clean or exceptions are explained.
77
+ - Rollback plan is documented.
78
+ - Final action is approved when irreversible.
79
+
80
+ ## Skill Result Contract
81
+
82
+ ```xml
83
+ <skill_result>
84
+ <skill>shipping-and-launch</skill>
85
+ <status>success|partial|blocked|failure</status>
86
+ <evidence>Verification commands, acceptance audit, review status, rollback plan</evidence>
87
+ <artifacts>Changelog, PR, release notes, handoff, or none</artifacts>
88
+ <risks>Open findings, skipped checks, deployment risk, or none</risks>
89
+ </skill_result>
90
+ ```
91
+
92
+
93
+ ## Consolidated Branch Completion
94
+
95
+ `finishing-a-development-branch` was removed as a separate optional skill. Keep merge/PR/cleanup choices, release handoff, rollback planning, and completion evidence in this canonical shipping workflow.
@@ -0,0 +1,103 @@
1
+ ---
2
+ name: source-driven-development
3
+ description: Grounds implementation decisions in official docs, source code, and cited references. Use when using unfamiliar libraries, external APIs, framework behavior, or current ecosystem guidance.
4
+ version: 1.0.0
5
+ tags: [research, implementation, verification]
6
+ dependencies: []
7
+ agent_types: [scout, planner, worker]
8
+ tools: [context7, websearch, web_fetch, webclaw_scrape, grepsearch, codesearch]
9
+ ---
10
+
11
+ # Source-Driven Development
12
+
13
+ ## Overview
14
+
15
+ Framework guesses become bugs. Source-driven work verifies behavior against authoritative references before implementation.
16
+
17
+ Core principle: cite the source for non-trivial external API decisions, or mark the decision as unverified.
18
+
19
+ ## When to Use
20
+
21
+ - New or unfamiliar library/framework/API.
22
+ - Version-specific behavior matters.
23
+ - Choosing between packages or integration patterns.
24
+ - Error suggests external API misuse.
25
+ - User asks to research current best practice.
26
+
27
+ ## When NOT to Use
28
+
29
+ - Pure local codebase questions; use code search/explore.
30
+ - Stable project conventions already cover the behavior.
31
+ - Trivial syntax you can verify from existing code.
32
+
33
+ ## Source Hierarchy
34
+
35
+ 1. Official docs, specs, release notes.
36
+ 2. Maintained source code and examples.
37
+ 3. Maintainer-authored articles.
38
+ 4. Community posts only when higher sources are absent.
39
+
40
+ Higher-ranked sources win on conflicts.
41
+
42
+ ## Workflow
43
+
44
+ 1. State the question precisely.
45
+ 2. Check memory/local docs for prior decisions.
46
+ 3. Retrieve authoritative sources.
47
+ 4. Verify version compatibility with the project.
48
+ 5. Compare sources if guidance conflicts.
49
+ 6. Extract only the implementation-relevant facts.
50
+ 7. Cite URLs or source refs in the recommendation.
51
+ 8. Mark unresolved uncertainty explicitly.
52
+
53
+ ## Common Rationalizations
54
+
55
+ | Rationalization | Rebuttal |
56
+ | --- | --- |
57
+ | "I know this API" | APIs change; verify version-specific behavior. |
58
+ | "A blog said so" | Blogs lose to official docs/source. |
59
+ | "The package name is obvious" | Similar packages differ in security and maintenance. |
60
+ | "Citations slow us down" | A bad integration costs more than a source check. |
61
+
62
+ ## Red Flags
63
+
64
+ - Unfamiliar API used without citation or local precedent.
65
+ - Community answer conflicts with official docs.
66
+ - Version in docs differs from package version.
67
+ - Agent invents options, flags, or imports.
68
+ - Research dump has no recommendation.
69
+
70
+ ## Verification
71
+
72
+ - Key claims cite authoritative sources.
73
+ - Project/library versions are considered.
74
+ - Implementation recommendation is specific.
75
+ - Unverified assumptions are labeled.
76
+
77
+ ## Skill Result Contract
78
+
79
+ ```xml
80
+ <skill_result>
81
+ <skill>source-driven-development</skill>
82
+ <status>success|partial|blocked|failure</status>
83
+ <evidence>Sources consulted and version checks</evidence>
84
+ <artifacts>Research notes, citations, implementation recommendation</artifacts>
85
+ <risks>Unverified claims, stale docs, conflicting sources, or none</risks>
86
+ </skill_result>
87
+ ```
88
+
89
+
90
+ ## Consolidated Research Workflow
91
+
92
+ This is the canonical active source-grounding skill. It absorbs deep-research and source-code-research for normal work. Use opensrc, webclaw, context7, grepsearch, or gemini-large-context as tool-specific companions only when the source demands them.
93
+
94
+ Evidence hierarchy:
95
+ 1. local code and tests;
96
+ 2. official docs and source;
97
+ 3. maintained examples from reputable repos;
98
+ 4. blog posts or issues with dates and caveats.
99
+
100
+
101
+ ## Removed Optional Companion
102
+
103
+ `v1-run` was removed as an optional package-health skill. Use source-grounded package evaluation, official advisories, lockfile inspection, and package-manager audit commands instead.
@@ -0,0 +1,121 @@
1
+ ---
2
+ name: spec-driven-development
3
+ description: Guides agents from vague request to concrete specification before implementation. Use when starting a new feature, significant change, product idea, or when requirements are ambiguous.
4
+ version: 1.0.0
5
+ tags: [workflow, planning, product]
6
+ dependencies: []
7
+ agent_types: [planner, scout]
8
+ tools: [ask_user_question, TaskCreate, memory]
9
+ ---
10
+
11
+ # Spec-Driven Development
12
+
13
+ ## Overview
14
+
15
+ A spec converts intent into testable truth. Code written before the target is clear becomes rework.
16
+
17
+ Core principle: define observable outcomes, constraints, non-goals, and verification before planning implementation.
18
+
19
+ **Define the vocabulary first.** Every concept in the spec should have one name — that name must match what the code will call it. This is Evans' "ubiquitous language": a shared vocabulary between developers, domain experts, code, and AI context files. Ambiguous language in the spec causes the "AI does the wrong thing" failure mode: the LLM implements what the words say, not what you meant.
20
+
21
+ After writing the spec, extract a glossary of terms. Every capitalized concept in the spec should correspond to exactly one code symbol (type, class, module, function, file). If two terms mean the same thing, pick one. If one term means two things, split it.
22
+
23
+ ## When to Use
24
+
25
+ - User asks for a new feature or significant behavior change.
26
+ - Requirements are vague, conflicting, or missing edge cases.
27
+ - Multiple files/systems will be affected.
28
+ - The work needs acceptance criteria or user-visible behavior.
29
+
30
+ ## When NOT to Use
31
+
32
+ - Tiny mechanical edits with obvious expected behavior.
33
+ - Emergency bug fixes where reproduction is already clear; use `debugging-and-error-recovery`.
34
+ - Pure research with no implementation decision; use `source-driven-development`.
35
+
36
+ ## Workflow
37
+
38
+ 1. State the goal as an outcome, not a task.
39
+ 2. **Establish vocabulary**: define the key terms and map them to code concepts.
40
+ 3. Derive 3-7 observable truths from the user's perspective.
41
+ 4. Identify constraints: technical, UX, security, performance, compatibility.
42
+ 5. Define non-goals to prevent scope creep.
43
+ 6. List affected surfaces: files, APIs, commands, UI screens, data models.
44
+ 7. Define acceptance criteria with verification methods.
45
+ 8. **Check vocabulary consistency**: does every spec term map to exactly one code symbol? Are any terms overloaded?
46
+ 9. Ask at most 1-4 focused questions only if missing information changes the design.
47
+ 10. Hand off to `planning-and-task-breakdown` when the spec is stable.
48
+
49
+ ## Spec Template
50
+
51
+ ```markdown
52
+ # Spec: [Name]
53
+
54
+ ## Goal
55
+ [Outcome in one sentence]
56
+
57
+ ## Vocabulary
58
+ | Term | Definition | Code symbol |
59
+ |------|------------|-------------|
60
+ | ... | ... | ... |
61
+
62
+ Every concept should have one name. If two terms mean the same thing, consolidate. If one term means two things, split it.
63
+
64
+ ## Observable Truths
65
+ - [User/system can observe X]
66
+
67
+ ## Constraints
68
+ - [Hard constraint]
69
+
70
+ ## Non-Goals
71
+ - [Explicitly out of scope]
72
+
73
+ ## Affected Surfaces
74
+ - [File/API/UI/data area]
75
+
76
+ ## Acceptance Criteria
77
+ - [Criterion] -> verify with [command/check/manual observation]
78
+
79
+ ## Open Questions
80
+ - [Question or none]
81
+ ```
82
+
83
+ ## Common Rationalizations
84
+
85
+ | Rationalization | Rebuttal |
86
+ | --- | --- |
87
+ | "The user already explained it" | Explanation is not acceptance criteria. Write the target down. |
88
+ | "I'll discover requirements while coding" | Discovery during coding causes churn and hidden scope expansion. |
89
+ | "This is obvious" | Obvious to you is not a contract for the next agent or reviewer. |
90
+ | "The AI will figure out what I mean" | The AI will implement exactly what the spec says. Ambiguous language = wrong implementation. |
91
+ | "Questions slow us down" | One precise question is cheaper than implementing the wrong behavior. |
92
+
93
+ ## Red Flags
94
+
95
+ - No explicit non-goals for a broad feature.
96
+ - Acceptance criteria are phrased as implementation tasks.
97
+ - Edge cases are deferred without user agreement.
98
+ - The plan starts before observable truths are defined.
99
+ - User-visible behavior has no verification method.
100
+ - **No vocabulary section** — missing ubiquitous language means AI will guess term meanings.
101
+ - **Same term used for different concepts** — e.g. "Order" means creation flow in one place and fulfillment in another.
102
+ - **Different terms for the same concept** — e.g. "User" vs "Account" vs "Profile" used interchangeably.
103
+
104
+ ## Verification
105
+
106
+ - Goal is outcome-shaped.
107
+ - Observable truths are human-verifiable.
108
+ - Acceptance criteria include commands/checks where possible.
109
+ - Ambiguities that affect implementation are resolved or marked as assumptions.
110
+
111
+ ## Skill Result Contract
112
+
113
+ ```xml
114
+ <skill_result>
115
+ <skill>spec-driven-development</skill>
116
+ <status>success|partial|blocked|failure</status>
117
+ <evidence>Spec sections completed and questions/assumptions recorded</evidence>
118
+ <artifacts>Spec path or inline spec summary</artifacts>
119
+ <risks>Unresolved assumptions or none</risks>
120
+ </skill_result>
121
+ ```