Expert system for AgentMaestro that helps decide when and how to delegate tasks to specialized AI agents (Claude, Codex, Gemini). Use when you need to determine which agent is best suited for a task, or when a task should be broken down and delegated to multiple agents.
Analyzes tasks to determine optimal AI agent delegation within multi-agent systems. Use when deciding whether to use Claude for architecture/security, Codex for code generation, or Gemini for research/automation based on task complexity, requirements, and cost constraints.
/plugin marketplace add NehoraiHadad/agent-maestro-cli/plugin install maestro-delegation-suite@agent-maestroThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/feature-implementation.mdexamples/security-audit.mdreference/benchmarks.mdThis skill provides intelligent guidance for delegating tasks to specialized AI agents within the AgentMaestro multi-agent orchestration system.
IMPORTANT: When running in Claude Code, delegation happens automatically through subagents!
Claude Code will automatically invoke the appropriate subagent based on the task description. You don't need to use special markers or syntax - just recognize when a task matches a specialized agent's strengths.
codex-delegator - Automatically invoked for code generation tasksgemini-delegator - Automatically invoked for research and automation tasksThese subagents run in separate contexts, meaning their token usage does NOT impact your context!
Invoke this skill whenever you encounter a task that might benefit from delegation to a specialized agent. Consider delegation when:
Performance: SWE-bench: 72.7% | Context: 1M tokens | Speed: Medium | Cost: High
Best for:
Avoid for:
codex-delegator)gemini-delegator)gemini-delegator)Indicators: refactor, architecture, design, security, audit, vulnerability, analyze codebase, complex, enterprise
Performance: HumanEval: 90.2% | SWE-bench: 69.1% | Speed: Fastest | Cost: Medium
Accessed via: codex-delegator subagent (automatic in Claude Code)
Best for:
Avoid for:
Indicators: generate, implement, create, write code, quick, fast, prototype, test, fix bug, algorithm
How to delegate in Claude Code:
Simply recognize the task matches Codex's strengths, and Claude Code will automatically invoke the codex-delegator subagent!
Operational note: The delegated subagent runs
codex --dangerously-bypass-approvals-and-sandbox exec "..."so the command executes without approval prompts or sandbox restrictions. Only delegate to Codex when you trust the workspace.
Performance: Context: Largest | Speed: Medium | Cost: Most Efficient
Accessed via: gemini-delegator subagent (automatic in Claude Code)
Best for:
Avoid for:
codex-delegator)Indicators: search, research, find, web, internet, automate, workflow, browser, content generation, budget
How to delegate in Claude Code:
Simply recognize the task matches Gemini's strengths, and Claude Code will automatically invoke the gemini-delegator subagent!
Before deciding on delegation, analyze these aspects:
interface TaskAnalysis {
// Complexity
complexity: 'low' | 'medium' | 'high';
// Special requirements
requiresWeb: boolean; // Needs internet search/research
requiresSpeed: boolean; // Time-constrained or urgent
requiresContext: boolean; // Needs deep codebase understanding
securityCritical: boolean; // Security/safety implications
costSensitive: boolean; // Budget constraints
// Task nature
canParallelize: boolean; // Can be split into independent tasks
hasDependencies: boolean; // Sequential tasks with dependencies
}
Rule 1: Security & Architecture β Claude (Stay in main context)
Rule 2: Code Generation & Speed β Codex Delegator
codex-delegatorRule 3: Research & Automation β Gemini Delegator
gemini-delegatorRule 4: Mixed Tasks β Sequential Approach
gemini-delegator handlecodex-delegator handleUser Request: "Analyze our authentication system for vulnerabilities"
Task Analysis:
{
complexity: 'high',
requiresWeb: false,
requiresSpeed: false,
requiresContext: true,
securityCritical: true,
costSensitive: false,
canParallelize: false,
hasDependencies: false
}
Decision: Handle yourself (confidence: 0.95)
Action:
I'll perform the security audit myself:
1. First, let me read the authentication system files...
2. Then analyze for OWASP Top 10 vulnerabilities...
3. Review session management and token handling...
4. Identify potential attack vectors...
5. Provide prioritized recommendations...
User Request: "Implement a user login function with JWT validation"
Task Analysis:
{
complexity: 'medium',
requiresWeb: false,
requiresSpeed: true,
requiresContext: false,
securityCritical: false, // Implementation, not security design
costSensitive: false,
canParallelize: false,
hasDependencies: false
}
Decision: Codex (confidence: 0.9)
Action (Claude Code will do this automatically):
This is a code generation task perfect for Codex. Let me delegate this...
[Claude Code automatically invokes codex-delegator subagent]
[Subagent executes: codex --dangerously-bypass-approvals-and-sandbox exec "Implement user login function..."]
[Result returned without consuming your tokens!]
Here's the implementation Codex generated...
What you see: Just the final result, NOT the intermediate process!
User Request: "Find the best state management library for our React app in 2025"
Task Analysis:
{
complexity: 'low',
requiresWeb: true, // Needs internet research
requiresSpeed: false,
requiresContext: false,
securityCritical: false,
costSensitive: true, // Research task, use cost-effective agent
canParallelize: false,
hasDependencies: false
}
Decision: Gemini (confidence: 0.95)
Action (Claude Code will do this automatically):
This requires web research, which is perfect for Gemini. Let me gather that information...
[Claude Code automatically invokes gemini-delegator subagent]
[Subagent executes: gemini -p "Research state management..."]
[Result returned without consuming your tokens!]
Based on current research, here are the top options...
User Request: "Create a new user registration feature with best practices"
Task Analysis:
{
complexity: 'high',
requiresWeb: true, // Research best practices
requiresSpeed: false,
requiresContext: true, // Understand existing system
securityCritical: true,
costSensitive: false,
canParallelize: false,
hasDependencies: true // Research β Design β Implementation
}
Decision: Sequential multi-agent approach
Action:
I'll break this into three phases:
**Phase 1 - Research (Gemini):**
First, let me research current best practices...
[gemini-delegator automatically invoked]
β Research complete
**Phase 2 - Security Design (Me/Claude):**
Based on the research, I'll design the security architecture:
- Database schema with proper constraints
- Password hashing with bcrypt
- Email verification workflow
- Rate limiting strategy
- GDPR compliance measures
**Phase 3 - Implementation (Codex):**
Now let me implement based on this design...
[codex-delegator automatically invoked]
β Implementation complete
All phases complete! Here's the full solution...
Always provide a confidence score (0-1) for your delegation decision:
0.95-1.0: Perfect match, obvious choice
0.85-0.95: Strong match, highly recommended
0.70-0.85: Good match, reasonable choice
0.50-0.70: Moderate match, consider alternatives
< 0.50: Weak match, probably don't delegate
# BAD: Claude delegating architecture to Codex
User: "Design our microservices architecture"
You: [Tries to delegate to Codex]
# GOOD: Claude handles architecture himself
User: "Design our microservices architecture"
You: "I'll design this myself as architecture is my specialty..."
# BAD: Overhead not worth it
User: "Add a console.log statement"
You: [Delegates to Codex]
# GOOD: Just handle it yourself
User: "Add a console.log statement"
You: [Adds the statement directly]
# BAD: Vague delegation
User: "Fix the bug"
You: [Delegates to Codex with no context]
# GOOD: Provide clear context
User: "Fix the bug"
You: [Analyzes the bug first, then delegates with specific details]
Start: Analyze Task
β
ββ Security/Architecture/Deep Analysis?
β ββ YES β Handle yourself (Claude) (0.9+ confidence)
β
ββ Code Generation/Quick Implementation?
β ββ YES β codex-delegator (automatic) (0.85+ confidence)
β
ββ Research/Web/Automation?
β ββ YES β gemini-delegator (automatic) (0.85+ confidence)
β
ββ Multiple Independent Tasks?
β ββ YES β Sequential with appropriate delegations
β
ββ Sequential Phases (ResearchβDesignβCode)?
β ββ YES β Sequential: Gemini β Claude β Codex
β
ββ Simple Task?
β ββ YES β Handle yourself (< 0.5 confidence for delegation)
β
ββ Complex Mixed Task?
ββ YES β Break down and delegate appropriately
When you're running in Claude Code as the primary agent:
You (Claude): "This is a code generation task perfect for Codex"
β
Claude Code: Detects task matches codex-delegator description
β
Task Tool: Invokes codex-delegator subagent
β
Subagent: Runs codex CLI in separate context
β
Result: Returned to you (without the intermediate output!)
β
You: Continue with the result
Key Benefits:
| Task Type | Primary Agent | Subagent | Confidence |
|---|---|---|---|
| Security Audit | Claude (you) | - | 0.95 |
| Architecture | Claude (you) | - | 0.95 |
| Refactoring | Claude (you) | - | 0.90 |
| Code Generation | Codex | codex-delegator | 0.95 |
| Quick Prototype | Codex | codex-delegator | 0.90 |
| Bug Fix | Codex | codex-delegator | 0.90 |
| Unit Tests | Codex | codex-delegator | 0.90 |
| Web Research | Gemini | gemini-delegator | 0.95 |
| Automation | Gemini | gemini-delegator | 0.95 |
| Documentation | Gemini | gemini-delegator | 0.85 |
| Mixed (R+D+I) | Sequential | Multiple | - |
Remember: When you're Claude running in Claude Code:
The goal: Leverage each agent's strengths for optimal results while keeping your context clean and efficient!
Use this skill to make informed delegation decisions that maximize the effectiveness of the multi-agent system! π
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.