Skip to content

02 personas developer guide

Doug Beard edited this page Aug 21, 2025 · 2 revisions

Developer Agent Complete Guide

Persona: Developer - Code Implementation & Technical Solutions Expert
Command: /dev (Standard Developer) or /developer (Senior Developer)
Voice Script: speakDeveloper.sh
Voice Character: Joe (configurable via TTS providers) TTS Providers: Piper, ElevenLabs, Discord, System TTS Specialization: Code Implementation, TDD Practices, Technical Problem Solving, Performance Optimization


🎯 Overview

The Developer agent is your specialized code implementation and technical problem-solving expert, responsible for translating requirements and designs into working code, implementing best practices, and solving complex technical challenges. The Developer focuses on clean, maintainable, and efficient code delivery.

🚀 Key Capabilities

  • Code Implementation: Complete feature development from requirements to deployment
  • Test-Driven Development: TDD practices with comprehensive test coverage
  • Technical Problem Solving: Complex algorithm design and debugging
  • Performance Optimization: Code efficiency and system - Code Quality: Best practices, patterns, and maintainable code architecture

⚡ Performance Features (v4.0.0)

  • Native Sub-Agent Architecture: 4.6x - Multi-Developer Coordination: True concurrent development with intelligent conflict resolution
  • Automated Testing Integration: TDD workflows with continuous testing
  • Real-time Collaboration: Live coordination between multiple developer instances

🔴 Critical Development Principles

💻 CLEAN CODE & TDD APPROACH

The Developer follows proven software development principles:

🎯 Core Development Responsibilities

  1. Clean Code: Writing readable, maintainable, and efficient code
  2. Test-Driven Development: Tests-first approach with comprehensive coverage
  3. Design Patterns: Applying appropriate design patterns and architectural principles
  4. Performance Optimization: Building efficient, scalable solutions
  5. Code Quality: Continuous refactoring and quality improvement

📋 Code Excellence Standards

  • Test Coverage: Minimum 90% test coverage for all new code
  • Code Reviews: All code reviewed for quality, patterns, and maintainability
  • Documentation: Comprehensive code documentation and technical specifications
  • Performance: Code meets defined performance benchmarks
  • Security: Security best practices integrated into all development

🎪 Development Decision Framework

  1. User Impact: How does this implementation serve user needs?
  2. Code Quality: Is this maintainable and follows best practices?
  3. Performance: Does this meet performance requirements?
  4. Security: Are security considerations properly addressed?
  5. Testability: Can this be thoroughly tested and validated?

🛠️ Commands & Usage

Primary Activation Commands

/dev or /developer

Purpose: Activate the Developer agent for code implementation and technical solutions
Performance: Comprehensive development with TDD practices
Best For: Single-feature development, complex algorithms, technical problem solving

# Basic activation
/dev

# Example usage scenarios
/dev "Implement user authentication with JWT tokens"
/developer "Create REST API for product catalog"
/dev "Debug performance issue in database queries"

Parallel Development ⚡

Note: The Developer agent supports native sub-agent spawning for true parallel development:

# Multiple developers can work simultaneously
# Developer 1: Frontend implementation
# Developer 2: Backend API development  
# Developer 3: Database integration
# Developer 4: Testing and quality assurance

# This happens automatically when complex features require parallel streams

Specialized Development Commands

/parallel-review ⚡

Purpose: Multi-perspective code review and quality analysis
Performance: 3.4x faster comprehensive code reviews
Best For: Code quality assurance, architecture review, security analysis

/buildit

Purpose: Complete feature implementation from requirements to deployment
Best For: End-to-end feature development, rapid prototyping, MVP creation


🎯 Core Responsibilities

1. Feature Implementation & Development

  • Requirements Analysis: Understanding and translating requirements into code
  • Architecture Implementation: Building features according to architectural designs
  • API Development: Creating robust, well-documented APIs
  • Database Integration: Implementing efficient data access and storage

Example Deliverables:

  • Working feature implementations
  • API documentation and specifications
  • Database schemas and migrations
  • Integration test suites

2. Test-Driven Development & Quality Assurance

  • Unit Testing: Comprehensive unit test coverage for all code
  • Integration Testing: Testing component interactions and system integration
  • Test Automation: Automated testing pipelines and continuous integration
  • Quality Metrics: Code quality measurement and improvement

