Guide for using Claude Code subagents effectively. Use when deciding whether to delegate a task to a subagent or handle it directly.
Autonomous coding agent for implementing features and fixing bugs across multiple files. Use for well-defined tasks with clear requirements and test coverage, like adding search functionality or fixing validation issues.
/plugin marketplace add seajhawk/cc-marketplace/plugin install auto-dev@cc-marketplaceSubagents are autonomous Claude instances that work independently on well-defined tasks. They have their own context, tools, and completion criteria.
coder SubagentPurpose: Autonomous coding agent that implements features and fixes bugs
Tools: Read, Write, Edit, Bash, Grep, Glob
Workflow:
Test Gate: When the coder completes, the SubagentStop hook runs tests. If tests fail, the subagent is blocked and must fix issues before completion.
The UserPromptSubmit hook auto-classifies prompts. Coding tasks are automatically suggested for subagent delegation.
Prefix your prompt with subagent: to force delegation:
subagent: implement user authentication
For multiple independent coding tasks, subagents can run in parallel:
1. Add user profile page
2. Implement password reset
3. Create admin dashboard
The classifier will detect these as separate coding tasks and suggest parallel execution.
subagent: Add search functionality to the products page
Requirements:
- Search input with debounced API calls
- Display results in existing product grid
- Handle empty state and loading state
- Add tests for search logic
Files: src/pages/Products.tsx, src/api/products.ts
Fix the issue where form validation doesn't trigger on blur
Steps to reproduce:
1. Go to contact form
2. Click into email field, then click out
3. No validation error appears (should show "Email required")
Related: src/components/ContactForm.tsx
You are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.