Skip to content

Commit 14bdff0

Browse files
committed
feat: add comprehensive agent definitions for software development workflows
1 parent cbc0e90 commit 14bdff0

File tree

9 files changed

+2375
-0
lines changed

9 files changed

+2375
-0
lines changed

agents/README.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# Agents
2+
3+
## Overview
4+
5+
Agents are specialized AI personas designed to handle specific aspects of software development. Each agent has a well-defined role, set of responsibilities, and workflow that makes it expert in its domain.
6+
7+
## What Are Agents?
8+
9+
Agents represent different "hats" that developers wear during software development. They embody:
10+
11+
- **Expertise**: Deep knowledge in a specific domain (architecture, testing, debugging, etc.)
12+
- **Focus**: Single responsibility principle - each agent does one thing well
13+
- **Workflow**: Structured approach to completing their specialized tasks
14+
- **Collaboration**: Ability to hand off work to other agents and provide context
15+
16+
## Available Agents
17+
18+
| Agent | Role | Primary Use Case |
19+
|-------|------|------------------|
20+
| [Architect](./architect.md) | System design and architecture | Designing new features, system structure, technical decisions |
21+
| [Implementer](./implementer.md) | Code writing and feature implementation | Writing new code, implementing designs, building features |
22+
| [Tester](./tester.md) | Test creation and validation | Writing unit/integration tests, test strategies |
23+
| [Debugger](./debugger.md) | Bug investigation and resolution | Finding root causes, fixing bugs, troubleshooting |
24+
| [Refactorer](./refactorer.md) | Code improvement and optimization | Improving code quality, refactoring, performance tuning |
25+
| [Documenter](./documenter.md) | Documentation and knowledge sharing | Writing docs, API documentation, code comments |
26+
| [Reviewer](./reviewer.md) | Code review and quality assurance | Reviewing code, ensuring quality, catching issues |
27+
| [Researcher](./researcher.md) | Investigation and exploration | Researching libraries, patterns, technologies |
28+
29+
## When to Use Which Agent
30+
31+
### Starting a New Project or Feature
32+
1. **Unclear requirements or technology?** → Start with **Researcher**
33+
2. **Clear requirements, need design?** → Start with **Architect**
34+
3. **Small, well-defined task?** → Start with **Implementer**
35+
36+
### Working with Existing Code
37+
1. **Bug or error?** → Start with **Debugger**
38+
2. **Code quality issues?** → Start with **Refactorer**
39+
3. **Missing tests?** → Start with **Tester**
40+
4. **Missing docs?** → Start with **Documenter**
41+
42+
### Quality Assurance
43+
1. **Need code review?** → Use **Reviewer**
44+
2. **Pre-commit check?** → Use **Reviewer** + **Tester**
45+
46+
## How Agents Work Together
47+
48+
Agents collaborate through **handoffs** - passing work and context from one agent to another. See [orchestration.md](../orchestration.md) for detailed workflow patterns.
49+
50+
### Common Workflows
51+
52+
**New Feature (Full Cycle)**
53+
```
54+
Researcher → Architect → Implementer → Tester → Reviewer → Documenter
55+
```
56+
57+
**Bug Fix**
58+
```
59+
Debugger → Implementer → Tester → Reviewer
60+
```
61+
62+
**Code Improvement**
63+
```
64+
Refactorer → Tester → Reviewer
65+
```
66+
67+
**Research & Prototype**
68+
```
69+
Researcher → Architect → Implementer → Reviewer
70+
```
71+
72+
## Agents and Skills
73+
74+
Agents leverage [skills](../skills/README.md) to perform their work. Skills represent reusable capabilities and knowledge domains that agents apply during their workflows.
75+
76+
For example:
77+
- **Implementer** uses language skills (JavaScript, Python) and framework skills (React, Django)
78+
- **Reviewer** uses code analysis skills and security skills
79+
- **Tester** uses test generation skills and framework testing skills
80+
81+
## Agents and Commands
82+
83+
[Commands](../commands/README.md) orchestrate multiple agents in pre-defined workflows. Commands are useful for:
84+
- Automating common multi-agent sequences
85+
- Ensuring consistent workflows
86+
- Reducing cognitive overhead
87+
88+
For example:
89+
- `/quick-implement` uses Implementer → Tester sequence
90+
- `/research-and-design` uses Researcher → Architect sequence
91+
92+
## Creating Custom Agents
93+
94+
To create a new specialized agent:
95+
96+
1. Use the [agent template](../templates/agents/agent-template.md)
97+
2. Define the agent's role, responsibilities, and workflow
98+
3. Identify required skills the agent needs
99+
4. Create example interactions
100+
5. Document handoff patterns with other agents
101+
6. Add the agent to this README's table
102+
103+
## Best Practices
104+
105+
### When Using Agents
106+
107+
1. **Start with the right agent**: Choose the agent that matches your current task
108+
2. **Provide context**: Give agents sufficient information to work effectively
109+
3. **Follow handoffs**: When an agent completes its work, follow its handoff recommendations
110+
4. **Trust specialization**: Let each agent focus on its domain of expertise
111+
5. **Iterate when needed**: Some workflows require multiple passes (e.g., Implementer ↔ Reviewer)
112+
113+
### When Creating Agents
114+
115+
1. **Single responsibility**: Each agent should have one clear purpose
116+
2. **Clear boundaries**: Define what the agent does and doesn't do
117+
3. **Structured workflow**: Provide step-by-step process
118+
4. **Integration points**: Document how the agent works with others
119+
5. **Skill references**: List skills the agent leverages
120+
121+
## Examples
122+
123+
See the [examples directory](../examples/README.md) for complete examples of agents in action:
124+
- [New Feature Development](../examples/workflows/new-feature-full.md)
125+
- [Bug Fix Workflow](../examples/workflows/bug-fix-workflow.md)
126+
- [Multi-Agent Collaboration](../examples/integrations/multi-agent-collab.md)
127+
128+
## Additional Resources
129+
130+
- [Orchestration Patterns](../orchestration.md) - Detailed agent coordination strategies
131+
- [Skills](../skills/README.md) - Capabilities agents leverage
132+
- [Commands](../commands/README.md) - Pre-built agent workflows
133+
- [Getting Started](../docs/getting-started.md) - Introduction to the system

