π€ Agents
Agents are the core components of ECC. Each agent is an expert in a specific domain, with specialized skills and workflows.
What Are Agents?β
Think of agents as your professional team members:
- ποΈ architect is your system architect
- π planner is your project manager
- π§ͺ tdd-guide is your testing coach
- π code-reviewer is your code review expert
Overview of 13 Agentsβ
| Agent | Purpose | Trigger Command |
|---|---|---|
| planner | Create implementation plans | /plan |
| architect | System design decisions | /architect |
| tdd-guide | Test-driven development | /tdd |
| code-reviewer | Code review | /code-review |
| security-reviewer | Security analysis | /security |
| build-error-resolver | Fix build errors | /build-and-fix |
| e2e-runner | End-to-end testing | /e2e |
| refactor-cleaner | Dead code cleanup | /refactor |
| doc-updater | Documentation updates | /doc |
| git-assistant | Git operations | /git |
| debugger | Debugging assistant | /debug |
| performance-optimizer | Performance optimization | /perf |
| dependency-manager | Dependency management | /deps |
Key Agents in Detailβ
ποΈ planner - The Plannerβ
Role: Create detailed implementation plans before writing code
Workflow:
- Restate requirements to ensure understanding
- Analyze risks and dependencies
- Create a phased plan
- Wait for user confirmation before starting execution
# Usage example
/plan Implement a user authentication system
π§ͺ tdd-guide - TDD Coachβ
Role: Guide you through test-driven development
TDD Cycle:
π΄ RED β Write a failing test
π’ GREEN β Write minimum code to make it pass
π΅ REFACTOR β Refactor while keeping tests green
π code-reviewer - Code Reviewerβ
Role: Review code quality and find potential issues
Review Dimensions:
- Code correctness
- Security vulnerabilities
- Performance issues
- Maintainability
- Best practices
Agent Collaborationβ
Agents can work together to form workflows:
Best Practicesβ
- Complex features β Use
plannerfirst to create a plan - New features / Bug fixes β Use
tdd-guidefor TDD - After coding β Use
code-reviewerfor review - Critical flows β Use
e2e-runnerfor end-to-end testing
π‘ Tip: Agent configuration files are located in the ~/.claude/agents/ directory β you can customize them to fit your team's needs!