team-coordination
Skill419 starsChanged 5 months agoMITView on GitHub
Agent Teams orchestration patterns for multi-agent SAFe workflows. Use when spawning agent teams, coordinating teammates, enforcing quality gates via task dependencies, or orchestrating the 11-agent SAFe pipeline. Covers TeamCreate, SendMessage, shared TaskList, and SAFe gate enforcement.
3 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- adyba/pi-safe-workflowedited, first seen Jul 10, 2026
- aaronnat23/disp8chtheir own version, first seen Jun 22, 2026
- alinaqi/maggytheir own version, first seen Jun 12, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- adyba/pi-safe-workflow★ 078% same
Wrote their own version · 2
- alinaqi/maggy★ 707same name
- aaronnat23/disp8ch★ 99same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/00-core-principles.mdcCursor rule
- .cursor/rules/01-git-workflow.mdcCursor rule
- .cursor/rules/02-pattern-discovery.mdcCursor rule
- .cursor/rules/03-safe-ai-dlc.mdcCursor rule
- .cursor/rules/04-knowledge-vault.mdcCursor rule
- .cursor/rules/10-backend-python.mdcCursor rule
- .cursor/rules/11-frontend-react.mdcCursor rule
- .cursor/rules/12-database-sql.mdcCursor rule
- .cursor/rules/13-testing.mdcCursor rule
- .cursor/rules/14-spec-creation.mdcCursor rule
- .cursor/rules/15-deployment.mdcCursor rule
- .cursor/rules/16-stripe-payments.mdcCursor rule
- .cursor/rules/20-agent-architect.mdcCursor rule
- .cursor/rules/21-agent-backend.mdcCursor rule
- .cursor/rules/22-agent-qas.mdcCursor rule
- .cursor/rules/23-agent-security.mdcCursor rule
- .cursor/rules/30-background-agents.mdcCursor rule
- .cursor/rules/31-mcp-integration.mdcCursor rule
- .cursor/rules/README.mdCursor rule
- agent-coordinationSkill
- api-patternsSkill
- confluence-docsSkill
- deployment-sopSkill
- frontend-patternsSkill
- git-advancedSkill
- linear-sopSkill
- migration-patternsSkill
- orchestration-patternsSkill
- pattern-discoverySkill
- release-patternsSkill
- rls-patternsSkill
- safe-ai-dlcSkill
- safe-workflowSkill
- security-auditSkill
- spec-creationSkill
- stripe-patternsSkill
- team-coordinationSkill
- testing-patternsSkill
- vault-syncSkill
- agent-coordinationSkill
- api-patternsSkill
- confluence-docsSkill
- deployment-sopSkill
- frontend-patternsSkill
- git-advancedSkill
- linear-sopSkill
- migration-patternsSkill
- orchestration-patternsSkill
- pattern-discoverySkill
- release-patternsSkill
- rls-patternsSkill
- safe-ai-dlcSkill
- safe-workflowSkill
- security-auditSkill
- spec-creationSkill
- stripe-patternsSkill
- testing-patternsSkill
- vault-syncSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 73
Use addBlockedBy / addBlocks to enforce the SAFe pipeline:
- Distinctive: line 212
Start with fewer teammates.
- Distinctive: line 223
Permissions inherit: All teammates start with lead's permission mode
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Team Coordination Skill
Purpose
Orchestrate Claude Code Agent Teams for SAFe multi-agent workflows. This skill provides patterns for spawning teams, assigning work by role, enforcing quality gates via task dependencies, and managing the full delivery pipeline.
Prerequisites
Agent Teams are experimental and must be enabled:
// .claude/settings.json or settings.local.json
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}When This Skill Applies
Invoke this skill when:
- Orchestrating work across multiple agent roles (FE, BE, QAS, etc.)
- Spawning a team for a Feature or Epic-level deliverable
- Coordinating parallel implementation with quality gate enforcement
- Running competing hypothesis debugging with multiple agents
- Performing parallel code review across security, performance, and test coverage
Agent Teams vs Subagents vs Background Agents
| Approach | Communication | Coordination | Best For |
| Agent Teams | DMs, broadcasts | Shared TaskList with dependencies | Complex multi-role SAFe workflows |
| Subagents | Report back only | Main agent manages | Focused tasks, results only |
| Background Agents | None | None | Fire-and-forget parallel work |
Use Agent Teams when: teammates need to share findings, challenge each other, and coordinate via SAFe gates. Use Subagents when: you need quick, focused workers that report back. Use Background Agents when: tasks are independent and don't need coordination.
SAFe Team Patterns
Pattern 1: TDM as Team Lead
The TDM (Technical Delivery Manager) is the natural team lead in the 11-agent model:
Create an agent team for {{TICKET_PREFIX}}-XXX implementation.
Team lead (TDM) responsibilities:
- Spawn teammates by role (BE, FE, QAS, etc.)
- Create tasks with SAFe gate dependencies
- Monitor progress and steer teammates
- Synthesize results and escalate blockers
Spawn these teammates:
- BE Developer: Implement API endpoints per spec
- FE Developer: Implement UI components per spec
- QAS: Validate acceptance criteria after implementationPattern 2: Task Dependencies for Quality Gates
Use addBlockedBy / addBlocks to enforce the SAFe pipeline:
Task structure for {{TICKET_PREFIX}}-XXX:
1. "Implement API endpoint" (owner: be-developer)
2. "Implement UI components" (owner: fe-developer)
3. "QAS validation" (owner: qas, blockedBy: [1, 2])
4. "Create PR" (owner: rte, blockedBy: [3])
5. "Stage 1 review" (owner: system-architect, blockedBy: [4])
This enforces: Implementation → QAS → RTE → Architect ReviewPattern 3: Spawning Teammates by Role
Map harness agent roles to teammate configurations:
Spawn teammates with role-specific prompts:
BE Developer teammate:
- Load: api-patterns, rls-patterns skills
- Task: Implement endpoints per spec at specs/{{TICKET_PREFIX}}-XXX-spec.md
- Constraint: All DB operations must use RLS context helpers
FE Developer teammate:
- Load: frontend-patterns skill
- Task: Implement UI per spec
- Constraint: Follow component patterns in patterns_library/ui/
QAS teammate:
- Load: testing-patterns skill
- Task: Execute testing strategy from spec
- Constraint: Must verify all acceptance criteria before approving
- Plan approval required (require plan approval before QAS makes changes)Pattern 4: Parallel Code Review
Create an agent team to review PR #XXX. Spawn three reviewers:
- Security reviewer: Focus on RLS enforcement, input validation, auth checks
- Architecture reviewer: Focus on pattern compliance, separation of concerns
- Test reviewer: Focus on test coverage, edge cases, acceptance criteria
Have them each review independently, then share and challenge findings.Pattern 5: Competing Hypothesis Debugging
Users report [issue description]. Spawn 3-4 teammates to investigate:
- Teammate 1: Investigate [hypothesis A]
- Teammate 2: Investigate [hypothesis B]
- Teammate 3: Investigate [hypothesis C]
Have them talk to each other to challenge and disprove theories.
Update findings as consensus emerges.Communication Patterns
Direct Messages (Most Common)
Send a message to the BE developer:
"The API endpoint needs to handle pagination. Check patterns_library/api/
for the standard pagination pattern before implementing."Broadcast (Use Sparingly -- Expensive)
Broadcast to all teammates:
"STOP: Architecture decision changed. The auth middleware now uses
{{AUTH_PROVIDER}} session tokens instead of JWT. Check the updated
spec before continuing."Only broadcast for:
- Critical blocking issues
- Architecture changes affecting everyone
- Stop-the-line announcements
Shutdown Coordination
When all tasks are complete:
1. Send shutdown_request to each teammate
2. Wait for approval from each
3. Clean up team resources via TeamDeleteQuality Gate Hooks
TeammateIdle Hook
Validates teammates completed their work before going idle:
{
"hooks": {
"TeammateIdle": [{
"command": "bash -c 'echo \"Verify all assigned tasks are completed before going idle\"'",
"description": "Validate teammate completed assigned work"
}]
}
}Exit code 2 sends feedback and keeps the teammate working.
TaskCompleted Hook
Validates task output meets criteria before allowing completion:
{
"hooks": {
"TaskCompleted": [{
"command": "bash -c 'echo \"Verify acceptance criteria met before marking complete\"'",
"description": "Validate task meets acceptance criteria"
}]
}
}Exit code 2 prevents completion and sends feedback.
Team Sizing Guidelines
| Work Scope | Recommended Size | Tasks per Teammate |
| Single Story | 2-3 teammates | 3-4 tasks each |
| Feature (multi-story) | 3-5 teammates | 5-6 tasks each |
| Epic (parallel features) | 5-8 teammates | 5-6 tasks each |
Rules of thumb:
- Start with fewer teammates; scale up if needed
- Each teammate should own different files (avoid conflicts)
- 5-6 tasks per teammate keeps everyone productive
- More than 8 teammates rarely helps (coordination overhead)
Known Limitations
- Experimental: Enable via
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS - No session resumption:
/resumedoesn't restore in-process teammates - One team per session: Clean up before starting a new team
- No nested teams: Teammates cannot spawn their own teams
- Permissions inherit: All teammates start with lead's permission mode
- Token cost: ~7x single session in plan mode
Authoritative References
- Official Docs: Agent Teams
- Hooks Reference: Hooks
- Subagents Comparison: Subagents
- Harness Agents:
AGENTS.md - Team Config:
.claude/team-config.json
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
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.

