team
N coordinated agents on shared task list using Claude Code native teams
Install
mkdir -p .claude/skills/team && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2291" && unzip -o skill.zip -d .claude/skills/team && rm skill.zipInstalls to .claude/skills/team
About this skill
Team Skill
Spawn N coordinated agents working on a shared task list using Claude Code's native team tools. Replaces the legacy /swarm skill (SQLite-based) with built-in team management, inter-agent messaging, and task dependencies -- no external dependencies required.
The swarm compatibility alias was removed in #1131.
Usage
/oh-my-claudecode:team N:agent-type "task description"
/oh-my-claudecode:team "task description"
/oh-my-claudecode:team ralph "task description"
Parameters
- N - Number of teammate agents (1-20). Optional; defaults to auto-sizing based on task decomposition.
- agent-type - OMC agent to spawn for the
team-execstage (e.g., executor, debugger, designer, codex, gemini). Optional; defaults to stage-aware routing. Usecodexto spawn Codex CLI workers orgeminifor Gemini CLI workers (requires respective CLIs installed). See Stage Agent Routing below. - task - High-level task to decompose and distribute among teammates
- ralph - Optional modifier. When present, wraps the team pipeline in Ralph's persistence loop (retry on failure, architect verification before completion). See Team + Ralph Composition below.
Examples
/team 5:executor "fix all TypeScript errors across the project"
/team 3:debugger "fix build errors in src/"
/team 4:designer "implement responsive layouts for all page components"
/team "refactor the auth module with security review"
/team ralph "build a complete REST API for user management"
# With Codex CLI workers (requires: npm install -g @openai/codex)
/team 2:codex "review architecture and suggest improvements"
# With Gemini CLI workers (requires: npm install -g @google/gemini-cli)
/team 2:gemini "redesign the UI components"
# Mixed: Codex for backend analysis, Gemini for frontend (use /ccg instead for this)
Architecture
User: "/team 3:executor fix all TypeScript errors"
|
v
[TEAM ORCHESTRATOR (Lead)]
|
+-- TeamCreate("fix-ts-errors")
| -> lead becomes team-lead@fix-ts-errors
|
+-- Analyze & decompose task into subtasks
| -> explore/architect produces subtask list
|
+-- TaskCreate x N (one per subtask)
| -> tasks #1, #2, #3 with dependencies
|
+-- TaskUpdate x N (pre-assign owners)
| -> task #1 owner=worker-1, etc.
|
+-- Task(team_name="fix-ts-errors", name="worker-1") x 3
| -> spawns teammates into the team
|
+-- Monitor loop
| <- SendMessage from teammates (auto-delivered)
| -> TaskList polling for progress
| -> SendMessage to unblock/coordinate
|
+-- Completion
-> SendMessage(shutdown_request) to each teammate
<- SendMessage(shutdown_response, approve: true)
-> TeamDelete("fix-ts-errors")
-> rm .omc/state/team-state.json
Storage layout (managed by Claude Code):
~/.claude/
teams/fix-ts-errors/
config.json # Team metadata + members array
tasks/fix-ts-errors/
.lock # File lock for concurrent access
1.json # Subtask #1
2.json # Subtask #2 (may be internal)
3.json # Subtask #3
...
Staged Pipeline (Canonical Team Runtime)
Team execution follows a staged pipeline:
team-plan -> team-prd -> team-exec -> team-verify -> team-fix (loop)
Stage Agent Routing
Each pipeline stage uses specialized agents -- not just executors. The lead selects agents based on the stage and task characteristics.
| Stage | Required Agents | Optional Agents | Selection Criteria |
|---|---|---|---|
| team-plan | explore (haiku), planner (opus) | analyst (opus), architect (opus) | Use analyst for unclear requirements. Use architect for systems with complex boundaries. |
| team-prd | analyst (opus) | critic (opus) | Use critic to challenge scope. |
| team-exec | executor (sonnet) | executor (opus), debugger (sonnet), designer (sonnet), writer (haiku), test-engineer (sonnet) | Match agent to subtask type. Use executor (model=opus) for complex autonomous work, designer for UI, debugger for compilation issues, writer for docs, test-engineer for test creation. |
| team-verify | verifier (sonnet) | test-engineer (sonnet), security-reviewer (sonnet), code-reviewer (opus) | Always run verifier. Add security-reviewer for auth/crypto changes. Add code-reviewer for >20 files or architectural changes. code-reviewer also covers style/formatting checks. |
| team-fix | executor (sonnet) | debugger (sonnet), executor (opus) | Use debugger for type/build errors and regression isolation. Use executor (model=opus) for complex multi-file fixes. |
Routing rules:
- The lead picks agents per stage, not the user. The user's
N:agent-typeparameter only overrides theteam-execstage worker type. All other stages use stage-appropriate specialists. - Specialist agents complement executor agents. Route analysis/review to architect/critic Claude agents and UI work to designer agents. Tmux CLI workers are one-shot and don't participate in team communication.
- Cost mode affects model tier. In downgrade:
opusagents tosonnet,sonnettohaikuwhere quality permits.team-verifyalways uses at leastsonnet. - Risk level escalates review. Security-sensitive or >20 file changes must include
security-reviewer+code-reviewer(opus) inteam-verify.
Stage Entry/Exit Criteria
- team-plan
- Entry: Team invocation is parsed and orchestration starts.
- Agents:
explorescans codebase,plannercreates task graph, optionallyanalyst/architectfor complex tasks. - Exit: decomposition is complete and a runnable task graph is prepared.
- team-prd
- Entry: scope is ambiguous or acceptance criteria are missing.
- Agents:
analystextracts requirements, optionallycritic. - Exit: acceptance criteria and boundaries are explicit.
- team-exec
- Entry:
TeamCreate,TaskCreate, assignment, and worker spawn are complete. - Agents: workers spawned as the appropriate specialist type per subtask (see routing table).
- Exit: execution tasks reach terminal state for the current pass.
- Entry:
- team-verify
- Entry: execution pass finishes.
- Agents:
verifier+ task-appropriate reviewers (see routing table). - Exit (pass): verification gates pass with no required follow-up.
- Exit (fail): fix tasks are generated and control moves to
team-fix.
- team-fix
- Entry: verification found defects/regressions/incomplete criteria.
- Agents:
executor/debuggerdepending on defect type. - Exit: fixes are complete and flow returns to
team-execthenteam-verify.
Verify/Fix Loop and Stop Conditions
Continue team-exec -> team-verify -> team-fix until:
- verification passes and no required fix tasks remain, or
- work reaches an explicit terminal blocked/failed outcome with evidence.
team-fix is bounded by max attempts. If fix attempts exceed the configured limit, transition to terminal failed (no infinite loop).
Stage Handoff Convention
When transitioning between stages, important context — decisions made, alternatives rejected, risks identified — lives only in the lead's conversation history. If the lead's context compacts or agents restart, this knowledge is lost.
Each completing stage MUST produce a handoff document before transitioning.
The lead writes handoffs to .omc/handoffs/<stage-name>.md.
Handoff Format
## Handoff: <current-stage> → <next-stage>
- **Decided**: [key decisions made in this stage]
- **Rejected**: [alternatives considered and why they were rejected]
- **Risks**: [identified risks for the next stage]
- **Files**: [key files created or modified]
- **Remaining**: [items left for the next stage to handle]
Handoff Rules
- Lead reads previous handoff BEFORE spawning next stage's agents. The handoff content is included in the next stage's agent spawn prompts, ensuring agents start with full context.
- Handoffs accumulate. The verify stage can read all prior handoffs (plan → prd → exec) for full decision history.
- On team cancellation, handoffs survive in
.omc/handoffs/for session resume. They are not deleted byTeamDelete. - Handoffs are lightweight. 10-20 lines max. They capture decisions and rationale, not full specifications (those live in deliverable files like DESIGN.md).
Example
## Handoff: team-plan → team-exec
- **Decided**: Microservice architecture with 3 services (auth, api, worker). PostgreSQL for persistence. JWT for auth tokens.
- **Rejected**: Monolith (scaling concerns), MongoDB (team expertise is SQL), session cookies (API-first design).
- **Risks**: Worker service needs Redis for job queue — not yet provisioned. Auth service has no rate limiting in initial design.
- **Files**: DESIGN.md, TEST_STRATEGY.md
- **Remaining**: Database migration scripts, CI/CD pipeline config, Redis provisioning.
Resume and Cancel Semantics
- Resume: restart from the last non-terminal stage using staged state + live task status. Read
.omc/handoffs/to recover stage transition context. - Cancel:
/oh-my-claudecode:cancelrequests teammate shutdown, waits for responses (best effort), marks phasecancelledwithactive=false, captures cancellation metadata, then deletes team resources and clears/preserves Team state per policy. Handoff files in.omc/handoffs/are preserved for potential resume. - Terminal states are
complete, `faile
Content truncated.
More by Yeachan-Heo
View all skills by Yeachan-Heo →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversCipher empowers agents with persistent memory using vector databases and embeddings for seamless context retention and t
Boost productivity with AI for project management. monday.com MCP securely automates workflows and data. Seamless AI and
Unlock AI-powered automation for Postman for API testing. Streamline workflows, code sync, and team collaboration with f
Agent Collaboration MCP Server — orchestrate AI agents via tmux sessions for parallel task delegation, real-time monitor
A2AMCP synchronizes multiple AI agents on shared codebases with Redis-powered messaging, file locking, interface sharing
Enhance software testing with Playwright MCP: Fast, reliable browser automation, an innovative alternative to Selenium s
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.