agentleFS
GerardoRdz96GerardoRdz96/claude-skills/skills/agents-team-builder/SKILL.md

agents-team-builder

Skill0 starsChanged 4 months agoMITView on GitHub

Use to design and launch a Claude Code agent team (2–5 specialized agents that share a task list, talk peer-to-peer, work in parallel). Triggers — "build an agent team", "design a team of agents", "set up a Claude agent team", "I need a multi-agent crew", "create an agent team for X", "spin up a team of teammates", "build me a Claude team", or `/agents-team-builder`.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't ask "what team do you want to build?" yet.

    line 18
  2. Very specific:

    If the chosen option is not agent team, stop here and explain *why* (one-liner from references/claude-code-agent-teams.md § "When to use — …

    line 26
  3. Very specific:

    Read .claude/settings.local.json and verify env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS == "1".

    line 30
  4. Very specific:

    Verify Claude Code version is ≥ v2.1.32 (!claude --version).

    line 37
  5. Distinctive:

    Ask via AskUserQuestion. Do NOT batch all rounds — one round per AskUserQuestion call so Gera focuses.

    line 41
  6. Distinctive:

    Ask Gera to define each role.

    line 53
  7. Distinctive:

    Run these checks on the answers.

    line 77
  8. Distinctive:

    Step 1 — Name the team: Ask Gera for a kebab-case team name (default: derive from the goal, e.g., "landing-page-build" or "research-trio").

    line 90
  9. Distinctive:

    3 is the sweet spot: When in doubt, recommend 3.

    line 178

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

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

/agents-team-builder

Builds Claude Code agent teams: 2–5 specialized agents that share a task list, talk to each other peer-to-peer, and work in parallel. Sibling of /skill-builder, /agent-builder, /routines-builder, /servy-routine — that family picks the mechanism and walks the discovery; this one is the agent-teams specialist. It runs a four-part discovery interview (goal, team, roles, deliverables), enforces Nate's do/don't gates, saves a rerunnable template to .claude/teams/<name>.md, and ends with a paste-ready invocation prompt + tmux observability tip. The full primer is references/claude-code-agent-teams.md — re-read it once if you haven't loaded it this session.

Phase 0 — Source check (silent)

Confirm references/claude-code-agent-teams.md exists. If not, stop and tell Gera: "Source knowledge references/claude-code-agent-teams.md is missing — re-ingest the agent-teams video before continuing." Don't try to build without the source.

Phase 1 — Decision gate (mandatory)

Don't ask "what team do you want to build?" yet. First confirm this should even be a team. Ask Gera one AskUserQuestion summarizing the task he wants done, with these options:

  • Agent team — multiple specialized areas, parallel + reactive, quality matters (multi-pass review). Proceed.
  • Sub-agents (no team) — independent parallel work, no peer comms needed. Tell Gera to just ask Claude to spin sub-agents; don't team.
  • Dynamic workflow (workflows) — wide fan-out (10s–100s agents), no peer comms. Refer to references/claude-code-workflows.md.
  • /goal loop — depth not width; run until criteria met. Refer Gera there.
  • Just-ask — simple one-shot. Don't fire anything; suggest he just ask Claude.

If the chosen option is not agent team, stop here and explain why (one-liner from references/claude-code-agent-teams.md § "When to use — and when NOT to"). Do not proceed.

Phase 2 — Enablement check

Read .claude/settings.local.json and verify env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS == "1".

  • If set: confirm to Gera "Agent teams enabled at project level — good." and move on.
  • If missing: tell Gera "Agent teams require the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 env var. May I add it to .claude/settings.local.json?" On yes, add the env block (or add the key to an existing env block). On no, stop and tell him the feature won't fire without it.

Also remind Gera: the env var only applies to NEW Claude Code sessions. If you just added it, he needs to launch a fresh claude session before the team can run. The skill can still build the prompt + save the template right now — they're persistent artifacts.

Verify Claude Code version is ≥ v2.1.32 (!claude --version). If not, stop.

Phase 3 — Discovery Interview

Ask via AskUserQuestion. Do NOT batch all rounds — one round per AskUserQuestion call so Gera focuses. If Gera supplied a one-line goal as an argument or in his trigger message, skip Round A's goal question and just confirm.

Round A — Goal + team size + model

One AskUserQuestion with three questions:

  1. Goal (free-form via "Other") — "What's the end deliverable in one sentence?" Provide 0 canned options; require Gera to type it.
  2. Team size — options: 2 / 3 / 4 / 5. Recommended: 3 ("Nate's sweet spot — enough specialization, not too expensive").
  3. Model — options: Haiku / Sonnet (Recommended) / Opus. Sonnet is the right default cost/quality trade for most teams.

Round B — Roles (the heart of the build)

Ask Gera to define each role. ONE AskUserQuestion per teammate (so up to 5 rounds). For each:

  1. Role name — free-form (e.g., "Frontend dev", "QA agent", "Researcher", "Critic").
  2. Job + outputs — free-form: "What does this teammate do, and what concrete file(s) do they produce?"
  3. Owns these files — free-form: list of file paths/globs this teammate is the sole writer for.
  4. Talks to — free-form: which other role(s) by name does this teammate message?

Track answers in a scratch table:

#RoleJobOutputsFiles ownedTalks to

Round C — Final deliverables + approval mode

One AskUserQuestion with two questions:

  1. Final deliverables — free-form bullet list. What does the human see at the end? (a running app? a PR? a test report? a doc?)
  2. First-run approval mode — options:
    • Human approves every teammate's plan (Recommended) — safest first run; relax later.
    • Main session approves teammate plans — lower friction; the orchestrator is the gatekeeper.
    • One teammate is the plan reviewer — specialist pattern; pick which role in the next message.

Phase 4 — Validation gates (block on red)

Run these checks on the answers. Red = block and ask Gera to fix. Yellow = warn but proceed.

GateCheckIf red
Team size2 ≤ N ≤ 5Block. Tell Gera why (cost scales linearly; 10+ is 10× more expensive).
File ownershipEvery teammate has at least one file/glob nobody else writesBlock. Show the overlap.
Recipients namedEvery teammate that produces a handoff names the recipientBlock. Show the unnamed handoffs.
Deliverables concreteAt least one deliverable is a file path or runnable artifact — not "summary" / "ideas"Block. Ask for a concrete artifact.
Goal one-lineGoal is ≤ 200 chars and starts with a verbYellow. Trim if longer.
Approval mode pickedPhase 3 Round C answeredBlock.

Phase 5 — Generate the artifact

Step 1 — Name the team. Ask Gera for a kebab-case team name (default: derive from the goal, e.g., "landing-page-build" or "research-trio"). This is the file slug.

Step 2 — Write the saved template to .claude/teams/<team-name>.md. Use this exact structure:

# Agent Team: <Team Name>

**Goal:** <one-line goal>
**Created:** <YYYY-MM-DD>
**Status:** ready / re-firable
**First-run approval mode:** <Human-approves | Main-approves | Reviewer-teammate>

## Invocation prompt (paste into a fresh Claude session)

GOAL: <goal>

Create a team called <team-name> of <N> teammates using <model>:

  1. <Role 1> — <job + outputs>. Owns: <files>. Talks to: <recipients>.
  2. <Role 2> — <job + outputs>. Owns: <files>. Talks to: <recipients>.
  3. <Role 3> — <job + outputs>. Owns: <files>. Talks to: <recipients>.
  [...continue for N teammates]

Final deliverables:
  - <deliverable 1>
  - <deliverable 2>
  - <deliverable 3>

Approval mode: <approval-mode-instruction>

## Notes
- Each teammate inherits the orchestrator's permissions, MCPs, skills, and project files. No conversation history is passed — context is the prompt above.
- For real per-agent visibility, run in tmux (not VS Code) — see `references/claude-code-agent-teams.md` § "Where you actually see them work".
- To re-fire this team later: open a fresh Claude session in this repo, then paste the "Invocation prompt" block above.

Step 3 — Update .claude/teams/index.md (create if missing). One-line entry per team:

- [<team-name>](<team-name>.md) — <one-line goal> · created <YYYY-MM-DD>

Step 4 — If Phase 2 had to set the env var, remind Gera one more time: "Restart your Claude Code session before firing this team — the env var only applies to new sessions."

Phase 6 — Output to chat (the paste-ready brief)

In the chat, output exactly this block (substitute real values):

## Agent team ready: <team-name>

Saved template: `.claude/teams/<team-name>.md`
Re-fire later by pasting that file's invocation prompt into a fresh session.

### To run now

1. (If env var was just added) Restart Claude Code in this directory.
2. Open a fresh `claude` session — ideally inside tmux for per-agent visibility:

tmux new -s team claude

3. Paste the invocation prompt from `.claude/teams/<team-name>.md`.
4. First run: keep the human-approval mode on; switch to main-approves once the pattern is working.

### Cost reality

Each teammate is a full Claude session. <N> teammates ≈ <N>× the cost of one. Watch the
session limit on first runs; stop early if a teammate goes off-track (the tmux split-pane view
makes this catch easy).

### Reference
- Full primer: `references/claude-code-agent-teams.md`
- Ladder context (vs sub-agents / workflows / /goal): `references/claude-code-workflows.md`

Phase 7 — Log

Append one line to references/log.md:

## [<YYYY-MM-DD>] create | Agent team — <team-name>
Built via `/agents-team-builder`. Goal: <goal>. <N> teammates on <model>. Saved at `.claude/teams/<team-name>.md`. First-run approval mode: <mode>.

Notes / discipline

  • Don't pre-fill role definitions. The skill must walk Gera through each role even if he wants to rush. Pre-filled roles are how teams get bad file-ownership and overlap.
  • Don't fire the team for him. This skill builds the prompt and saves the template. Gera fires the team manually in a fresh session. The separation matters: build = cheap (just text); fire = expensive (N parallel Claude sessions).
  • Don't bypass the decision gate. "Just-ask" is a valid outcome; many tasks Gera asks about with team language are actually sub-agent or just-ask jobs.
  • 3 is the sweet spot. When in doubt, recommend 3.
  • Skill stays under 500 lines. Detailed examples and the full primer live in references/claude-code-agent-teams.md.
  • Cost discipline: Tell Gera before Phase 5 that this team will be ~N× a single-Claude session. He should know before he saves the template.

Related

  • references/claude-code-agent-teams.md — the source primer.
  • references/claude-code-workflows.md — the orchestration ladder this fits on.
  • .claude/skills/skill-builder/SKILL.md, agent-builder/SKILL.md, routines-builder/SKILL.md, servy-routine/SKILL.md — sibling builders.

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.