一键导入
create-beads
// Use when an implementation plan exists and needs to be broken into parallelizable work units with dependencies
// Use when an implementation plan exists and needs to be broken into parallelizable work units with dependencies
Use when starting new feature work to turn ideas into fully formed designs through collaborative dialogue
Use after implementation to review code against spec and quality standards
Use when bead implementation is complete and ready for integration
Use when executing a single bead/task with test-driven development approach
Use when a design document exists and needs to be broken into detailed implementation tasks
| name | create-beads |
| description | Use when an implementation plan exists and needs to be broken into parallelizable work units with dependencies |
Convert implementation plan into beads with dependencies so workers can claim and execute them.
docs/plans/*-implementation.mdbd CLI is available (check with which bd)bd init --prefix <project-name> --quietFind and read the most recent implementation plan:
ls -t docs/plans/*-implementation.md | head -1
Identify each ### Task N: section as a distinct unit of work.
Before creating task beads, analyze whether a foundational structure would unlock parallelism.
Scaffolds are:
Benefits:
Create scaffold bead if: Multiple tasks modify the same module, or tasks create interdependent types.
Analyze the plan to determine task dependencies:
Default to sequential if uncertain.
For scaffold (if identified):
bd create "Create module skeletons for <feature>" -d "Set up file structure and interfaces" -t task -p 1
# Note the returned bead ID (e.g., proj-abc1)
For each task:
bd create "Task N: <title from plan>" -d "<brief description>" -t task -p 2
# Note each returned bead ID
# If scaffold exists, it blocks all first-level tasks
bd dep add <task1-id> <scaffold-id>
bd dep add <task2-id> <scaffold-id>
# Tasks block their dependents
bd dep add <task3-id> <task2-id>
Output the created structure:
Created N beads from implementation plan:
Scaffold: proj-a1b2 - Create module skeletons
|-- Task 1: proj-c3d4 - Implement user module
|-- Task 2: proj-e5f6 - Implement auth module (parallel with Task 1)
|-- Task 3: proj-g7h8 - Wire integration
|-- Task 4: proj-i9j0 - Final verification
Ready to start: proj-a1b2 (Scaffold)
Verify with: bd ready
bd not initialized:
Run bd init --prefix <project-name> --quiet first. Detect project name from directory.
bd routes to different database:
If bd --verbose shows "Routing to target repo: ", the CLI has multi-repo routing configured. Either:
--db .beads/beads.db to force local databaseissue_prefix configuredBeads already exist for this plan:
Check bd list for matching titles. Warn and ask whether to skip, update, or abort.
Plan has no clear task structure: Fall back to single bead for entire plan. Flag: "Could not identify distinct tasks."
Dependency analysis uncertain: Default to sequential. Add note: "Dependencies assumed sequential - review for parallelization."
bd ready for workers to claim.beads/issues.jsonl changes