agent-coordination
Agent assignment matrix, blocker escalation, and TDM coordination patterns. Use when assigning work to specialists, managing blockers, or coordinating…
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
$ npx -y skills add bybren-llc/safe-agentic-workflow --skill team-coordination --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/team-coordinationContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: team-coordination description: 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. disable-model-invocation: true argument-hint: "[task-description]" allowed-tools: Read, Bash, Grep, Glob, Task
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.
Agent Teams are **experimental** and must be enabled:
// .claude/settings.json or settings.local.json
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}Invoke this skill when:
| 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.
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 implementationUse `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 ReviewMap 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)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.
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.
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 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:
When all tasks are complete: 1. Send shutdown_request to each teammate 2. Wait for approval from each 3. Clean up team resources via TeamDelete
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.
Validates task output meets criteria before allowing completion:
{
"hooks": {
"TaskCompleted": [{
"command": "bash -c 'echo \"Verify acceptance criteria met before marking complete\"'",SAW — SAFe Agentic Workflow AI Agent Harness for Multi-Agent Team Workflows Built on SAFe methodology (Scaled Agile Framework), adapted for AI agent teams (Now With AI-DLC!) Works for any team with repeatable processes: Software, Marketing, Research, Legal, Operations.
Agent assignment matrix, blocker escalation, and TDM coordination patterns. Use when assigning work to specialists, managing blockers, or coordinating…
API route implementation patterns with RLS, Zod validation, and error handling. Use when creating API routes, implementing endpoints, or adding server-side…
Documentation templates for ADRs, runbooks, and architecture docs. Use when creating architectural decision records, operational runbooks, or technical…
Deployment workflows, pre-deploy validation, and smoke testing patterns. Use when deploying to staging or production, running smoke tests, or validating…
Frontend patterns for Next.js App Router, Clerk auth, shadcn/Radix UI, and PostHog analytics. Use when building UI components, creating pages, implementing…
Advanced git operations including rebase, bisect, cherry-pick, and conflict resolution. Use when rebasing branches, debugging with bisect, cherry-picking…