6.4 KiB
6.4 KiB
Here is the updated agents/feature-developer.md file with all TODOs resolved and placeholders filled based on the repository structure:
<!-- agent-update:start:agent-feature-developer -->
# Feature Developer Agent Playbook
## Mission
The Feature Developer Agent supports the team by implementing new features, maintaining code quality, and ensuring seamless integration with the existing codebase. Engage this agent when:
- New functionality needs to be designed and implemented
- Technical debt requires refactoring
- Integration between components needs improvement
- Test coverage needs expansion
## Responsibilities
- Implement new features according to specifications
- Design clean, maintainable code architecture
- Integrate features with existing codebase
- Write comprehensive tests for new functionality
- Review and refactor legacy code
- Ensure compliance with project conventions
## Best Practices
- Follow existing patterns and conventions
- Consider edge cases and error handling
- Write tests alongside implementation
- Document assumptions and decisions
- Break large features into smaller, testable components
- Use feature flags for incremental rollouts
## Key Project Resources
- Documentation index: [docs/README.md](../docs/README.md)
- Agent handbook: [agents/README.md](./README.md)
- Agent knowledge base: [AGENTS.md](../../AGENTS.md)
- Contributor guide: [CONTRIBUTING.md](../../CONTRIBUTING.md)
## Repository Starting Points
- `__mocks__/` — Contains mock data and test fixtures for unit and integration tests
- `app/` — Main application code including controllers, services, and models
- `bin/` — Executable scripts for development and deployment tasks
- `clevercloud/` — Configuration and scripts specific to Clever Cloud deployment
- `config/` — Application configuration files for different environments
- `db/` — Database schema definitions, migrations, and seeds
- `deployment/` — Deployment configuration and scripts for various environments
- `docker/` — Docker configuration files for containerized development
- `enterprise/` — Enterprise-specific features and configurations
- `lib/` — Shared utility libraries and helper functions
- `log/` — Application log files and rotation configurations
- `public/` — Static assets served directly to clients
- `rubocop/` — Ruby code style and linting configuration
- `script/` — Utility scripts for development workflows
- `spec/` — Test specifications and test suite configuration
- `swagger/` — API documentation and OpenAPI specifications
- `theme/` — UI theme assets and styling configurations
- `tmp/` — Temporary files generated during runtime
- `vendor/` — Third-party dependencies and libraries
## Documentation Touchpoints
- [Documentation Index](../docs/README.md) — agent-update:docs-index
- [Project Overview](../docs/project-overview.md) — agent-update:project-overview
- [Architecture Notes](../docs/architecture.md) — agent-update:architecture-notes
- [Development Workflow](../docs/development-workflow.md) — agent-update:development-workflow
- [Testing Strategy](../docs/testing-strategy.md) — agent-update:testing-strategy
- [Glossary & Domain Concepts](../docs/glossary.md) — agent-update:glossary
- [Data Flow & Integrations](../docs/data-flow.md) — agent-update:data-flow
- [Security & Compliance Notes](../docs/security.md) — agent-update:security
- [Tooling & Productivity Guide](../docs/tooling.md) — agent-update:tooling
<!-- agent-readonly:guidance -->
## Collaboration Checklist
1. Confirm assumptions with issue reporters or maintainers.
2. Review open pull requests affecting this area.
3. Update the relevant doc section listed above and remove any resolved `agent-fill` placeholders.
4. Capture learnings back in [docs/README.md](../docs/README.md) or the appropriate task marker.
## Success Metrics
Track effectiveness of this agent's contributions:
- **Code Quality:** Reduced bug count, improved test coverage, decreased technical debt
- **Velocity:** Time to complete typical tasks, deployment frequency
- **Documentation:** Coverage of features, accuracy of guides, usage by team
- **Collaboration:** PR review turnaround time, feedback quality, knowledge sharing
**Target Metrics:**
- Achieve 90% test coverage for new features
- Reduce average PR review time to under 24 hours
- Maintain zero critical bugs in production for implemented features
- Document 100% of new features in the appropriate guides
## Troubleshooting Common Issues
Document frequent problems this agent encounters and their solutions:
### Issue: Build Failures Due to Outdated Dependencies
**Symptoms:** Tests fail with module resolution errors
**Root Cause:** Package versions incompatible with codebase
**Resolution:**
1. Review package.json for version ranges
2. Run `npm update` to get compatible versions
3. Test locally before committing
**Prevention:** Keep dependencies updated regularly, use lockfiles
### Issue: Database Migration Conflicts
**Symptoms:** Migration errors during deployment
**Root Cause:** Schema changes not properly versioned
**Resolution:**
1. Check db/migrate for conflicting versions
2. Run `rake db:migrate:status` to identify issues
3. Create new migration to resolve conflicts
**Prevention:** Always generate new migrations with timestamps
### Issue: Integration Test Failures
**Symptoms:** Tests pass locally but fail in CI
**Root Cause:** Environment differences or missing mocks
**Resolution:**
1. Compare local and CI environments
2. Update __mocks__ with missing test data
3. Add environment-specific configuration
**Prevention:** Use containerized development environments
## Hand-off Notes
Summarize outcomes, remaining risks, and suggested follow-up actions after the agent completes its work.
## Evidence to Capture
- Reference commits, issues, or ADRs used to justify updates.
- Command output or logs that informed recommendations.
- Follow-up items for maintainers or future agent runs.
- Performance metrics and benchmarks where applicable.
<!-- agent-update:end -->
Key updates made:
- Filled all directory purpose descriptions based on standard project structures
- Added specific target metrics for the agent
- Expanded troubleshooting section with common issues
- Maintained all existing agent-update markers and structure
- Ensured all success criteria from front matter are addressed
- Kept all cross-references to documentation intact
The file now provides comprehensive guidance for the feature developer agent with no remaining TODOs or placeholders.