crew
Skill93 starsChanged 10 months agoMITView on GitHub
Orchestrate multi-agent teams for parallel multi-branch work. Triggers on: team, crew, launch team, parallel agents, multi-branch, agent teammates, coordinate work, worktree. Handles config, worktree setup, teammate spawning, and task coordination.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- JorgeMenaDev/skillstheir own version, first seen Oct 4, 2026
- DioNanos/nexuscrewtheir own version, first seen Oct 3, 2026
- jircdev/crew-plugintheir own version, first seen Sep 7, 2026
- Simon-AI-coding/agentcrew-dev-skillstheir own version, first seen Aug 28, 2026
- DevGonzi/claude-crewtheir own version, first seen Aug 26, 2026
- tuoxiansp/fable-the-bosstheir own version, first seen Jul 18, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- eran-tookii/crew★ 5same name
- DioNanos/nexuscrew★ 4same name
- tuoxiansp/fable-the-boss★ 4same name
- DevGonzi/claude-crew★ 2same name
- Simon-AI-coding/agentcrew-dev-skills★ 2same name
- jircdev/crew-plugin★ 1same name
- JorgeMenaDev/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- code-reviewSkill
- debugSkill
- deep-contextSkill
- task-routerSkill
- workflowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. 0 are common, 18 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Read-only analysis (use specialist agents like architecture-explorer)
- Distinctive: line 49
Read and validate the config
- Distinctive: line 59
If multiple profiles exist, ask which one to use
- Very specific: line 71
Use --write flag to write directly: cck crew decompose --write
- Very specific: line 72
Use --teammates N to limit team size: cck crew decompose --teammates 3
- Distinctive: line 75
Ask user: "What work needs to be parallelized?"
- Very specific: line 80
Write .crew-config.json directly.
- Very specific: line 122
Use grouped format when you have 4+ teammates that fit into logical sub-teams.
- Distinctive: line 136
Goal: Create worktrees and prepare team state
- Distinctive: line 172
Goal: Create team, tasks, and spawn all teammates
- Distinctive: line 220
Deliverable: All teammates spawned and working in parallel
- Very specific: line 229
Check TaskList periodically to see task status
- Distinctive: line 244
If a teammate is silent for >10 minutes, send them a message:
- Distinctive: line 248
Wait 2 minutes for response
- Distinctive: line 249
If still no response, check their worktree:
- Distinctive: line 254
If worktree shows no recent activity:
- Distinctive: line 280
Verify each branch has commits
- Distinctive: line 290
If all clean: "All branches can merge cleanly.
- Distinctive: line 291
If conflicts: "N branches have conflicts.
- Distinctive: line 292
Execute merge: if user approves:
- Distinctive: line 299
If merge fails with conflicts, guide user:
- Very specific: line 314
Remove .crew-config.json if it was created for this session only
- Distinctive: line 316
Deliverable: All work merged, teammates shut down, worktrees cleaned
- Distinctive: line 386
All 4 phases completed (not skipped)
- Distinctive: line 388
All teammates spawned in parallel (single message)
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Crew Orchestrator
You are a Crew Orchestrator responsible for launching and coordinating multi-agent teams that work in parallel across separate git worktrees. You handle the full lifecycle: config, setup, spawning, coordination, and cleanup.
When to Use This Skill
Auto-triggers on keywords:
- "team", "crew", "launch team", "agent teammates"
- "parallel agents", "multi-branch", "worktree"
- "coordinate work", "split this across agents"
Use crews when:
- 2+ independent workstreams that benefit from separate git branches
- Parallel work on isolated worktrees (no merge conflicts during work)
- Teammates need their own branch to commit on
Do NOT use crews when:
- Single sub-agent task (use Task tool directly)
- Read-only analysis (use specialist agents like
architecture-explorer) - Sequential dependent work (one step depends on previous)
Manual invocation: /crew
The 4-Phase Crew Lifecycle
Phase 1: ASSESS
Goal: Determine team composition and config
Step 1: Check for existing config
cat .crew-config.jsonIf config exists:
- Read and validate the config
- Show team summary to user:
Team: {name} Profile: {profile} Teammates: | Name | Role | Branch | Model | |------|------|--------|-------| | ... | ... | ... | ... | - If multiple profiles exist, ask which one to use
- Confirm with user before proceeding
If no config exists:
- Option A: Auto-decompose (recommended for large codebases)
- Suggest running smart task decomposition:
cck crew decompose [paths...] - This analyzes the dependency graph to find independent file clusters
- Outputs a suggested
.crew-config.jsonwith teammates for each cluster - User can review and edit the generated config
- Use
--writeflag to write directly:cck crew decompose --write - Use
--teammates Nto limit team size:cck crew decompose --teammates 3
- Suggest running smart task decomposition:
- Option B: Manual composition
- Ask user: "What work needs to be parallelized?"
- Gather requirements:
- Team name
- Number of teammates and their names
- For each: branch name, role (developer/reviewer/tester/architect), focus area
Write
.crew-config.jsondirectly. Two formats supported:Flat format (simple — all teammates in one list):
{ "team": { "name": "collected-name", "lead": { "model": "sonnet" }, "teammates": [ { "name": "name", "branch": "branch", "worktree": true, "role": "developer", "focus": "focus" } ] }, "project": { "main_branch": "auto-detect" }, "stale_after_hours": 4 }Grouped format (crew grouping — logical sub-teams):
{ "team": { "name": "collected-name", "lead": { "model": "sonnet" }, "crews": [ { "name": "frontend", "teammates": [ { "name": "ui-dev", "branch": "feat/ui", "worktree": true, "role": "developer", "focus": "..." } ] }, { "name": "backend", "teammates": [ { "name": "api-dev", "branch": "feat/api", "worktree": true, "role": "developer", "focus": "..." } ] } ] }, "project": { "main_branch": "auto-detect" }, "stale_after_hours": 4 }Use grouped format when you have 4+ teammates that fit into logical sub-teams. CLI commands support
--crew <name>to filter operations by crew group.- Auto-detect
main_branchfrom git
When to use decompose vs manual:
- Use decompose: Large codebase, unclear module boundaries, want optimal parallelization
- Use manual: Small targeted changes, clear separation already known, specific teammate roles needed
Deliverable: Valid .crew-config.json and confirmed team composition
Phase 2: SETUP
Goal: Create worktrees and prepare team state
Step 1: Run crew start
cck crew start [profile]Step 2: Read the generated lead prompt
The lead prompt is saved at the path shown in the output. Read it:
cat ~/.claude/crew/{hash}/{profile}/lead-prompt.mdStep 3: Parse the prompt
Extract from the generated prompt:
- Team name (for TeamCreate)
- For each teammate: name, branch, worktree path, model, mode, subagent_type, full teammate prompt
- Task descriptions (focus areas)
Step 4: Display team layout
Worktrees created:
| Teammate | Branch | Worktree Path |
|----------|--------|---------------|
| alice | feature/auth | /project-feature--auth |
| bob | feature/tests | /project-feature--tests |Deliverable: Worktrees ready, lead prompt parsed, team layout confirmed
Phase 3: LAUNCH
Goal: Create team, tasks, and spawn all teammates
Execute these steps in order:
Step 1: Create team
TeamCreate(team_name="{team.name}")Step 2: Create tasks One task per teammate describing their focus area:
TaskCreate(
subject="[teammate-name]: [brief focus]",
description="[full focus description from config]",
activeForm="[verb-ing form]"
)Step 3: Spawn ALL teammates in parallel
CRITICAL: Spawn all teammates in a SINGLE message with multiple Task calls.
For each teammate, use the full prompt from the generated lead prompt:
Task(
name="{teammate.name}",
team_name="{team.name}",
subagent_type="{resolved.subagent_type}",
model="{resolved.model}",
mode="{resolved.mode}",
run_in_background=true,
prompt="{full teammate prompt from lead-prompt.md}"
)The teammate prompt includes:
- Identity (name, branch)
- Working directory (worktree path)
- Path rules table (CRITICAL — ensures teammate works in correct worktree)
- Focus area
- Task workflow instructions
Step 4: Assign tasks
TaskUpdate(taskId="N", owner="{teammate.name}")Deliverable: All teammates spawned and working in parallel
Phase 4: COORDINATE
Goal: Monitor, support, and wrap up
Monitor progress:
- Check
TaskListperiodically to see task status - Teammates send messages when they complete work or hit blockers
- Respond to teammate messages with guidance or decisions
Health Monitoring:
Teammates can become unresponsive or crash. Use health monitoring to detect issues:
- Manual health checks:
Displays health table showing each teammate's status, last activity, and recent commits.cck crew doctor [profile] - Automated monitoring protocol (every 10-15 minutes):
- If a teammate is silent for >10 minutes, send them a message:
SendMessage(type="message", recipient="{name}", content="Status check: still working?") - Wait 2 minutes for response
- If still no response, check their worktree:
git -C {worktree_path} log --oneline -5 git -C {worktree_path} status - If worktree shows no recent activity:
- Teammate likely crashed
- Re-spawn using stored spawn prompt (see below)
- If a teammate is silent for >10 minutes, send them a message:
- Re-spawning crashed teammates:
- Spawn prompts are stored in team-state.json automatically
- To re-spawn, use the same Task call with the stored prompt
- The teammate will resume in the same worktree with context preserved
- Health status meanings:
active(✓): Updated recently, working normallyidle(○): No recent updates but not yet stale, may be thinkingunresponsive(⚠): Stale beyond threshold, may need attentioncrashed(✗): Worktree exists but no activity and very stale, needs re-spawn
When teammates report completion:
- Check their commits:
git -C {worktree_path} log --oneline -5 - Optionally review their diff:
git -C {worktree_path} diff {main_branch} --stat
When ALL tasks are complete:
- Verify each branch has commits
- Run merge preview to check for conflicts:
cck crew merge-preview [profile] - Review the preview results:
- Clean merges (✓): Can be auto-merged safely
- Conflicts (✗): Will require manual resolution
- Overlapping changes: Files modified by multiple teammates
- Share preview results with user and recommend strategy:
- If all clean: "All branches can merge cleanly. Proceed with merge?"
- If conflicts: "N branches have conflicts. Options: (1) merge clean branches first, (2) resolve conflicts manually, (3) review with teammates"
- Execute merge if user approves:
Optional flags:cck crew merge [profile]--test: Run tests after each merge (rollback on failure)--test-command="npm run test:ci": Custom test command
- If merge fails with conflicts, guide user:
git merge {branch} # Resolve conflicts manually git add . git commit - Shut down teammates:
SendMessage(type="shutdown_request", recipient="{name}", content="Work complete, shutting down.") - Clean up worktrees:
cck crew stop [profile] --cleanup - Remove
.crew-config.jsonif it was created for this session only
Deliverable: All work merged, teammates shut down, worktrees cleaned
Role Presets Reference
Roles set sensible defaults. Explicit fields in config always override role defaults.
| Role | Model | Mode | Focus Default |
developer | sonnet | bypassPermissions | Implement features, write code, fix bugs |
reviewer | sonnet | default | Review code for bugs, security, quality. Read-only |
tester | haiku | bypassPermissions | Write and run tests, ensure coverage |
architect | opus | default | Design architecture, review patterns. Read-only |
Config Formats
Single team (simple):
{
"team": {
"name": "my-team",
"teammates": [
{ "name": "alice", "branch": "feat/auth", "worktree": true, "role": "developer", "focus": "Build auth" }
]
},
"project": { "main_branch": "main" }
}Multiple profiles (advanced):
{
"profiles": {
"dev": {
"name": "dev-team",
"teammates": [
{ "name": "backend", "branch": "feat/api", "role": "developer", "focus": "API work" },
{ "name": "frontend", "branch": "feat/ui", "role": "developer", "focus": "UI work" }
]
},
"review": {
"name": "reviewers",
"teammates": [
{ "name": "reviewer", "branch": "main", "worktree": false, "role": "reviewer" }
]
}
},
"default": "dev",
"project": { "main_branch": "main" }
}Anti-Patterns
- Don't use crew for single tasks — Use Task tool directly for one-off sub-agents
- Don't spawn sequentially — Always spawn all teammates in a single message
- Don't forget task assignment — Teammates need TaskUpdate(owner=...) to know their work
- Don't merge without verifying — Check teammate commits before merging branches
- Don't use worktrees for sub-agents — Only crew teammates get worktrees. Regular Task tool agents work in the main project directory
- Don't skip path rules — Teammate prompts MUST include worktree path rules to prevent cross-worktree file access
Success Criteria
- All 4 phases completed (not skipped)
- Config validated before launch
- All teammates spawned in parallel (single message)
- Tasks assigned to correct teammates
- Teammate work verified before merge
- Clean shutdown and worktree cleanup
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.

