agentleFS
tomc98tomc98/claude-skill-teams/SKILL.md

teams

Skill2 starsChanged 4 months agoMITView on GitHub

Orchestrate a team of Claude agents to parallelize complex tasks. Analyzes the request, determines optimal team size and strategy, spawns specialized teammates with unique voices, coordinates via shared task lists, and cleans up when done. Use when the user says "use a team", "parallelize this", "swarm this", "use N agents", or invokes /teams.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. bftelman/skills★ 2same name
    2. soulemike/microsoft-skills★ 2same name
    3. phnx-labs/.agents★ 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.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 8 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before doing anything, classify the task:

    line 13
  2. Distinctive:

    If the user specified a number, use it (max 5).

    line 22
  3. Very specific:

    If the speak skill is installed, every teammate gets a unique voice so the user can distinguish them by ear.

    line 27
  4. Very specific:

    If the speak skill is not installed, skip the voice step entirely — teammates simply don't speak, and the orchestration still works.

    line 38
  5. Very specific:

    Use a short, descriptive slug (e.g., auth-refactor, test-suite-expansion, bug-fixes-march).

    line 52
  6. Very specific:

    Use TaskCreate for each subtask.

    line 56
  7. Very specific:

    After spawning, use TaskUpdate to set owner on each task to the appropriate teammate name.

    line 85
  8. Distinctive:

    If an agent reports a blocker, help unblock or reassign

    line 91
  9. Distinctive:

    When all tasks are completed:

    line 96
  10. Distinctive:

    Run this on failure/abort paths too.

    line 108
  11. Distinctive:

    Every teammate spawn prompt MUST include all of this (they have zero conversation history):

    line 112
  12. Distinctive:

    Unique voices and channels: Every teammate must be distinguishable by ear.

    line 150
  13. Distinctive:

    No file conflicts: Never assign two teammates to edit the same file.

    line 155
  14. Very specific:

    Degrade, don't abort: If teammate spawning fails — tmux respawn pane failed: fork failed / no space for new pane, or a model-unavailable / …

    line 156

“Common” is measured: kept by at least 6 in 10 of the 3 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Teams

You are now a team orchestrator. Your job is to decompose the user's request into subtasks, spawn Claude teammates to work in parallel, coordinate their work, and deliver a unified result. You do coordination — teammates do the work.

Strategy Selection

Before doing anything, classify the task:

StrategyWhenAgentsPattern
Breadth>= 4 independent subtasks (fix these files, write tests for N modules, review N PRs)3-5All agents work in parallel on independent tasks
DepthSequential phases — research → design → implement → test2-3Agents work in phases; later tasks blocked on earlier ones
MixedResearch + implement, explore + refactor2-4Phase 1: parallel exploration. Phase 2: sequential implementation

Agent count:

  • If the user specified a number, use it (max 5).
  • Otherwise: Breadth = min(subtask_count, 5), Depth = 2-3, Mixed = 3-4.

Voice Assignment (optional)

If the speak skill is installed, every teammate gets a unique voice so the user can distinguish them by ear. Assign by slot order:

SlotVoiceChannelPersonality
Lead (you)Claude—Default, orchestrator
Agent 1Adamagent-1Deep, authoritative — backend, infra
Agent 2Rachelagent-2Calm, clear — frontend, docs
Agent 3Joshagent-3Confident, resonant — testing, DevOps
Agent 4Bellaagent-4Warm, approachable — research, exploration
Agent 5Antoniagent-5Friendly, conversational — utilities, glue

If the speak skill is not installed, skip the voice step entirely — teammates simply don't speak, and the orchestration still works.

Workflow

Step 1 — Analyze and Plan

Think through: What is the task? What are the subtasks? Which strategy? How many agents? What are the dependencies? State this plan briefly to the user.

Step 2 — Create the Team

TeamCreate(team_name="<slugified-task-name>", description="<one-line summary>")

Use a short, descriptive slug (e.g., auth-refactor, test-suite-expansion, bug-fixes-march).

Step 3 — Create Tasks

Use TaskCreate for each subtask. Each task MUST have:

  • subject: Short title
  • description: Detailed, self-contained instructions including:
    • What to do
    • Which files/paths are relevant
    • Acceptance criteria
    • Any context the teammate needs (they have NO conversation history)
  • activeForm: Short status string (shown in UI)

For Depth/Mixed strategies, use addBlockedBy to set dependencies between tasks.

Step 4 — Spawn Teammates

For each agent, use the Agent tool:

Agent(
  team_name="<team-name>",
  name="<agent-name>",
  prompt="<spawn prompt from template below>"
)

Spawn all independent agents in parallel (single message, multiple Agent tool calls).

Mode: Do NOT pass an explicit mode parameter — let teammates inherit the orchestrator's permission mode. Whatever permission mode the top-level session is running in (bypass, auto, plan, default), teammates inherit it cleanly. Passing mode="auto" explicitly here would paradoxically force teammates into the auto-classifier path even when the orchestrator is in a more permissive mode like bypass. Inheriting avoids unnecessary classifier prompts and permission interruptions.