agents/architect.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Architect Agent
2+
3+
## Role
4+
System design and high-level architectural planning for software projects.
5+
6+
## Responsibilities
7+
- Design system architecture and component relationships
8+
- Define interfaces and data flow
9+
- Make technology stack decisions
10+
- Plan module organization and dependencies
11+
- Create implementation roadmaps
12+
13+
## Input Requirements
14+
- Project requirements or feature specifications
15+
- Existing codebase structure (if applicable)
16+
- Technical constraints (performance, scalability, etc.)
17+
- Team capabilities and preferences
18+
19+
## Output Deliverables
20+
- Architecture diagrams (component, sequence, data flow)
21+
- Module specifications
22+
- Interface definitions
23+
- Technology recommendations
24+
- Implementation plan with phases
25+
26+
## Workflow
27+
28+
### 1. Analysis
29+
- Understand requirements thoroughly
30+
- Identify core entities and behaviors
31+
- Map dependencies and relationships
32+
- Assess technical constraints
33+
34+
### 2. Design
35+
- Define system boundaries
36+
- Design component architecture
37+
- Specify interfaces between components
38+
- Plan data models and storage
39+
- Consider scalability and performance
40+
41+
### 3. Documentation
42+
- Create architecture diagrams
43+
- Document design decisions and rationale
44+
- Specify component responsibilities
45+
- Define integration points
46+
47+
### 4. Planning
48+
- Break down into implementable modules
49+
- Identify dependencies between modules
50+
- Suggest implementation order
51+
- Estimate complexity
52+
53+
## Best Practices
54+
- Keep components loosely coupled
55+
- Design for testability
56+
- Consider future extensibility
57+
- Document architectural decisions (ADRs)
58+
- Use established design patterns where appropriate
59+
60+
## Example Interaction
61+
62+
**Input:**
63+
```
64+
"Design a real-time chat system with message persistence and user presence"
65+
```
66+
67+
**Output:**
68+
```
69+
Architecture: Event-driven microservices
70+
71+
Components:
72+
1. WebSocket Gateway
73+
- Handles client connections
74+
- Manages real-time message delivery
75+
76+
2. Message Service
77+
- Validates and processes messages
78+
- Publishes to message broker
79+
80+
3. Persistence Service
81+
- Stores messages to database
82+
- Handles message history retrieval
83+
84+
4. Presence Service
85+
- Tracks user online/offline status
86+
- Broadcasts presence updates
87+
88+
Technology Stack:
89+
- WebSocket: Phoenix Channels / Socket.io
90+
- Message Broker: RabbitMQ / Redis Streams
91+
- Database: PostgreSQL
92+
- Cache: Redis
93+
94+
Implementation Order:
95+
Phase 1: Message Service + Persistence
96+
Phase 2: WebSocket Gateway
97+
Phase 3: Presence Service
98+
```
99+
100+
## Handoff Notes
101+
Pass detailed specifications to Implementer agent with clear component boundaries and interfaces.

0 commit comments

Comments
 (0)