Convert Plan to Implementation Plan with Beads
Transform a (1) Plan into a (2) Implementation Plan with beads for cross-session tracking and parallel execution.
Arguments
$ARGUMENTS - Optional path to plan file. Defaults to most recent in ~/.claude/plans/
Process Overview
- Find and parse the source plan
- Think hard to identify tasks, dependencies, complexity, verification
- Create beads with proper dependency relationships
- Output implementation plan with full task details
Detailed Instructions
Use the Task tool with subagent_type='general-purpose' and model='opus' to perform the conversion. The agent requires high creativity for dependency inference and verification generation.
Agent Instructions
Phase 1: Find and Parse Plan
Locate the plan file:
- If argument provided, use that path
- Otherwise:
ls -t ~/.claude/plans/*.md | head -1
Read and parse the plan structure:
- Title: First
# Plan:or#heading - Summary: Content under
## Summaryor## Goalor## Overview - Sections: Each
### Phase N:,### N., or### Step N:section - File references: Note any files mentioned for modification
- Title: First
Phase 2: Think Hard - Task Analysis
Analyze the plan deeply before creating any beads:
Identify discrete tasks
- Break phases into atomic, independently-completable tasks
- Each task should be achievable in one focused session
- Avoid tasks that are too broad ("implement feature") or too narrow ("add import")
Build dependency graph
- Check for explicit dependencies (e.g.,
(depends: 1, 2)markers) - Infer dependencies from content:
- Task mentions file created in another task → dependency
- Task uses API/function defined in another task → dependency
- Task tests functionality from another task → dependency
- Identify parallel opportunities (tasks with no dependencies between them)
- Check for explicit dependencies (e.g.,
Assign complexity/model
Complexity Model Indicators High opusArchitecture decisions, ambiguous requirements, complex refactors Standard sonnetClear implementation, defined requirements, moderate complexity Mechanical haikuSimple edits, renames, boilerplate, config changes Generate verification criteria For each task, create specific, runnable checks:
- Build check:
cargo build/npm run build/ etc. - File existence: New files that should exist
- Test check: Relevant test commands
- Grep checks: Patterns that should/shouldn't exist
- Runtime checks: Endpoints, CLI commands (if applicable)
- Build check:
Phase 3: Create Beads
Create epic for the overall plan:
br create "[Plan Title]" -t epic -p 1 -d "[summary]. Source: [plan path]" --jsonCreate task beads for each identified task:
br create "[Task title]" -t task -p 2 -d "[description]" --jsonAdd dependencies based on the graph:
br dep add <dependent-task> <dependency-task>Link tasks to epic:
br dep add <task> <epic> -t parent-child
Phase 4: Output Implementation Plan
Write to docs/plans/YYYY-MM-DD-[slug]-implementation.md with this structure:
# Implementation: [Plan Title]
**Source Plan:** [path to (1) plan]
**Epic:** [bead-id]
**Created:** [date]
## Dependency Graph
[ASCII representation showing task dependencies] [bead-id] (Task name) └── [bead-id] (Dependent task) └── [bead-id] (Further dependent)
[bead-id] (Parallel task) [no deps]
## Tasks
### Task 1: [Title]
**Bead:** [bead-id]
**Status:** NOT_STARTED
**Model:** [opus/sonnet/haiku]
**Dependencies:** [list or "none"]
[Task description - first paragraph from plan section]
**Verify:**
- [ ] [Specific verification check]
- [ ] [Another check]
- [ ] [etc.]
---
[Repeat for each task]
Phase 5: Return Summary
Return a concise summary (not raw command output):
Created implementation plan from: [filename]
Epic: [title] ([epic-id])
Dependency Graph:
[visual representation]
Tasks: [N] total
- [M] ready (no dependencies)
- [K] blocked
Implementation plan: docs/plans/[filename]
Run `br ready` to see unblocked tasks.
Task Status Values
| Status | Meaning |
|---|---|
NOT_STARTED |
Initial state (set by this skill) |
IN_PROGRESS |
Agent working on it |
DONE |
Completed, verification passed |
ERROR |
Verification failed or blocker hit |
INVALIDATED |
Plan changed, task no longer relevant |
BLOCKED |
Dependencies not met |
Notes
- Original (1) plan is preserved - never modify it
- Implementation plan is the working document for execution
- Task descriptions use first paragraph only (keeps them scannable)
- Verification criteria should be runnable commands where possible
- The dependency graph enables parallel execution of independent tasks
Reference
For detailed design rationale, see: references/design-rationale.md