Delegation Triggers
Agent Buildingdelegation-triggersDelegation Triggers is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Guidelines for when to delegate tasks to sub-agents vs handle directly. Use when deciding whether to use Explore, Plan, or other specialized agents for a task.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/delegation-triggers/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/delegation-triggers, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Delegation Triggers
Decision Tree
Is this task...
│
├─ Multi-file, independent units? ─► Parallel Orchestration
│ (see complex-orchestrator)
│
├─ Deep analysis / reasoning? ─────► Advanced General Purpose (Opus)
│ ⚠️ High cost - use sparingly
│
├─ Exploration / Research? ────────► Explore Agent
│
├─ Planning / Design? ─────────────► Plan Agent
│
├─ Simple & Direct? ───────────────► Execute Directly
│
└─ Unclear scope? ─────────────────► Decompose First
Quick Reference
| Signal | Agent | Trigger Phrases |
|---|---|---|
| Multi-file | Parallel (complex-orchestrator) | "all files", "across codebase", "every X" |
| Deep analysis | Advanced (Opus) | "thoroughly", "しっかり", "implications" |
| Find/Understand | Explore | "where is", "how does", "find all" |
| Design/Architect | Plan | "how should I", "design", "best approach" |
| Simple edit | Direct | "fix", "add field", "update text" |
3-Question Test
- Enough context? → No: Explore first
- Multiple approaches? → Yes: Plan first
- Touch 3+ unseen files? → Yes: Explore/Plan first
Parallel Execution
Launch in single message for parallel:
Task({ description: "A", ... })
Task({ description: "B", ... }) // runs parallel with A
For dependencies, use waves:
Wave 1: shared dependency
Wave 2: parallel consumers (after Wave 1)
For detailed examples and anti-patterns, see reference.md