| name | claude-code |
| description | Delegate coding tasks to Claude Code agent for refactoring, implementation, PR reviews, and complex operations. |
| metadata | {"version":"1.0.0","author":"erebus","tags":["autonomous-agents","claude","coding","delegation"]} |
Claude Code Agent Delegation
Use this skill to delegate coding tasks to the Claude Code CLI agent.
When to Use
- User needs complex refactoring across many files
- User wants an independent code review
- User needs implementation of a well-defined feature
- Tasks that benefit from a fresh context
Usage
claude -p "Refactor the authentication module to use JWT tokens"
claude
claude --model claude-sonnet-4-20250514 -p "Fix the failing tests"
Delegation Patterns
Feature Implementation
claude -p "Implement user registration: create User model, API endpoint, and tests"
Code Review
git diff main | claude -p "Review this diff for bugs, security issues, and code quality"
Parallel Work
git worktree add ../feature-a feature-a
cd ../feature-a && claude -p "Implement feature A"
Process
- Define Task: Write a clear, self-contained task description
- Set Context: Provide file paths and requirements
- Delegate: Run claude with the task
- Review: Check the output before accepting
- Integrate: Merge the changes if approved