agent-capability-matrix
Map task types to the best agent, skill, model, and fallback. Route any task to the right tool. Use when: which agent, route task, agent for this, best agent, capability matrix.
What this skill does
<objective>
Provide a comprehensive mapping from task types to the optimal agent, skill, model tier, and fallback strategy. Eliminates guesswork when choosing which agent to use for a given task.
</objective>
<quick_start>
**Find the right agent:**
1. Identify your task type (debug, review, build, explore, etc.)
2. Look up the primary agent in the matrix below
3. If primary fails, use the fallback
4. Match model tier to task complexity
</quick_start>
<success_criteria>
- Task routed to the correct primary agent on first attempt
- Fallback agent identified if primary is unavailable or insufficient
- Model tier matched to task complexity (Haiku for search, Sonnet for code, Opus for architecture)
- Zero-cost tools (TaskCreate, TeamCreate) used for progress tracking instead of API calls
- Agent selection justified by the matrix rather than ad-hoc guessing
</success_criteria>
<triggers>
- "which agent", "route task", "agent for this", "best agent"
- "capability matrix", "agent selection", "what tool should I use"
- "task routing", "agent routing"
</triggers>
---
## Core Capability Matrix
### Development Tasks
| Task Type | Primary Agent | Fallback | Model | Notes |
|-----------|--------------|----------|-------|-------|
| Debug complex issue | debug-like-expert skill | general-purpose | sonnet | Hypothesis-driven |
| Quick bug fix | general-purpose | — | sonnet | Simple fixes |
| Code review | code-reviewer | feature-dev:code-reviewer | haiku | Pattern matching |
| Architecture design | Plan agent | code-architect | opus | Complex reasoning |
| Feature implementation | general-purpose | feature-dev agents | sonnet | Code generation |
| Refactoring | code-simplifier | general-purpose | sonnet | Preserve behavior |
| Security audit | security skill | general-purpose | sonnet | OWASP patterns |
| Write tests | testing skill | general-purpose | sonnet | TDD workflow |
| API design | api-design skill | general-purpose | sonnet | REST/GraphQL |
| API testing | api-testing skill | general-purpose | haiku | Postman/Bruno |
### Exploration & Research
| Task Type | Primary Agent | Fallback | Model | Notes |
|-----------|--------------|----------|-------|-------|
| Find files by pattern | Glob tool (direct) | Explore agent | — | Fastest |
| Search code content | Grep tool (direct) | Explore agent | — | Fastest |
| Understand codebase area | Explore agent | general-purpose | haiku | Thorough search |
| Deep code analysis | code-explorer | Explore agent | sonnet | Traces execution |
| Research framework/tool | research skill | WebSearch | sonnet | Structured eval |
| Market research | research skill | WebSearch | sonnet | Company profiles |
### Infrastructure & Deployment
| Task Type | Primary Agent | Fallback | Model | Notes |
|-----------|--------------|----------|-------|-------|
| Docker setup | docker-compose skill | general-purpose | sonnet | Local dev |
| GPU deployment | runpod-deployment skill | general-purpose | sonnet | RunPod |
| Database migration | supabase-sql skill | general-purpose | sonnet | Supabase |
| Stripe integration | stripe-stack skill | general-purpose | sonnet | Payments |
| Voice AI pipeline | voice-ai skill | general-purpose | sonnet | Deepgram+Cartesia |
| LangGraph agents | langgraph-agents skill | general-purpose | sonnet | Multi-agent |
| Fast inference | groq-inference skill | general-purpose | sonnet | GROQ API |
| Chinese LLMs | openrouter skill | general-purpose | sonnet | DeepSeek/Qwen |
| LLM fine-tuning | unsloth-training skill | general-purpose | sonnet | GRPO/SFT |
### Business & GTM
| Task Type | Primary Agent | Fallback | Model | Notes |
|-----------|--------------|----------|-------|-------|
| GTM strategy | gtm-pricing skill | general-purpose | sonnet | ICP, positioning |
| Sales outreach | sales-revenue skill | general-purpose | sonnet | Cold email |
| CRM integration | crm-integration skill | general-purpose | sonnet | Close/HubSpot |
| Content marketing | content-marketing skill | general-purpose | sonnet | B2B content |
| Data analysis | data-analysis skill | general-purpose | sonnet | Dashboards |
| Trading signals | trading-signals skill | general-purpose | sonnet | Technical analysis |
| Business model | business-model-canvas skill | general-purpose | sonnet | 9-block canvas |
| Market differentiation | blue-ocean-strategy skill | general-purpose | sonnet | ERRC framework |
### Workflow & Coordination
| Task Type | Primary Agent | Fallback | Model | Notes |
|-----------|--------------|----------|-------|-------|
| Session start/end | workflow-orchestrator skill | — | sonnet | Daily lifecycle |
| Parallel worktree dev | agent-teams skill | worktree-manager skill | sonnet | Full isolation |
| In-session parallel | subagent-teams skill | sequential execution | haiku-sonnet | Task tool |
| Progress tracking | TaskCreate/TaskUpdate | TodoWrite | — | Native UI spinners |
| Team coordination | TeamCreate + SendMessage | subagent-teams skill | haiku-sonnet | Shared task list |
| Git workflow | git-workflow skill | general-purpose | haiku | Commits, PRs |
| Skill authoring | extension-authoring skill | general-purpose | sonnet | Skills, hooks |
| Project planning | planning-prompts skill | Plan agent | sonnet | Meta-prompts |
| Cost tracking | cost-metering skill | manual tracking | haiku | Budget status |
---
## Decision Flowchart
```
START: What do I need to do?
│
├── Search/Find something?
│ ├── Know the file pattern? → Glob (direct)
│ ├── Know the code pattern? → Grep (direct)
│ └── Need to understand area? → Explore agent (haiku)
│
├── Write/Change code?
│ ├── Simple fix? → general-purpose (sonnet)
│ ├── New feature? → Check if a skill matches → skill or general-purpose (sonnet)
│ ├── Architecture? → Plan agent (opus)
│ └── Parallel build? → subagent-teams or agent-teams
│
├── Review/Validate?
│ ├── Code review? → code-reviewer (haiku)
│ ├── Security? → security skill (sonnet)
│ └── Tests? → testing skill (sonnet)
│
├── Research/Learn?
│ ├── Codebase? → Explore agent (haiku)
│ ├── Framework? → research skill (sonnet)
│ └── Market? → research skill (sonnet)
│
└── Business/GTM?
└── Check Business section of matrix above
```
---
## Model Tier Guide
| Tier | Model | Cost/1M In | Best For |
|------|-------|-----------|----------|
| **Fast** | Haiku 4.5 | $1.00 | Search, classify, review, simple tasks |
| **Standard** | Sonnet 4.6 | $3.00 | Code generation, reasoning, most tasks |
| **Premium** | Opus 4.6 | $5.00 | Architecture, complex decisions, planning |
| **Free** | TaskCreate | $0 | Progress tracking (local UI, not an API call) |
**Default to Sonnet** unless:
- Task is search/classify → use Haiku (5x cheaper)
- Task requires deep reasoning → use Opus (5x more capable)
- Task is progress tracking → use TaskCreate with `activeForm` for live spinners (zero cost)
**Cross-references:** [subagent-teams](../subagent-teams-skill/SKILL.md) for in-session parallel agents, [agent-teams](../agent-teams-skill/SKILL.md) for worktree-isolated parallel agents.
**Deep dive:** See `reference/matrix-table.md`, `reference/selection-flowchart.md`
## Emit Outcome Sidecar
As the final step, write to `~/.claude/skill-analytics/last-outcome-agent-capability-matrix.json`:
```json
{"ts":"[UTC ISO8601]","skill":"agent-capability-matrix","version":"1.0.0","variant":"default",
"status":"[success|partial|error]","runtime_ms":[estimated ms from start],
"metrics":{"tasks_routed":[n],"agents_matched":[n],"fallbacks_used":[n]},
"error":null,"session_id":"[YYYY-MM-DD]"}
```
Use status "partial" if some stages failed but results were produced. Use "error" only if no output was generated.
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.