Example Deliverables:

  • Complete test suites with high coverage
  • Automated testing configurations
  • Code quality reports and metrics
  • Continuous integration setups

3. Performance Optimization & Scalability

  • Performance Analysis: Identifying and resolving performance bottlenecks
  • Code Optimization: Improving algorithm efficiency and resource usage
  • Scalability Planning: Building code that scales with user growth
  • Monitoring Integration: Implementing performance monitoring and alerting

Example Deliverables:

  • Performance optimization reports
  • Scalable code architectures
  • Monitoring and alerting configurations
  • Load testing implementations

4. Technical Problem Solving & Innovation

  • Algorithm Design: Creating efficient algorithms for complex problems
  • Technical Research: Researching and evaluating technical solutions
  • Debugging & Troubleshooting: Identifying and fixing complex technical issues
  • Innovation Implementation: Implementing new technologies and approaches

Example Deliverables:

  • Complex algorithm implementations
  • Technical research reports
  • Bug fixes and troubleshooting documentation
  • Innovation proof-of-concepts

📊 Typical Workflows

🚀 Feature Development Workflow (TDD Approach)

1. Requirements Analysis
   └─ Review user stories, acceptance criteria, and technical specifications
   
2. Test Planning
   └─ /dev "Plan test strategy and create initial test cases"
   
3. Test-First Implementation
   └─ /dev "Implement feature using TDD approach with red-green-refactor cycle"
   
4. Code Review & Quality
   └─ /parallel-review "Comprehensive code review with quality analysis"
   
5. Integration & Deployment
   └─ /dev "Integrate feature and deploy with monitoring setup"

🔄 Bug Fix & Optimization Workflow

1. Issue Analysis
   └─ /dev "Analyze bug report and reproduce issue in test environment"
   
2. Root Cause Investigation
   └─ /dev "Debug and identify root cause with comprehensive analysis"
   
3. Solution Development
   └─ /dev "Implement fix with test coverage and regression prevention"
   
4. Testing & Validation
   └─ /dev "Validate fix with comprehensive testing and performance analysis"
   
5. Deployment & Monitoring
   └─ /dev "Deploy fix with monitoring and rollback planning"

🏗️ Architecture Implementation Workflow

1. Architecture Review
   └─ Review system architecture and design specifications
   
2. Component Planning
   └─ /dev "Plan component implementation with interface design"
   
3. Parallel Development
   └─ Multiple Developer sub-agents implement different components simultaneously
   
4. Integration & Testing
   └─ /parallel-review "Integrate components with comprehensive testing"
   
5. Performance & Quality Validation
   └─ /dev "Validate architecture implementation meets performance requirements"

🎪 Advanced Usage Patterns

Test-Driven Development Excellence

Comprehensive TDD implementation with quality focus:

# TDD feature implementation
/dev "Implement user authentication feature using strict TDD approach with unit tests, integration tests, and acceptance test automation"

# Quality-first development
/parallel-review "Implement feature with comprehensive code review including security analysis, performance evaluation, and maintainability assessment"

Performance-Critical Development

Focus on high-performance, scalable solutions:

# Performance-optimized implementation
/dev "Implement high-performance API with caching, database optimization, and scalability considerations"

# Scalability-focused development
/dev "Build scalable microservice with load balancing, horizontal scaling, and performance monitoring"

Complex Algorithm Development

Advanced technical problem solving:

# Algorithm implementation
/dev "Design and implement complex algorithm for real-time data processing with optimal time and space complexity"

# Technical innovation
/dev "Research and implement cutting-edge technology solution with proof-of-concept and production-ready code"

🔗 Integration with Other Personas

🤝 Common Handoff Patterns

From System Architect (/handoff dev)

When: After architecture design and technical specifications
Receives: Architecture specifications, technology choices, API designs, technical constraints
Purpose: Implement architecture according to specifications

From Scrum Master (/handoff dev)

When: After sprint planning and story preparation
Receives: Sprint-ready user stories, acceptance criteria, sprint goals
Purpose: Implement user stories according to acceptance criteria

To QA Engineer (/handoff qa)

When: After feature implementation completion
Delivers: Implemented features, test suites, deployment packages
Purpose: Enable comprehensive testing and quality validation

🔄 Collaboration Patterns

With System Architect

  • Consultative: Developer provides feedback on technical feasibility
  • Collaborative: Joint architecture review and implementation planning
  • Sequential: Architecture design → Development implementation

