Loading...
Loading...
Guide for defining and using Claude subagents effectively. Use when (1) creating new subagent types, (2) learning how to delegate work to specialized subagents, (3) improving subagent delegation prompts, (4) understanding subagent orchestration patterns, or (5) debugging ineffective subagent usage.
npx skill4agent add mineru98/skills-store subagents-creatorexplorelibrarianoraclefrontend-ui-ux-engineer1. TASK: Atomic, specific goal (one action per delegation)
2. EXPECTED OUTCOME: Concrete deliverables with success criteria
3. REQUIRED SKILLS: Which skill to invoke
4. REQUIRED TOOLS: Explicit tool whitelist (prevents tool sprawl)
5. MUST DO: Exhaustive requirements - leave NOTHING implicit
6. MUST NOT DO: Forbidden actions - anticipate and block rogue behavior
7. CONTEXT: File paths, existing patterns, constraintsexplorelibrarianoraclefrontend-ui-ux-engineerbackground_taskexplorelibrarian# GOOD: Specific, exhaustive
background_task(
agent="explore",
prompt="""
1. TASK: Find all authentication implementations
2. EXPECTED OUTCOME: List of files with auth logic, patterns used
3. REQUIRED SKILLS: explore
4. REQUIRED TOOLS: Grep, Read
5. MUST DO: Search for 'jwt', 'session', 'auth' patterns; identify middleware; list all endpoints
6. MUST NOT DO: Don't modify any files; don't run build/test commands
7. CONTEXT: Working in ./src directory, looking for Express.js patterns
"""
)
# BAD: Vague, implicit expectations
background_task(
agent="explore",
prompt="Find auth stuff in the codebase"
)