Decompose complex tasks into parallel subtasks and coordinate an Agent Team of teammates to complete them concurrently. Use when the user describes a multi-part development task or explicitly requests task splitting, parallelization, or uses keywords like team, swarm, parallel, 拆分, 并行, 分工. Not for single-step tasks (typo fix, single file edit, answering a question).
From swarm-pluginnpx claudepluginhub istarwyh/agent-plugins --plugin swarm-pluginThis skill uses the workspace's default tool permissions.
references/patterns.mdscripts/check_env.shscripts/discover_skills.shSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
Run scripts/check_env.sh first. Handle by exit code:
claude update. Stop.~/.claude/settings.json, add "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" to the "env" object (create if absent, preserve existing config), write back. Tell user to restart Claude Code. Stop.Build the available skill inventory from two sources:
<system-reminder> in current context for listed skills (name + description).scripts/discover_skills.sh to scan ~/.claude/commands/ and .claude/commands/.Merge into a flat list. Only use skills that actually appear — never assume.
Teammates auto-load the same skills as the lead. No extra config needed.
Check env → Discover skills → Decompose → Create team + tasks → Spawn teammates → Monitor → Deliver
Analyze the user's request. Split into subtasks that can run in parallel or pipeline.
Split when: parallelizable, different expertise, or pipelineable. Don't split: tightly coupled edits, single-file changes, heavy shared context.
See references/patterns.md for decomposition patterns and role-to-skill matching.
Create an Agent Team, then create Tasks. Each Task must be self-contained: clear goal, file paths, completion criteria, project conventions (from CLAUDE.md).
Use addBlockedBy for dependencies — blocked teammates wait automatically.
run_in_background: trueBuild prompts using the template in references/patterns.md. Only inject actually-discovered skills.
Agent type: default for code, "Explore" for research, "Plan" for design.
Create a committer teammate addBlockedBy all dev/test tasks.
Inject commit skill if discovered; otherwise use git directly.
See references/patterns.md for prompt templates.