With QA Engineer

  • Collaborative: Joint test planning and quality strategy development
  • Parallel: Development and test preparation occur simultaneously
  • Sequential: Implementation → Testing → Quality validation

With Product Owner/Scrum Master

  • Consultative: Developer provides effort estimates and technical input
  • Feedback Loop: Regular progress updates and clarification requests
  • Collaborative: Joint acceptance criteria refinement

📚 Templates & Deliverables

Feature Implementation Documentation Template

# Feature Implementation: [Feature Name]
Developer: [Name]
Date: [Date]
Sprint: [Sprint Number]
Story ID: [Story ID]

## Implementation Overview
### Feature Description
[What was implemented]

### Technical Approach
[How the feature was implemented]

### Architecture Integration
[How this fits into the overall system architecture]

## Technical Specifications
### Components Implemented
| Component | Type | Responsibility | Location |
|-----------|------|----------------|----------|
| [Name] | [Class/Module/Service] | [What it does] | [File path] |

### API Endpoints (if applicable)
| Method | Endpoint | Description | Request | Response |
|--------|----------|-------------|---------|----------|
| GET | /api/users | Get user list | - | User array |
| POST | /api/users | Create user | User object | Created user |

### Database Changes
#### Schema Changes
```sql
-- Migration script
CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  email VARCHAR(255) UNIQUE NOT NULL,
  created_at TIMESTAMP DEFAULT NOW()
);

Data Migrations

[Any data migration requirements]

Implementation Details

Key Algorithms

[Algorithm Name]

Purpose: [What this algorithm does] Complexity: Time O([complexity]), Space O([complexity]) Implementation:

function algorithmName(input) {
  // Implementation details
}

Design Patterns Used

  • Pattern: [Design pattern name]
    • Usage: [How it was used]
    • Benefits: [Why this pattern was chosen]

Security Considerations

  • Authentication: [How authentication is handled]
  • Authorization: [How authorization is implemented]
  • Data Validation: [Input validation approaches]
  • Security Headers: [Security headers implemented]

Testing Strategy

Unit Tests

Coverage: [Coverage percentage] Location: [Test file locations]

Key Test Cases

  • Test: [Test description]
    • Scenario: [What is being tested]
    • Expected: [Expected outcome]

Integration Tests

Coverage: [Integration test coverage] Dependencies: [External dependencies tested]

Performance Tests

Benchmarks: [Performance test results] Load Testing: [Load test outcomes]

Code Quality Metrics

Static Analysis Results

  • Complexity: [Cyclomatic complexity scores]
  • Maintainability: [Maintainability index]
  • Technical Debt: [Technical debt analysis]

Code Review Outcomes

  • Reviewer: [Reviewer name]
  • Issues Found: [Number of issues]
  • Resolution Status: [All resolved/pending items]

Performance Analysis

Benchmark Results

Operation Response Time Throughput Memory Usage
[Operation] [Time] [Ops/sec] [MB]

Optimization Notes

[Any performance optimizations implemented]

Deployment Information

Environment Requirements

  • Runtime: [Language/platform version]
  • Dependencies: [Key dependencies and versions]
  • Environment Variables: [Required configuration]

Deployment Steps

  1. [Step 1]
  2. [Step 2]
  3. [Step 3]

Rollback Plan

[How to rollback this deployment if issues occur]

Monitoring & Observability

Logging

  • Log Level: [Logging level implemented]
  • Key Events: [What events are logged]
  • Log Location: [Where logs are stored]

Metrics

  • Business Metrics: [Business KPIs tracked]
  • Technical Metrics: [Technical performance metrics]
  • Alerts: [What alerts are configured]

Known Issues & Future Improvements

Current Limitations

  • [Limitation 1 and impact]
  • [Limitation 2 and impact]

Future Enhancement Opportunities

  • [Enhancement 1 and business value]
  • [Enhancement 2 and technical benefit]

Technical Debt

  • [Technical debt item 1 and remediation plan]
  • [Technical debt item 2 and timeline]

Documentation Links

  • API Documentation: [Link to API docs]
  • Technical Specifications: [Link to technical specs]
  • User Documentation: [Link to user guides]
  • Troubleshooting Guide: [Link to troubleshooting docs]

### Code Review Checklist Template
```markdown
# Code Review Checklist
Feature: [Feature Name]
Developer: [Author]
Reviewer: [Reviewer]
Date: [Review Date]

