Launching agent teams

From lexler/skill-factory · View interactive version

Launching agent teams is an AI agent skill from the GitHub repository lexler/skill-factory. Launches agent teams with structured roles and task decomposition. Use when asked to create a team, spawn teammates, or coordinate multiple agents in parallel.

How to use this skill

Skill file

STARTER_CHARACTER = 🚀👥

Setup

Update reference docs to get the latest from Anthropic:

python ${CLAUDE_SKILL_DIR}/scripts/update-docs.py

Prerequisites

Agent teams are experimental. The user must have this in their settings (~/.claude/settings.json or .claude/settings.json):

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}

If the flag isn't set, tell the user and offer to add it before proceeding.

Teams vs Subagents — Pick the Right Tool

Before launching a team, confirm it's the right approach:

Use agent teams when:

Use subagents instead when:

Use git worktrees when:

If the task fits subagents better, say so and offer that instead.

Launching a Team

1. Clarify the Work

Before spawning anything, understand:

2. Decompose Into Roles

Each teammate should own a distinct, non-overlapping area. Overlap causes file conflicts and wasted tokens.

Aim for 3-5 teammates. More than that creates coordination overhead that rarely pays off. Each teammate should have 5-6 tasks to stay productive.

Anti-patterns:

3. Size Tasks Appropriately

4. Write Rich Spawn Prompts

Teammates do NOT inherit the lead's conversation history. They only get:

Include in each spawn prompt:

5. Configure Display Mode

For monitoring multiple teammates, split panes are better. Suggest tmux if available.

6. Create the Team

Present the proposed team structure to the user for approval before spawning. The structure should cover:

Team Management

Key Constraints

Parallel Work Principles

From large-scale multi-agent projects:

Cleanup

Always clean up through the lead:

Clean up the team

Shut down teammates first, then clean up. If orphaned tmux sessions persist:

tmux ls
tmux kill-session -t <session-name>

Reference

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.