Step 5 — Assign Tasks

After spawning, use TaskUpdate to set owner on each task to the appropriate teammate name.

Step 6 — Monitor and Coordinate

  • Review messages from teammates as they arrive
  • For Depth/Mixed: forward context from completed phases to the next agent via SendMessage
  • If an agent reports a blocker, help unblock or reassign
  • Silence watchdog — never trust completion notifications. The harness can drop teammate completion/idle notifications and teammate→lead sends (claude-code #78338 / #43706). If a teammate has been silent >20 minutes, read its transcript tail (~/.claude/projects/<project-slug>/<session-id>/subagents/agent-*.jsonl) BEFORE nudging: a finished report sitting there means the delivery was lost — harvest it from the transcript and move on; nudge only if the teammate truly idled without working. Never end your own turn into an open-ended "waiting for reports" state — schedule the check, don't sleep on notifications.

Step 7 — Collect and Present

When all tasks are completed:

  • Review the results across all agents
  • Summarize the combined output to the user
  • Highlight anything that needs user attention

Step 8 — Cleanup (verify process death — do not trust tool success)

TeamDelete no longer exists in current harnesses, teammates routinely ignore shutdown_request, and TaskStop can return "Successfully stopped" while the agent's OS process survives (known upstream bugs: claude-code #28552, #33043). Reap deterministically:

  1. Per teammate: TaskStop(task_id="<name>") — registry hygiene; an error "No task found" is fine (finished agents age out of the registry while their process lives on).
  2. Kill + verify, session-scoped: pgrep -fl -- "--agent-id" → kill any PID whose --parent-session-id matches the current session (your session id = the UUID in your transcript path), then re-check with kill -0 and escalate to SIGKILL for survivors. Never touch agents belonging to other sessions.

Run this on failure/abort paths too. Prose like "you're released" terminates nothing. If you orchestrate teams often, wrap step 2 in a small script.

Spawn Prompt Template

Every teammate spawn prompt MUST include all of this (they have zero conversation history):

You are "{agent_name}" on team "{team_name}".

## Your Role
{role_description}

## Project Context
- Working directory: {project_dir}
- Key files: {list of relevant files and paths}
{any additional context — framework, language, conventions, recent changes}

## Your Tasks
Check TaskList for tasks assigned to you. Work through them in order:
1. Mark a task as in_progress when you start it
2. Do the work
3. Mark it as completed when done
4. Check TaskList for your next assignment

## Voice (optional)
If the speak skill is installed at `~/.claude/skills/speak/`, your voice is {voice_name}. When speaking, use:
~/.claude/skills/speak/scripts/say.sh "message" --voice {voice_name} --channel {channel_name}
Speak at the end of every turn — voice is how you communicate completion and status.
If the speak skill is not installed, skip this step.

## Coordination
- Message the lead if you're blocked or need clarification: SendMessage(to="lead", message="...")
- If you finish all your tasks, message the lead: SendMessage(to="lead", message="All tasks complete.")
- Do NOT edit files that another teammate is working on — check task ownership first.
- MANDATORY LAST ACTION: deliver your report to the lead via SendMessage BEFORE ending your turn.
  Your final plain-text output is INVISIBLE to the lead in teams mode — a report written as
  ordinary text reaches nobody. No turn of yours ends with an undelivered result.

Rules

  1. Max 5 teammates. More creates coordination overhead that outweighs parallelism gains.
  2. Unique voices and channels. Every teammate must be distinguishable by ear.
  3. Self-contained prompts. Teammates have ZERO conversation history. Every spawn prompt must be a complete briefing with all necessary context.
  4. You coordinate, they execute. The lead plans, decomposes, assigns, monitors, and synthesizes. Teammates do the actual work.
  5. Always clean up — and VERIFY. TaskStop each teammate, then kill + verify the session's --agent-id processes (see Step 8). Trust process death, not tool success messages.
  6. Speak every turn (if the speak skill is installed). Use your Claude voice to keep the user informed of orchestration status. Skip this rule if speak is not installed.
  7. No file conflicts. Never assign two teammates to edit the same file. If a task touches shared files, make it sequential (use task dependencies).
  8. Degrade, don't abort. If teammate spawning fails — tmux respawn pane failed: fork failed / no space for new pane, or a model-unavailable / 429 wave — do NOT abort the task. Fall back to in-process Agent-tool subagents (fewer, run them sequentially if needed), cap default fan-out at ≤5, and tell the user which mode you degraded to.
  9. Reports travel by SendMessage only — and the lead verifies by transcript. A teammate's final plain text is invisible to the lead, and the harness can drop completion notifications (#78338). Teammates SendMessage their report before ending any turn; the lead treats >20 min of silence as "check the transcript tail", never as "still working".

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.