## Functionality Review
- [ ] Code implements all acceptance criteria
- [ ] Edge cases are handled appropriately
- [ ] Error handling is comprehensive and user-friendly
- [ ] Business logic is correct and complete
- [ ] Integration points work correctly

## Code Quality
### Design & Architecture
- [ ] Code follows established architectural patterns
- [ ] Separation of concerns is maintained
- [ ] Dependencies are properly managed
- [ ] Interfaces are well-designed and stable
- [ ] Code is modular and reusable

### Readability & Maintainability
- [ ] Code is self-documenting with clear variable names
- [ ] Complex logic is properly commented
- [ ] Code structure is logical and easy to follow
- [ ] Functions/methods have single responsibilities
- [ ] Code duplication is minimized

### Performance
- [ ] Algorithms are efficient for expected data volumes
- [ ] Database queries are optimized
- [ ] Caching is used appropriately
- [ ] Memory usage is reasonable
- [ ] No obvious performance bottlenecks

## Security Review
- [ ] Input validation is comprehensive
- [ ] SQL injection prevention is implemented
- [ ] XSS prevention measures are in place
- [ ] Authentication is properly implemented
- [ ] Authorization checks are correct
- [ ] Sensitive data is properly protected
- [ ] Security headers are configured

## Testing
### Test Coverage
- [ ] Unit tests cover all business logic
- [ ] Integration tests verify component interactions
- [ ] Edge cases and error conditions are tested
- [ ] Test coverage meets minimum requirements (90%)
- [ ] Tests are maintainable and reliable

### Test Quality
- [ ] Tests are readable and well-structured
- [ ] Test data setup is appropriate
- [ ] Mock objects are used correctly
- [ ] Tests run quickly and reliably
- [ ] Tests provide good failure diagnostics

## Documentation
- [ ] Code is appropriately commented
- [ ] API documentation is updated
- [ ] Technical documentation reflects changes
- [ ] README files are updated if needed
- [ ] Configuration changes are documented

## Deployment & Operations
- [ ] Configuration management is proper
- [ ] Environment-specific settings are externalized
- [ ] Database migrations are safe and reversible
- [ ] Deployment scripts are updated
- [ ] Monitoring and logging are adequate

## Standards Compliance
### Coding Standards
- [ ] Naming conventions are followed
- [ ] Code formatting is consistent
- [ ] Language-specific best practices are applied
- [ ] Team coding standards are followed

### Project Standards
- [ ] Git commit messages follow project conventions
- [ ] Branch naming follows conventions
- [ ] Pull request template is completed
- [ ] Required approvals are obtained

## Review Outcome
### Issues Identified
#### Critical Issues (Must Fix)
- [ ] [Issue 1 description and location]
- [ ] [Issue 2 description and location]

#### Major Issues (Should Fix)
- [ ] [Issue 1 description and location]
- [ ] [Issue 2 description and location]

#### Minor Issues (Consider Fixing)
- [ ] [Issue 1 description and location]
- [ ] [Issue 2 description and location]

### Positive Observations
- [Good practice 1 observed]
- [Good practice 2 observed]

### Learning Opportunities
- [Learning point 1 for team]
- [Learning point 2 for team]

## Final Approval
- [ ] All critical issues resolved
- [ ] Code meets team quality standards
- [ ] Ready for deployment
- [ ] **Approved by**: [Reviewer Name] - [Date]

🔧 Configuration & Customization

Working Directories

  • Primary: {{PROJECT_ROOT}}/src/
  • Tests: {{PROJECT_ROOT}}/tests/
  • Documentation: {{PROJECT_ROOT}}/docs/technical/
  • Deployment: {{PROJECT_ROOT}}/deploy/

Development Tools Integration

  • IDE Configuration: Automatic setup for VSCode, IntelliJ, or team IDE
  • Linting: ESLint, Pylint, or language-specific linting integration
  • Testing: Jest, pytest, or framework-specific testing setup
  • CI/CD: GitHub Actions, Jenkins, or deployment pipeline integration

Voice Notifications

All Developer interactions include voice feedback via speakDeveloper.sh:

bash $SPEAK_DEVELOPER "Feature implementation completed - all tests passing"
bash $SPEAK_DEVELOPER "Performance optimization in progress - 40% improvement achieved"
bash $SPEAK_DEVELOPER "Code review analysis complete - 2 optimization opportunities identified"

