zircote-plugins/claude-team-orchestration/team-management
Claude Code and agent skill by zircote-plugins/claude-team-orchestration
- community
Checking that the SKILL.md file is still in the repository.
Create, configure, and manage agent teams including spawning teammates, delegate mode, permissions, shutdown, and cleanup. Use when setting up a new team, spawning workers, configuring team modes, or shutting down a completed team.
Install
npx vskill@latest install zircote-plugins/claude-team-orchestration/team-managementSKILL.md
The same SKILL.md was published earlier as zircote-plugins/claude-team-orchestration/team-management.
Team Management
Create, manage, and shut down agent teams. This skill covers team lifecycle from creation through cleanup.
Experimental: Agent teams are disabled by default. Enable withCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMSin your settings.json or environment.
Related skills:
- Orchestrating - Primitives overview and quick reference
- Task System - Managing work items and dependencies
- Messaging - Communication between agents
- Agent Types - Choosing the right agent for each role
- Spawn Backends - How teammates run (in-process, tmux, iTerm2)
- Error Handling - Troubleshooting and recovery
Core Architecture
A team consists of:
- Leader (you) - Creates team, spawns workers, coordinates work
- Teammates (spawned agents) - Execute tasks, report back
- Task List - Shared work queue with dependencies
- Inboxes - JSON files for inter-agent messaging
File Structure
Team Config Structure
Two Ways to Spawn Agents
Method 1: Task Tool (Subagents)
Use Task for short-lived, focused work that returns a result:
For agents that make code changes, use isolation: "worktree" to give them an isolated git worktree copy. The worktree is automatically cleaned up if no changes are made; if changes are made, the worktree path and branch are returned:
Characteristics:
- Runs synchronously (blocks until complete) or async with
run_in_background: true - Returns result directly to you
- No team membership required
isolation: "worktree"prevents changes from affecting the main working directory until reviewed- Best for: searches, analysis, focused research, isolated code edits
Method 2: Task Tool + team_name + name (Teammates)
Use Task with team_name and name to spawn persistent teammates:
Characteristics:
- Joins team, appears in
config.json - Communicates via inbox messages
- Can claim tasks from shared task list
- Persists until shutdown
- Best for: parallel work, ongoing collaboration, pipeline stages
Key Difference
| Aspect | Task (subagent) | Task + team_name + name (teammate) | |
|---|---|---|---|
| Lifespan | Until task complete | Until shutdown requested | |
| Communication | Return value | Inbox messages | |
| Task access | None | Shared task list | |
| Team membership | No | Yes | |
| Coordination | One-off | Ongoing |
Creating a Team
TeamCreate
Creates:
~/.claude/teams/feature-auth/config.json~/.claude/tasks/feature-auth/directory- You become the team leader
Constraint: One team per session. Clean up the current team before starting a new one.
Delegate Mode
By default, the lead may start implementing tasks itself instead of waiting for teammates. Delegate mode restricts the lead to coordination-only tools: spawning, messaging, shutting down teammates, and managing tasks.
When to use: When you want the lead to focus entirely on orchestration (breaking down work, assigning tasks, synthesizing results) without touching code directly.
How to enable: Start a team first, then press Shift+Tab to cycle into delegate mode.
Permissions Model
- Teammates start with the lead's permission settings
- You can change individual teammate modes after spawning
- You cannot set per-teammate modes at spawn time
Security:--dangerously-skip-permissionsis inherited by ALL teammates. Every teammate can execute any tool without confirmation. Use only in fully trusted, sandboxed environments. For production workflows, omit this flag.
Environment Variables
Spawned teammates automatically receive these:
Using in prompts:
Plan Approval
For complex or risky tasks, require teammates to plan before implementing:
When the teammate finishes planning, they send a plan_approval_request to the lead. The lead reviews and either approves or rejects with feedback. If rejected, the teammate stays in plan mode, revises based on feedback, and resubmits.
See Messaging for plan approval tool syntax.
Graceful Shutdown
Always follow this sequence:
Shutdown behavior: Teammates finish their current request or tool call before shutting down, which can take time.
Automate shutdown triggers with TeammateIdle and TaskCompleted hooks — see Error Handling for hook configuration.
Crashed teammates: Teammates have a 5-minute heartbeat timeout. If a teammate crashes:
- They are automatically marked as inactive after timeout
- Their tasks remain in the task list
- Another teammate can claim their tasks
- Cleanup will work after timeout expires
Cleanup
TeamDelete
Removes:
~/.claude/teams/{team-name}/directory~/.claude/tasks/{team-name}/directory
IMPORTANT:
- Will fail if teammates are still active. Use shutdown first.
- Always use the lead to clean up. Teammates should not run cleanup because their team context may not resolve correctly.
Discovering Team Members
Teammates can read the team config file to discover other team members:
The config contains a members array with each teammate's:
name- Human-readable name (always use this for messaging and task assignment)agentId- Unique identifier (for reference only)agentType- Role/type of the agent
IMPORTANT: Always refer to teammates by their name (e.g., "team-lead", "researcher", "tester").
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/team-management/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 1
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zircote-plugins/claude-team-orchestration/team-management)