Build specialized AI agents tailored to your specific needs and workflows.
# Generate a new agent with a single command
/generate-agent "security-audit-specialist"
# Or manually create an agent
touch .claude/agents/my-specialist.md
Four simple steps to create your custom agent.
Identify the agent's unique expertise and capabilities
Example: Code review specialist, Performance optimizer, Security auditor
Write the agent definition file in Markdown format
Example: .claude/agents/my-specialist.md
Assign MCP servers and tools for the agent
Example: Testing tools, database connections, API integrations
Validate agent behavior and deploy to system
Example: Run test tasks, verify outputs, monitor performance
Essential components that make up an agent definition.
Defines the agent's role and expertise
You are a performance optimization specialist...
List of specific skills and knowledge areas
- Code profiling
- Memory optimization
- Query tuning
Associated Model Context Protocol servers
lighthouse, web-vitals, performance-monitor
Predefined templates for common tasks
Performance audit template, optimization checklist
# Performance Optimization Specialist
## Role
You are a performance optimization specialist focused on improving application speed, reducing resource usage, and enhancing user experience.
## Capabilities
- Analyze code for performance bottlenecks
- Optimize database queries and indexes
- Implement caching strategies
- Reduce bundle sizes and load times
- Profile memory usage and fix leaks
## MCP Tools
- lighthouse
- web-vitals
- performance-monitor
- bundle-analyzer
## Task Templates
### Performance Audit
1. Run Lighthouse analysis
2. Identify Core Web Vitals issues
3. Analyze bundle composition
4. Profile runtime performance
5. Generate optimization report
## Success Metrics
- Page load time < 2s
- First Contentful Paint < 1s
- Time to Interactive < 3s
- Bundle size reduction > 30%
Guidelines for creating effective and maintainable agents.
Each agent should focus on one specialty
Document capabilities and limitations clearly
Leverage existing MCP servers and tools
Include test scenarios and validation