beads-workflow
Use when managing work items with Beads CLI, creating task dependencies, tracking feature implementation progress, or orchestrating SDLC workflows with bd commands
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Beads Workflow for SDLC
Beads is a git-native issue tracker that stores work items as files. This skill teaches how to use Beads effectively for autonomous SDLC workflows.
Core Commands
Finding Work
bd ready # Show tasks with no blockers (ready to implement)
bd list --status=open # All open tasks
bd list --status=in_progress # Active work
bd show <bead-id> # Full task details with dependencies
bd blocked # Show all blocked tasks
Creating Work
# Create a task (priority: 0=critical, 1=high, 2=medium, 3=low, 4=backlog)
bd create --title="Implement feature X" --type=task --priority=1
# Create with full details
bd create --title="Add JWT authentication" --type=feature --priority=1
# Types: task, feature, bug, epic, chore
Managing Dependencies
# Add dependency: first arg DEPENDS ON second arg
bd dep add <task-that-needs> <task-it-needs>
# Example: tests depend on feature implementation
bd create --title="Implement auth" --type=feature # → beads-001
bd create --title="Write auth tests" --type=task # → beads-002
bd dep add beads-002 beads-001 # tests depend on auth
# Remove dependency
bd dep remove <task> <dependency>
Completing Work
bd close <bead-id> # Mark complete (unblocks dependents)
bd close <id1> <id2> <id3> # Close multiple at once
bd close <bead-id> --reason="Done" # Close with reason
Synchronization
bd sync # Sync with git remote
bd sync --status # Check sync status
bd stats # Project statistics
bd doctor # Check for issues
SDLC Workflow Pattern
1. Architect Creates Feature Graph
The architect agent breaks down requirements into Beads with dependencies:
# Create features in dependency order
bd create --title="Database schema for users" --type=task --priority=1 # → beads-abc
bd create --title="User model and repository" --type=task --priority=1 # → beads-def
bd create --title="Auth middleware" --type=task --priority=1 # → beads-ghi
bd create --title="Login/logout endpoints" --type=feature --priority=1 # → beads-jkl
# Set up dependency chain
bd dep add beads-def beads-abc # Model depends on schema
bd dep add beads-ghi beads-def # Middleware depends on model
bd dep add beads-jkl beads-ghi # Endpoints depend on middleware
2. Worktree Manager Finds Ready Work
bd ready # Shows beads-abc (no blockers)
3. Implementer Completes Work
# In worktree, after implementation passes verification
git add -A
git commit -m "feat(beads-abc): implement database schema for users"
bd close beads-abc # Unblocks beads-def
bd sync
4. Parallel Execution
When bd ready returns multiple tasks, spawn async subagents:
bd ready
# Output:
# 1. beads-xyz: API validation helpers
# 2. beads-uvw: Error response formatting
# Both can be implemented in parallel (no mutual dependencies)
Best Practices
- Granular Tasks: Each Bead should be implementable in one focused session
-
Clear Dependencies: Use
bd dep addto make blocking relationships explicit -
Close Immediately: Run
bd closeas soon as verification passes -
Sync Often: Run
bd syncafter completing work to share progress -
Check Ready First: Always start with
bd readyto find unblocked work
Integration with Worktrees
Each Bead maps to a worktree:
# Create worktree for a bead
git worktree add ../trees/beads-abc -b feature/beads-abc
# Work in isolation
cd ../trees/beads-abc
# After completion
bd close beads-abc
git worktree remove ../trees/beads-abc
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-03
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!