create-beads-orchestration by avivk5498/the-claude-protocol
npx skills add https://github.com/avivk5498/the-claude-protocol --skill create-beads-orchestration为 Claude Code 设置轻量级多智能体编排,并具备基于 git 的原生任务追踪功能。
此技能引导建立一个完整的多智能体工作流,其中:
每个任务都会在 .worktrees/bd-{BEAD_ID}/ 下拥有自己的工作树,保持主分支清洁并支持并行工作。
安装程序会自动检测 Beads 看板 UI 并进行相应配置。如果未找到,将提供安装选项。
检查引导程序产物:
ls .claude/agents/scout.md 2>/dev/null && echo "BOOTSTRAP_COMPLETE" || echo "FRESH_SETUP"
如果输出 BOOTSTRAP_COMPLETE:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
如果输出 FRESH_SETUP:
在步骤 4(发现)运行之前,安装程序不算完成。
询问用户或从 package.json/pyproject.toml 自动检测。
which bead-kanban 2>/dev/null && echo "KANBAN_FOUND" || echo "KANBAN_NOT_FOUND"
如果 KANBAN_FOUND → 使用 --with-kanban-ui 标志。告知用户:
检测到 Beads 看板 UI。正在通过 API 配置工作树管理。
如果 KANBAN_NOT_FOUND → 询问:
AskUserQuestion(
questions=[
{
"question": "未检测到 Beads 看板 UI。它提供了一个带有依赖关系图和 API 驱动的工作树管理的可视化看板。是否安装?",
"header": "看板 UI",
"options": [
{"label": "是,安装它(推荐)", "description": "运行:npm install -g beads-kanban-ui"},
{"label": "跳过", "description": "直接使用 git worktrees。您可以稍后安装。"}
],
"multiSelect": false
}
]
)
npm install -g beads-kanban-ui,然后使用 --with-kanban-ui 标志--with-kanban-ui 标志# 使用看板 UI:
npx beads-orchestration@latest bootstrap \
--project-name "{{PROJECT_NAME}}" \
--project-dir "{{PROJECT_DIR}}" \
--with-kanban-ui
# 不使用看板 UI(仅限 git worktrees):
npx beads-orchestration@latest bootstrap \
--project-name "{{PROJECT_NAME}}" \
--project-dir "{{PROJECT_DIR}}"
引导脚本将:
.beads/ 目录.claude/agents/.claude/hooks/.claude/settings.jsonCLAUDE.md.gitignore在继续之前,请验证引导程序已成功完成。
告知用户:
安装阶段完成。您现在必须重启 Claude Code。
新的钩子和 MCP 配置只有在重启后才会加载。
重启后:
- 打开同一个项目目录
- 告诉我"继续编排系统设置"或再次运行
/create-beads-orchestration- 我将运行发现智能体以完成设置
请勿跳过此重启步骤 - 否则编排系统将无法工作。
请勿在此会话中继续执行步骤 4。重启是强制性的。
.claude/agents/scout.md 是否存在)- 已在步骤 0 完成Task(
subagent_type="discovery",
prompt="检测技术栈并为此项目创建监督者"
)
发现过程将:
.claude/agents/编排系统设置完成!
已创建的监督者:[列出发现过程创建的内容]
您现在可以使用编排工作流:
- 使用
bd create "任务名称" -d "描述"创建任务- 编排器将委派给相应的监督者
- 所有工作在完成前都需要代码审查
.worktrees/bd-{BEAD_ID}/ 中进行隔离开发使用 --with-kanban-ui 时:
不使用 --with-kanban-ui 时:
对于需要多个监督者的功能(例如,数据库 + API + 前端),请使用 史诗工作流:
| 任务类型 | 工作流 |
|---|---|
| 单一领域(一个监督者) | 独立的 bead |
| 跨领域(多个监督者) | 带有子任务的史诗 |
创建史诗:bd create "功能名称" -d "描述" --type epic
创建设计文档(如果需要):委派 architect 创建 .designs/{EPIC_ID}.md
链接设计文档:bd update {EPIC_ID} --design ".designs/{EPIC_ID}.md"
创建具有依赖关系的子任务:
bd create "数据库模式" -d "..." --parent {EPIC_ID} # BD-001.1
bd create "API 端点" -d "..." --parent {EPIC_ID} --deps BD-001.1 # BD-001.2
bd create "前端" -d "..." --parent {EPIC_ID} --deps BD-001.2 # BD-001.3
顺序委派:使用 bd ready 查找未阻塞的任务(每个子任务获得自己的工作树)
用户合并每个 PR:等待子任务的 PR 合并后再委派下一个
关闭史诗:在所有子任务合并后,运行 bd close {EPIC_ID}
设计文档确保跨史诗子任务的一致性:
关键规则:编排器委派 architect 创建设计文档。编排器从不直接编写设计文档。
每周安装量
124
代码仓库
GitHub 星标数
146
首次出现
2026年2月2日
安全审计
已安装于
opencode106
codex100
claude-code99
gemini-cli91
github-copilot89
amp83
Set up lightweight multi-agent orchestration with git-native task tracking for Claude Code.
This skill bootstraps a complete multi-agent workflow where:
Each task gets its own worktree at .worktrees/bd-{BEAD_ID}/, keeping main clean and enabling parallel work.
The setup will auto-detect Beads Kanban UI and configure accordingly. If not found, you'll be offered to install it.
Check for bootstrap artifacts:
ls .claude/agents/scout.md 2>/dev/null && echo "BOOTSTRAP_COMPLETE" || echo "FRESH_SETUP"
IfBOOTSTRAP_COMPLETE:
IfFRESH_SETUP:
The setup is NOT complete until Step 4 (discovery) has run.
Ask the user or auto-detect from package.json/pyproject.toml.
which bead-kanban 2>/dev/null && echo "KANBAN_FOUND" || echo "KANBAN_NOT_FOUND"
If KANBAN_FOUND → Use --with-kanban-ui flag. Tell the user:
Detected Beads Kanban UI. Configuring worktree management via API.
If KANBAN_NOT_FOUND → Ask:
AskUserQuestion(
questions=[
{
"question": "Beads Kanban UI not detected. It adds a visual kanban board with dependency graphs and API-driven worktree management. Install it?",
"header": "Kanban UI",
"options": [
{"label": "Yes, install it (Recommended)", "description": "Runs: npm install -g beads-kanban-ui"},
{"label": "Skip", "description": "Use git worktrees directly. You can install later."}
],
"multiSelect": false
}
]
)
npm install -g beads-kanban-ui, then use --with-kanban-ui flag--with-kanban-ui flag# With Kanban UI:
npx beads-orchestration@latest bootstrap \
--project-name "{{PROJECT_NAME}}" \
--project-dir "{{PROJECT_DIR}}" \
--with-kanban-ui
# Without Kanban UI (git worktrees only):
npx beads-orchestration@latest bootstrap \
--project-name "{{PROJECT_NAME}}" \
--project-dir "{{PROJECT_DIR}}"
The bootstrap script will:
.beads/ directory.claude/agents/.claude/hooks/.claude/settings.jsonCLAUDE.md with orchestrator instructions.gitignoreVerify bootstrap completed successfully before proceeding.
Tell the user:
Setup phase complete. You MUST restart Claude Code now.
The new hooks and MCP configuration will only load after restart.
After restarting:
- Open this same project directory
- Tell me "Continue orchestration setup" or run
/create-beads-orchestrationagain- I will run the discovery agent to complete setup
Do not skip this restart - the orchestration will not work without it.
DO NOT proceed to Step 4 in this session. The restart is mandatory.
.claude/agents/scout.md) - already done in Step 0Task(
subagent_type="discovery",
prompt="Detect tech stack and create supervisors for this project"
)
Discovery will:
.claude/agents/Orchestration setup complete!
Created supervisors: [list what discovery created]
You can now use the orchestration workflow:
- Create tasks with
bd create "Task name" -d "Description"- The orchestrator will delegate to appropriate supervisors
- All work requires code review before completion
.worktrees/bd-{BEAD_ID}/With--with-kanban-ui:
Without--with-kanban-ui:
For features requiring multiple supervisors (e.g., DB + API + Frontend), use the epic workflow :
| Task Type | Workflow |
|---|---|
| Single-domain (one supervisor) | Standalone bead |
| Cross-domain (multiple supervisors) | Epic with children |
Create epic : bd create "Feature name" -d "Description" --type epic
Create design doc (if needed): Dispatch architect to create .designs/{EPIC_ID}.md
Link design : bd update {EPIC_ID} --design ".designs/{EPIC_ID}.md"
Create children with dependencies :
bd create "DB schema" -d "..." --parent {EPIC_ID} # BD-001.1
bd create "API endpoints" -d "..." --parent {EPIC_ID} --deps BD-001.1 # BD-001.2
bd create "Frontend" -d "..." --parent {EPIC_ID} --deps BD-001.2 # BD-001.3
Dispatch sequentially : Use bd ready to find unblocked tasks (each child gets own worktree)
User merges each PR : Wait for child's PR to merge before dispatching next
Design docs ensure consistency across epic children:
Key rule : Orchestrator dispatches architect to create design docs. Orchestrator never writes design docs directly.
See the full documentation: https://github.com/AvivK5498/The-Claude-Protocol
Weekly Installs
124
Repository
GitHub Stars
146
First Seen
Feb 2, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykFail
Installed on
opencode106
codex100
claude-code99
gemini-cli91
github-copilot89
amp83
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
159,700 周安装
Close epic : bd close {EPIC_ID} after all children merged