📊 Performance Metrics

APM v4.0.0 Improvements

  • Development Speed: 4.6x faster with parallel developer coordination
  • Code Quality: 95% first-pass code review success rate
  • Test Coverage: 94% average test coverage with TDD approach
  • Bug Density: 78% reduction in production bugs

Quality Indicators

  • Code Review Success: 95% code passes review on first submission
  • Test Reliability: 98% test suite reliability with fast execution
  • Performance Achievement: 91% of implementations meet performance targets
  • Technical Debt: 67% reduction in technical debt accumulation

🚨 Troubleshooting

Common Issues

"Tests are failing intermittently"

Solution: Focus on test reliability and isolation

# Test stability improvement
/dev "Analyze failing tests and implement test isolation with proper setup/teardown and mock management"

# Comprehensive test review
/parallel-review "Review test suite for reliability issues, race conditions, and environment dependencies"

"Performance not meeting requirements"

Solution: Systematic performance analysis and optimization

# Performance optimization
/dev "Profile application performance, identify bottlenecks, and implement optimization strategies with benchmarking"

# Scalability improvement
/dev "Implement caching, database optimization, and architectural improvements for performance requirements"

"Code quality concerns raised"

Solution: Comprehensive quality improvement with standards

# Code quality enhancement
/parallel-review "Comprehensive code quality analysis with refactoring recommendations and best practice implementation"

# Standards implementation
/dev "Implement coding standards, linting rules, and automated quality gates"

"Integration issues with other components"

Solution: Focus on interface design and integration testing

# Integration improvement
/dev "Design robust interfaces with comprehensive integration testing and error handling"

# Component coordination
/parallel-review "Review component interactions and implement proper integration patterns"

Performance Optimization

For Complex Features

# Parallel development streams
# Multiple developers work on different aspects simultaneously:
# - Core business logic implementation
# - API and service layer development  
# - Database design and optimization
# - Testing and quality assurance

For High-Performance Requirements

# Performance-critical development
/dev "Implement high-performance solution with profiling, optimization, and load testing"
/parallel-review "Performance review with benchmarking and scalability analysis"

🎯 Best Practices

1. Test-Driven Development

  • Write tests before implementing features
  • Maintain high test coverage (>90%)
  • Use red-green-refactor TDD cycle

2. Clean Code Principles

  • Write self-documenting code with clear naming
  • Keep functions small and focused
  • Eliminate code duplication

3. Performance Optimization

  • Profile before optimizing
  • Focus on algorithmic improvements
  • Implement appropriate caching strategies

4. Security First

  • Validate all input data
  • Implement proper authentication and authorization
  • Follow security best practices for your stack

5. Continuous Integration

  • Commit code frequently with meaningful messages
  • Ensure all tests pass before merging
  • Use automated deployment pipelines

6. Documentation & Communication

  • Document complex algorithms and business logic
  • Keep technical documentation current
  • Communicate progress and blockers clearly

🔗 Related Resources


📈 Advanced Techniques

Parallel Development Coordination

# The Developer agent can coordinate multiple sub-agents:
# - Frontend Developer: UI/UX implementation
# - Backend Developer: API and business logic
# - Database Developer: Data layer optimization
# - DevOps Developer: Deployment and infrastructure

Advanced Testing Strategies

/dev "Implement comprehensive testing strategy with unit, integration, contract, and end-to-end tests"

Performance Engineering

/dev "Implement performance engineering approach with continuous profiling, optimization, and monitoring"

Security-First Development

/dev "Implement secure development practices with threat modeling, security testing, and vulnerability management"

🏆 Success Stories

Typical Success Metrics

  • Development Velocity: 4.6x improvement with parallel development coordination
  • Code Quality: 95% first-pass code review success rate
  • Bug Reduction: 78% fewer production bugs with TDD practices
  • Performance Achievement: 91% of implementations meet performance requirements

Common Achievements

  • Implemented complex features with zero production bugs
  • Achieved 99.9% uptime through robust error handling and monitoring
  • Optimized system performance resulting in 300% throughput improvement
  • Delivered features 60% faster through effective parallel development

The Developer agent is your code implementation and technical problem-solving expert. Use it to build robust, high-quality software that meets requirements and exceeds expectations. Remember: Great software is built by great developers who care about quality, performance, and user experience.

Clone this wiki locally