opencodekit 0.21.10 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +116 -487
- package/dist/template/.opencode/README.md +1 -1
- package/dist/template/.opencode/agent/build.md +56 -396
- package/dist/template/.opencode/agent/explore.md +0 -1
- package/dist/template/.opencode/agent/review.md +0 -1
- package/dist/template/.opencode/agent/scout.md +0 -1
- package/dist/template/.opencode/agent/vision.md +0 -1
- package/dist/template/.opencode/command/clarify.md +48 -0
- package/dist/template/.opencode/command/commit.md +53 -0
- package/dist/template/.opencode/command/fix.md +56 -0
- package/dist/template/.opencode/command/improve-architecture.md +55 -0
- package/dist/template/.opencode/command/init.md +88 -68
- package/dist/template/.opencode/command/refactor.md +66 -0
- package/dist/template/.opencode/command/test.md +66 -0
- package/dist/template/.opencode/dcp.jsonc +13 -2
- package/dist/template/.opencode/memory/README.md +3 -5
- package/dist/template/.opencode/memory/_templates/adr.md +45 -0
- package/dist/template/.opencode/memory/project/gotchas.md +1 -1
- package/dist/template/.opencode/memory/session-context.md +1 -1
- package/dist/template/.opencode/plugin/README.md +1 -1
- package/dist/template/.opencode/plugin/guard.ts +62 -0
- package/dist/template/.opencode/plugin/{lib/memory-admin-tools.ts → memory/admin.ts} +4 -4
- package/dist/template/.opencode/plugin/{lib → memory}/capture.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/compile.ts +2 -2
- package/dist/template/.opencode/plugin/{lib → memory}/context.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/curator.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/db/observations.ts +102 -3
- package/dist/template/.opencode/plugin/{lib → memory}/db/schema.ts +43 -1
- package/dist/template/.opencode/plugin/{lib → memory}/db/types.ts +22 -0
- package/dist/template/.opencode/plugin/{lib/memory-db.ts → memory/db.ts} +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/distill.ts +1 -1
- package/dist/template/.opencode/plugin/{lib/memory-helpers.ts → memory/helpers.ts} +5 -1
- package/dist/template/.opencode/plugin/{lib/memory-hooks.ts → memory/hooks.ts} +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/index-generator.ts +2 -2
- package/dist/template/.opencode/plugin/{lib → memory}/inject.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/lint.ts +2 -2
- package/dist/template/.opencode/plugin/memory/tools.ts +322 -0
- package/dist/template/.opencode/plugin/{lib → memory}/validate.ts +2 -2
- package/dist/template/.opencode/plugin/memory.ts +7 -17
- package/dist/template/.opencode/plugin/srcwalk.ts +721 -0
- package/dist/template/.opencode/skill/agent-code-quality-gate/SKILL.md +98 -0
- package/dist/template/.opencode/skill/behavioral-kernel/SKILL.md +52 -0
- package/dist/template/.opencode/skill/browser-testing-with-devtools/SKILL.md +85 -0
- package/dist/template/.opencode/skill/code-cleanup/SKILL.md +114 -0
- package/dist/template/.opencode/skill/code-navigation/SKILL.md +142 -0
- package/dist/template/.opencode/skill/code-review-and-quality/SKILL.md +131 -0
- package/dist/template/.opencode/skill/debugging-and-error-recovery/SKILL.md +109 -0
- package/dist/template/.opencode/skill/deep-module-design/SKILL.md +207 -0
- package/dist/template/.opencode/skill/git-workflow-and-versioning/SKILL.md +77 -0
- package/dist/template/.opencode/skill/grill-me/SKILL.md +140 -0
- package/dist/template/.opencode/skill/memory-system/SKILL.md +9 -10
- package/dist/template/.opencode/skill/planning-and-task-breakdown/SKILL.md +116 -0
- package/dist/template/.opencode/skill/shipping-and-launch/SKILL.md +95 -0
- package/dist/template/.opencode/skill/source-driven-development/SKILL.md +103 -0
- package/dist/template/.opencode/skill/spec-driven-development/SKILL.md +121 -0
- package/dist/template/.opencode/skill/srcwalk/SKILL.md +161 -0
- package/dist/template/.opencode/skill/ubiquitous-language/SKILL.md +184 -0
- package/package.json +1 -1
- package/dist/template/.opencode/AGENT_ALIGNMENT.md +0 -564
- package/dist/template/.opencode/agent/painter.md +0 -83
- package/dist/template/.opencode/command/compound.md +0 -240
- package/dist/template/.opencode/command/curate.md +0 -299
- package/dist/template/.opencode/command/handoff.md +0 -149
- package/dist/template/.opencode/command/health.md +0 -356
- package/dist/template/.opencode/command/init-context.md +0 -297
- package/dist/template/.opencode/command/init-user.md +0 -125
- package/dist/template/.opencode/command/iterate.md +0 -200
- package/dist/template/.opencode/command/lfg.md +0 -173
- package/dist/template/.opencode/command/resume.md +0 -78
- package/dist/template/.opencode/command/status.md +0 -126
- package/dist/template/.opencode/command/ui-slop-check.md +0 -169
- package/dist/template/.opencode/plugin/lib/memory-tools.ts +0 -535
- package/dist/template/.opencode/skill/agent-evals/SKILL.md +0 -208
- package/dist/template/.opencode/skill/anti-ai-slop/SKILL.md +0 -76
- package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +0 -122
- package/dist/template/.opencode/skill/augment-context-engine/mcp.json +0 -6
- package/dist/template/.opencode/skill/brand-asset-protocol/SKILL.md +0 -222
- package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +0 -224
- package/dist/template/.opencode/skill/code-simplification/SKILL.md +0 -211
- package/dist/template/.opencode/skill/context-condensation/SKILL.md +0 -149
- package/dist/template/.opencode/skill/context-initialization/SKILL.md +0 -69
- package/dist/template/.opencode/skill/context-management/SKILL.md +0 -390
- package/dist/template/.opencode/skill/deep-research/SKILL.md +0 -384
- package/dist/template/.opencode/skill/design-direction-advisor/SKILL.md +0 -139
- package/dist/template/.opencode/skill/dispatching-parallel-agents/SKILL.md +0 -191
- package/dist/template/.opencode/skill/executing-plans/SKILL.md +0 -247
- package/dist/template/.opencode/skill/figma-go/SKILL.md +0 -65
- package/dist/template/.opencode/skill/finishing-a-development-branch/SKILL.md +0 -357
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +0 -62
- package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +0 -29
- package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +0 -237
- package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +0 -38
- package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +0 -509
- package/dist/template/.opencode/skill/hi-fi-prototype-html/SKILL.md +0 -253
- package/dist/template/.opencode/skill/html-deck-export/SKILL.md +0 -189
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +0 -413
- package/dist/template/.opencode/skill/memory-grounding/SKILL.md +0 -68
- package/dist/template/.opencode/skill/playwriter/SKILL.md +0 -158
- package/dist/template/.opencode/skill/portless/SKILL.md +0 -109
- package/dist/template/.opencode/skill/prd/SKILL.md +0 -146
- package/dist/template/.opencode/skill/prd-task/SKILL.md +0 -182
- package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +0 -124
- package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +0 -90
- package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +0 -91
- package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +0 -157
- package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +0 -263
- package/dist/template/.opencode/skill/reconcile/SKILL.md +0 -183
- package/dist/template/.opencode/skill/reflection-checkpoints/SKILL.md +0 -183
- package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +0 -443
- package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +0 -108
- package/dist/template/.opencode/skill/requesting-code-review/review.md +0 -160
- package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +0 -134
- package/dist/template/.opencode/skill/screenshot/SKILL.md +0 -48
- package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +0 -54
- package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +0 -22
- package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +0 -40
- package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +0 -126
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +0 -163
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +0 -585
- package/dist/template/.opencode/skill/security-threat-model/SKILL.md +0 -36
- package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +0 -255
- package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +0 -32
- package/dist/template/.opencode/skill/sharing-skills/SKILL.md +0 -214
- package/dist/template/.opencode/skill/skill-creator/SKILL.md +0 -181
- package/dist/template/.opencode/skill/skill-installer/SKILL.md +0 -58
- package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +0 -21
- package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +0 -313
- package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +0 -106
- package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +0 -244
- package/dist/template/.opencode/skill/swarm-coordination/references/architecture.md +0 -39
- package/dist/template/.opencode/skill/swarm-coordination/references/delegation-worker-protocol.md +0 -145
- package/dist/template/.opencode/skill/swarm-coordination/references/dependency-graph.md +0 -50
- package/dist/template/.opencode/skill/swarm-coordination/references/drift-check.md +0 -90
- package/dist/template/.opencode/skill/swarm-coordination/references/integration-beads.md +0 -20
- package/dist/template/.opencode/skill/swarm-coordination/references/launch-flow.md +0 -186
- package/dist/template/.opencode/skill/swarm-coordination/references/reconciler.md +0 -172
- package/dist/template/.opencode/skill/swarm-coordination/references/tier-enforcement.md +0 -78
- package/dist/template/.opencode/skill/swarm-coordination/references/tmux-integration.md +0 -134
- package/dist/template/.opencode/skill/systematic-debugging/SKILL.md +0 -402
- package/dist/template/.opencode/skill/terse-output-mode/SKILL.md +0 -95
- package/dist/template/.opencode/skill/think-in-code/SKILL.md +0 -136
- package/dist/template/.opencode/skill/ux-quality-gates/SKILL.md +0 -137
- package/dist/template/.opencode/skill/v1-run/SKILL.md +0 -175
- package/dist/template/.opencode/skill/v1-run/mcp.json +0 -6
- package/dist/template/.opencode/skill/verification-gates/SKILL.md +0 -63
- package/dist/template/.opencode/skill/visual-analysis/SKILL.md +0 -154
- package/dist/template/.opencode/skill/web-design-guidelines/SKILL.md +0 -46
- package/dist/template/.opencode/skill/workspace-setup/SKILL.md +0 -76
- package/dist/template/.opencode/skill/writing-plans/SKILL.md +0 -320
- /package/dist/template/.opencode/plugin/{lib → memory}/compact.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/graph.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/maintenance.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/pipeline.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/notify.ts +0 -0
- /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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|