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
@@ -1,320 +0,0 @@
1
- ---
2
- name: writing-plans
3
- description: Use when design is complete and you need detailed implementation tasks for engineers with zero codebase context - creates comprehensive implementation plans with exact file paths, complete code examples, and verification steps assuming engineer has minimal domain knowledge
4
- version: 1.0.0
5
- tags: [planning, documentation]
6
- dependencies: []
7
- ---
8
-
9
- # Writing Plans
10
-
11
- > **Replaces** vague implementation plans that assume the engineer knows the codebase — produces zero-ambiguity plans with exact file paths and complete code examples
12
- ## When to Use
13
-
14
- - Design/PRD is complete and you need a detailed, step-by-step implementation plan
15
- - You need a plan for engineers with minimal codebase context and explicit file paths
16
-
17
- ## When NOT to Use
18
-
19
- - Requirements are still being defined (use brainstorming or prd)
20
- - You already have a vetted plan and only need execution (use executing-plans)
21
-
22
- ## Overview
23
-
24
- Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
25
-
26
- Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
27
-
28
- **Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
29
-
30
- **Context:** This should be run in a dedicated worktree (created by brainstorming skill).
31
-
32
- **Save plans to:** `docs/plans/YYYY-MM-DD-<feature-name>.md`
33
-
34
- ## Bite-Sized Task Granularity
35
-
36
- **Each step is one action (2-5 minutes):**
37
-
38
- - "Write the failing test" - step
39
- - "Run it to make sure it fails" - step
40
- - "Implement the minimal code to make the test pass" - step
41
- - "Run the tests and make sure they pass" - step
42
- - "Commit" - step
43
-
44
- ## Plan Document Header
45
-
46
- **Every plan MUST start with this header:**
47
-
48
- ```markdown
49
- # [Feature Name] Implementation Plan
50
-
51
- > **For Claude:** REQUIRED SUB-SKILL: Use skill({ name: "executing-plans" }) to implement this plan task-by-task.
52
-
53
- **Goal:** [One sentence describing what this builds]
54
-
55
- **Architecture:** [2-3 sentences about approach]
56
-
57
- **Tech Stack:** [Key technologies/libraries]
58
-
59
- ---
60
- ```
61
-
62
- ### Goal-Backward Section (REQUIRED)
63
-
64
- Document the reasoning that produced this plan using goal-backward methodology:
65
-
66
- ```markdown
67
- ## Must-Haves
68
-
69
- **Goal:** [Outcome-shaped goal from PRD]
70
-
71
- ### Observable Truths
72
-
73
- (What must be TRUE for the goal to be achieved?)
74
-
75
- 1. [Truth 1: User can...]
76
- 2. [Truth 2: User can...]
77
- 3. [Truth 3: User can...]
78
-
79
- ### Required Artifacts
80
-
81
- (What must EXIST for truths to be true?)
82
- | Artifact | Provides | Path |
83
- |----------|----------|------|
84
- | [File/component] | [What it does] | `src/path/to/file.ts` |
85
-
86
- ### Key Links
87
-
88
- (Where is this most likely to break?)
89
- | From | To | Via | Risk |
90
- |------|-----|-----|------|
91
- | [Component] | [API] | `fetch` | [Why it might fail] |
92
- ```
93
-
94
- ### Dependency Graph
95
-
96
- ```markdown
97
- ### Task Dependencies
98
- ```
99
-
100
- Task A (User model): needs nothing, creates src/models/user.ts
101
- Task B (Product model): needs nothing, creates src/models/product.ts
102
- Task C (User API): needs Task A, creates src/api/users.ts
103
-
104
- Wave 1: A, B (parallel)
105
- Wave 2: C (after Wave 1)
106
-
107
- ````
108
-
109
- ## Tiered Task Hierarchy
110
-
111
- For multi-agent execution at scale (10+ agents), use explicit tier declarations. This prevents flat decomposition that fails when many agents work in parallel.
112
-
113
- ### Tier Definitions
114
-
115
- | Tier | Role | Description | Example |
116
- |------|------|-------------|---------|
117
- | **planner** | Lead orchestrator | Analyzes scope, decomposes into sub-tasks, coordinates workers | "Design auth system" |
118
- | **sub-planner** | Mid-level coordinator | Takes planner output, further decomposes, assigns to workers | "Break auth into API, model, middleware" |
119
- | **worker** | Execution agent | Executes assigned work, reports progress | "Implement auth service" |
120
-
121
- ### When to Use Tiers
122
-
123
- - **<10 agents**: Optional - flat decomposition works
124
- - **10-50 agents**: Recommended - planner + workers
125
- - **50+ agents**: Required - planner + sub-planners + workers
126
-
127
- ### Tier Declaration Format
128
-
129
- Add tier metadata to each task:
130
-
131
- ```markdown
132
- ### Task 1: Design Auth System
133
-
134
- **Tier:** planner
135
-
136
- **Files:**
137
- - Create: `docs/auth-design.md`
138
-
139
- This task decomposes the auth feature into sub-tasks for implementation.
140
- ````
141
-
142
- ### Handoff Contracts
143
-
144
- Tasks must declare what they produce for downstream tasks:
145
-
146
- ```markdown
147
- ### Handoff Contract
148
-
149
- **Produces:**
150
-
151
- - `docs/auth-design.md` - Architecture decision document
152
-
153
- **Consumed By:**
154
-
155
- - Task 2: Implement Auth Service
156
- - Task 3: Add Auth Tests
157
- ```
158
-
159
- ### Tier Enforcement in Plans
160
-
161
- ```markdown
162
- # [Feature Name] Implementation Plan
163
-
164
- > **Tier Structure:**
165
- >
166
- > - **Planners (2):** Task 1, Task 5
167
- > - **Workers (6):** Tasks 2,3,4,6,7,8
168
-
169
- ## Task Hierarchy
170
-
171
- ### Tier 1: Planner Tasks (Orchestration)
172
-
173
- ### Task 1: [Planner] Design Auth System
174
-
175
- ### Task 5: [Planner] Design API Layer
176
-
177
- ### Tier 2: Worker Tasks (Execution)
178
-
179
- ### Task 2: [Worker] Implement Auth Service
180
-
181
- ### Task 3: [Worker] Add Auth Middleware
182
-
183
- ### Task 4: [Worker] Write Auth Tests
184
- ```
185
-
186
- ### Wave Execution with Tiers
187
-
188
- When executing with tiers:
189
-
190
- 1. **Planner waves** execute first (scope definition)
191
- 2. **Worker waves** execute after planner output is ready
192
- 3. **Sub-planners** sit between, bridging planner → worker
193
-
194
- ```markdown
195
- Wave 1 (Planners): Task 1, Task 5
196
- Wave 2 (Workers): Tasks 2, 3, 4 (after Task 1)
197
- Wave 3 (Workers): Tasks 6, 7, 8 (after Task 5)
198
- ```
199
-
200
- ### Anti-Pattern: Flat Decomposition at Scale
201
-
202
- Without tiers, 20 agents get 20 flat tasks → chaos:
203
-
204
- - Workers step on each other
205
- - No coordination between related work
206
- - Merge conflicts everywhere
207
-
208
- With tiers, the structure emerges:
209
-
210
- ```
211
- Planner → Sub-planner A → Worker 1, 2, 3
212
- → Worker 4, 5
213
- Sub-planner B → Worker 6, 7
214
- ```
215
-
216
- This mirrors real engineering orgs: lead → tech lead → IC.
217
-
218
- `````
219
-
220
- ## Context Budget
221
-
222
- Target: ~50% context per plan execution
223
- Maximum: 2-3 tasks per plan
224
-
225
- | Task Complexity | Max Tasks | Typical Context |
226
- | --------------- | --------- | --------------- |
227
- | Simple (CRUD) | 3 | ~30-45% |
228
- | Complex (auth) | 2 | ~40-50% |
229
- | Very complex | 1-2 | ~30-50% |
230
-
231
- **Split signals:**
232
-
233
- - More than 3 tasks → Create child plans
234
- - Multiple subsystems → Separate plans
235
- - Any task with >5 file modifications → Split
236
- - Checkpoint + implementation → Split
237
- - Discovery + implementation → Split
238
-
239
- ## Task Structure
240
-
241
- ````markdown
242
- ### Task N: [Component Name]
243
-
244
- **Files:**
245
-
246
- - Create: `exact/path/to/file.py`
247
- - Modify: `exact/path/to/existing.py:123-145`
248
- - Test: `tests/exact/path/to/test.py`
249
-
250
- **Step 1: Write the failing test**
251
-
252
- ```python
253
- def test_specific_behavior():
254
- result = function(input)
255
- assert result == expected
256
- `````
257
-
258
- ````
259
-
260
- **Step 2: Run test to verify it fails**
261
-
262
- Run: `pytest tests/path/test.py::test_name -v`
263
- Expected: FAIL with "function not defined"
264
-
265
- **Step 3: Write minimal implementation**
266
-
267
- ```python
268
- def function(input):
269
- return expected
270
- ```
271
-
272
- **Step 4: Run test to verify it passes**
273
-
274
- Run: `pytest tests/path/test.py::test_name -v`
275
- Expected: PASS
276
-
277
- **Step 5: Commit**
278
-
279
- ```bash
280
- git add tests/path/test.py src/path/file.py
281
- git commit -m "feat: add specific feature"
282
- ```
283
-
284
- ```
285
-
286
- ## Remember
287
- - Exact file paths always
288
- - Complete code in plan (not "add validation")
289
- - Exact commands with expected output
290
- - Reference relevant skills with @ syntax
291
- - DRY, YAGNI, TDD, frequent commits
292
-
293
- ## Execution Handoff
294
-
295
- After saving the plan, offer execution choice:
296
-
297
- **"Plan complete and saved to `.beads/artifacts/<bead-id>/plan.md`. Two execution options:**
298
-
299
- **1. Subagent-Driven (this session)** - I dispatch fresh subagent per task, review between tasks, fast iteration
300
-
301
- **2. Parallel Session (separate)** - Open new session with executing-plans, batch execution with checkpoints
302
-
303
- **Which approach?"**
304
-
305
- **If Subagent-Driven chosen:**
306
- - **REQUIRED SUB-SKILL:** Use skill({ name: "subagent-driven-development" })
307
- - Stay in this session
308
- - Fresh subagent per task + code review
309
-
310
- **If Parallel Session chosen:**
311
- - Guide them to open new session in worktree
312
- - **REQUIRED SUB-SKILL:** New session uses skill({ name: "executing-plans" })
313
- ```
314
- ````
315
-
316
- ## See Also
317
-
318
- - `executing-plans` - Execute vetted plans in controlled batches with checkpoints
319
- - `prd` - Convert validated design into explicit behavioral requirements
320
- - `brainstorming` - Refine rough ideas and constraints before specification/planning