What I do
- Analyze current architecture for improvement opportunities
- Apply design patterns (Strategy, CQRS, Factory)
- Maintain dependency injection and repository patterns
- Ensure business logic stays isolated
- Validate changes with full test suite
When to use me
Use this when refactoring code to improve maintainability, applying patterns, or restructuring to follow Clean Architecture. This preserves architectural boundaries while improving code quality.
Procedure
- Analyze current architecture and identify improvements
- Plan refactoring: State intent and approach
- Apply appropriate design patterns from AGENTS.md
- Maintain dependency injection and repository patterns
- Ensure business logic stays isolated in calculators/
- Run full test suite to verify no regressions
- Format and lint changes
Related Guidelines
- Follow system structure from AGENTS.md
- Apply design patterns appropriately
- Maintain Clean Architecture layers
- Preserve testing standards and coverage
