create-beads-orchestration
Skill348 starsChanged 11 months agoMITView on GitHub
Bootstrap lean multi-agent orchestration with beads task tracking. Use for projects needing agent delegation without heavy MCP overhead.
- Deletes or force-pushes
In this repository5 other files it gives its agents.
- mcp-provider-delegator/CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- create-beads-orchestrationSkill
- create-beads-orchestrationSkill
- subagents-disciplineSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Consider setup complete until discovery has run
- Very specific: line 49
Ask the user or auto-detect from package.json/pyproject.toml.
- Distinctive: line 56
Do NOT skip this. Do NOT assume a default.
- Very specific: line 73
If "Claude only" → use --claude-only flag in bootstrap
- Very specific: line 74
If "External providers" → do NOT use --claude-only flag </mandatory-question>
- Distinctive: line 107
Create CLAUDE.md with orchestrator instructions
- Distinctive: line 140
If the user returns after restart and says "continue setup" or similar:
- Very specific: line 142
Verify bootstrap completed (check for .claude/agents/scout.md)
- Distinctive: line 143
Run the discovery agent:
- Very specific: line 156
Write supervisors to .claude/agents/
- Distinctive: line 158
After discovery completes, tell the user:
- Distinctive: line 189
All agents run via Claude Task() - no external dependencies
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create Beads Orchestration
Set up lightweight multi-agent orchestration with git-native task tracking and mandatory code review gates.
CRITICAL: Mandatory 4-Step Workflow
<mandatory-workflow>
You MUST follow ALL 4 steps below in exact order. Missing ANY step is a CATASTROPHIC FAILURE.| Step | Action | Checkpoint |
| 1 | Get project info from user | Have project name, directory, AND provider choice |
| 2 | Clone repo and run bootstrap | Bootstrap completes successfully |
| 3 | STOP - Instruct user to restart Claude Code | User confirms they will restart |
| 4 | After restart: Run discovery agent | Supervisors created in .claude/agents/ |
DO NOT:
- Skip asking for project info
- Skip asking about provider delegation (Claude-only vs External providers)
- Continue after bootstrap without telling user to restart
- Forget to run discovery after restart
- Consider setup complete until discovery has run
The setup is NOT complete until Step 4 (discovery) has run.
</mandatory-workflow>
Step 1: Get Project Info
<critical-step1>
**YOU MUST ASK ALL THREE QUESTIONS BEFORE PROCEEDING TO STEP 2 using AskUserQuestion.**- Project directory: Where to install (default: current working directory)
- Project name: For agent templates (will auto-infer from package.json/pyproject.toml if not provided)
- Provider delegation: MANDATORY - You MUST use AskUserQuestion for this choice
</critical-step1>
1.1 Get Project Directory and Name
Ask the user or auto-detect from package.json/pyproject.toml.
1.2 MANDATORY: Ask Provider Delegation Choice
<mandatory-question>
**YOU MUST CALL AskUserQuestion WITH THIS EXACT QUESTION BEFORE RUNNING BOOTSTRAP.**Do NOT skip this. Do NOT assume a default. Do NOT proceed without the user's explicit choice.
AskUserQuestion(
questions=[{
"question": "How should read-only agents (scout, detective, architect, scribe, code-reviewer) be executed?",
"header": "Providers",
"options": [
{"label": "Claude only (Recommended)", "description": "All agents run via Claude Task(). Simpler setup, no external dependencies."},
{"label": "External providers", "description": "Delegate to Codex CLI (with Gemini fallback). Requires codex login and optional gemini CLI."}
],
"multiSelect": false
}]
)After user answers:
- If "Claude only" → use
--claude-onlyflag in bootstrap - If "External providers" → do NOT use
--claude-onlyflag</mandatory-question>
DO NOT proceed to Step 2 until you have the provider choice from the user.
Step 2: Clone and Run Bootstrap
git clone --depth=1 https://github.com/AvivK5498/The-Claude-Protocol "${TMPDIR:-/tmp}/beads-orchestration-setup"# If user selected "Claude only":
python3 "${TMPDIR:-/tmp}/beads-orchestration-setup/bootstrap.py" \
--project-name "{{PROJECT_NAME}}" \
--project-dir "{{PROJECT_DIR}}" \
--claude-only
# If user selected "External providers":
python3 "${TMPDIR:-/tmp}/beads-orchestration-setup/bootstrap.py" \
--project-name "{{PROJECT_NAME}}" \
--project-dir "{{PROJECT_DIR}}"The bootstrap script will:
- Install beads CLI (via brew, npm, or go)
- Initialize
.beads/directory - Copy agent templates to
.claude/agents/ - Copy hooks to
.claude/hooks/ - Configure
.claude/settings.json - Set up
.mcp.jsonfor provider_delegator - Create
CLAUDE.mdwith orchestrator instructions - Update
.gitignore
Verify bootstrap completed successfully before proceeding.
Step 3: STOP - User Must Restart
<critical>
**YOU MUST STOP HERE AND INSTRUCT THE USER TO RESTART CLAUDE CODE.**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.
</critical>
Step 4: Run Discovery (After Restart)
<post-restart>
If the user returns after restart and says "continue setup" or similar:- Verify bootstrap completed (check for
.claude/agents/scout.md) - Run the discovery agent:
Task(
subagent_type="discovery",
prompt="Detect tech stack and create supervisors for this project"
)Discovery will:
- Scan package.json, requirements.txt, Dockerfile, etc.
- Fetch specialist agents from external directory
- Inject beads workflow into each supervisor
- Write supervisors to
.claude/agents/
- After discovery completes, tell the user:
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
</post-restart>
Cleanup (Optional)
rm -rf "${TMPDIR:-/tmp}/beads-orchestration-setup"What This Creates
- Beads CLI for git-native task tracking (one bead = one branch = one task)
- Core agents: scout, detective, architect, scribe, code-reviewer
- Discovery agent: Auto-detects tech stack and creates specialized supervisors
- Hooks: Enforce orchestrator discipline, code review gates, concise responses
- Branch-per-task workflow: Parallel development with automated merge conflict handling
With --claude-only (default):
- All agents run via Claude Task() - no external dependencies
With external providers:
- MCP Provider Delegator enables Codex→Gemini→Claude fallback chain
- Additional enforcement hooks for provider delegation
Requirements
Claude only mode (default):
- beads CLI: Installed automatically (or manually via brew/npm/go)
- uv: Python package manager (only if using external providers)
External providers mode:
- Codex CLI:
codex loginfor authentication (primary provider) - Gemini CLI: Optional fallback when Codex hits rate limits
- uv: Python package manager for MCP server
More Information
See the full documentation: https://github.com/AvivK5498/The-Claude-Protocol
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

