madappgang/claude-code/agent-coordination-discipline
- community
Checking that the SKILL.md file is still in the repository.
Use when deciding whether to launch an agent, selecting which agent to use, or coordinating multiple agents. Covers delegation criteria, external-model patterns, task isolation, and agent selection strategies.
Install
npx vskill@latest install madappgang/claude-code/agent-coordination-disciplineSKILL.md
Agent Coordination Discipline
Iron Law: "NO AGENT LAUNCH WITHOUT CLEAR DELEGATION CRITERIA"
When to Use
Use this skill when:
- Considering launching an agent with the Task tool
- Evaluating whether a task requires agent delegation
- Selecting between different agent types or external models
- Coordinating multiple agents in a workflow
- Implementing external-model for external model delegation
- Debugging agent coordination failures
This skill prevents premature agent launches, redundant agent usage, and poor task isolation that wastes thinking budget and causes coordination failures.
Red Flags (Violation Indicators)
- [ ] Agent for single grep - Launching agent to run one grep/glob command (trivial-task anti-pattern)
- [ ] Missing external-model model - Using external-model without explicit model name specification
- [ ] No task isolation - Agent task description lacks independent context or success criteria
- [ ] No success criteria - Task description doesn't define what "done" looks like
- [ ] Default thinking pattern - Not considering whether task needs deep thinking vs. fast execution
- [ ] Multiple agents without coordination - Launching 2+ agents without clear result routing plan
- [ ] Result not used - Launching agent but not routing/validating its output
- [ ] Agent for trivial decision - Using agent to make decision you could make directly
- [ ] No tool exhaustion check - Launching agent before trying native tools first
- [ ] Missing timeout consideration - Not evaluating if task needs extended thinking time
- [ ] No error handling plan - Not defining what happens if agent fails or returns partial results
- [ ] Skill gap unclear - Not identifying what specific expertise the agent provides
Key Concepts
1. Agent vs. Native Tools Decision Tree
2. Task Isolation Requirements
Every agent task must be independently executable:
Bad (not isolated):
Good (properly isolated):
3. External Model Pattern
When delegating to external models via claudish CLI:
Structure:
Example:
When to Use Agents
Multi-Step Investigation
Trigger: Task requires 5+ tool calls with conditional branching Agent: developer, architect Example: "Trace data flow through 3 layers to find where user.email becomes null"
External Model Expertise
Trigger: Need specialized model capabilities (code speed, vision, reasoning) Agent: external-model with specific model Example: "Use Grok Code Fast to refactor 15 files for consistency in < 2 minutes"
Parallel Work
Trigger: Multiple independent tasks that can run simultaneously Agent: Multiple Task calls with result aggregation Example: "Analyze frontend performance (Task 1) while auditing API security (Task 2)"
Risk Isolation
Trigger: High-risk changes needing review before merging to main workflow Agent: review-focused agent with checkpoint Example: "Evaluate if this database migration will cause downtime"
Skill Gaps
Trigger: Current agent lacks specific skill that another agent has Agent: specialist agent (security, performance, accessibility) Example: "Launch accessibility agent to audit ARIA compliance"
When NOT to Use Agents
Single Grep/Glob
Instead: Use native Grep or Glob tool directly
Simple Tool Execution
Instead: Use tool directly
Decision Already Made
Instead: Execute the decision
Sequential Tool Calls
Instead: Chain tools directly
Nuanced Context Required
Instead: Handle in current agent
Agent Selection Matrix
| Task Type | Best Agent | Model | Reasoning | |
|---|---|---|---|---|
| Debugging errors | developer | sonnet-4-5 | Deep reasoning, context retention | |
| Design review | architect | sonnet-4-5 | System thinking, trade-off evaluation | |
| Code generation | developer | grok-code-fast | Speed for repetitive patterns | |
| Multi-codebase analysis | developer | sonnet-4-5 | Cross-repo understanding | |
| Performance profiling | developer + external-model | grok-code-fast | Fast scanning + specific optimization | |
| Security audit | security (if available) | sonnet-4-5 | Nuanced threat modeling | |
| Documentation generation | developer | grok-code-fast | Fast, straightforward task | |
| Refactoring (large scope) | developer | sonnet-4-5 | Maintain consistency across changes |
external-model Pattern Details
1. Model Selection
Fast Execution (< 2 min):
x-ai/grok-code-fast-1- Code generation, refactoring, simple analysisanthropic/claude-3-5-haiku- Quick decisions, data transformation
Deep Reasoning (> 2 min):
anthropic/claude-sonnet-4-5- Complex debugging, architecture designgoogle/gemini-2.0-flash-thinking-exp-01-21- Extended thinking budget
Specialized:
- Vision models - Screenshot analysis, diagram interpretation
- Code models - Language-specific optimization
2. Context Packaging
Minimal (< 1000 tokens):
- File paths only
- Error message
- Success criteria
Moderate (1000-5000 tokens):
- Key code snippets (< 50 lines)
- Related file structure
- Recent commit context
Full (5000+ tokens):
- Complete file contents
- Related test files
- Architecture documentation
3. Success Criteria Definition
Must include:
- Output format - JSON, markdown, code snippet, report
- Completeness - What must be covered
- Quality bar - Minimum acceptable quality
- Constraints - Time, token, tool limits
Example:
4. Result Routing
Pattern:
Example:
Task Isolation Checklist
Before launching an agent, verify:
- [ ] Independent understanding - Task description is self-contained (no "as discussed", "the bug we saw")
- [ ] Success criteria defined - Clear definition of what "done" looks like
- [ ] Dependencies listed - All required files, services, credentials specified
- [ ] Result format specified - Expected output structure (JSON, markdown, code, report)
- [ ] Error handling clear - What happens if agent fails or returns partial results
- [ ] Timeout reasonable - Time limit matches task complexity
- [ ] Tool attempts exhausted - Tried native tools first, agent is not premature
- [ ] Model selection justified - Chosen model matches task requirements (speed vs. reasoning)
Examples
Example 1: Bad Agent Usage (Python)
Example 2: Good Agent Usage (TypeScript)
Example 3: external-model with External Model (Go)
Integration with Other Skills
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 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 repositoryCheckingplugins/dev/skills/discipline/agent-coordination-discipline/SKILL.md
Popularity
- Repository stars
- 283
- Repository forks
- 26
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 7 months ago.
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/madappgang/claude-code/agent-coordination-discipline)