What problem does it solve?
This Skill automates the review of code for SOLID principles violations, design pattern misuse, tight coupling, and architectural boundary violations, providing feedback on code quality and structure.
Core Features & Use Cases
- SOLID Principle Compliance: Checks for violations of the Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles.
- Design Pattern Analysis: Identifies design patterns in use and suggests improvements for misapplied patterns.
- Coupling and Layer Boundary Check: Ensures that business logic is not leaking into controllers, DB queries are not in services, and there are no direct instantiations or cross-layer imports.
- Code Smell Detection: Flags common code smells like God classes, long parameter lists, feature envy, dead code, and missing early returns.
- Use Case: When a developer wants to ensure their codebase adheres to best practices and is well-structured before deployment.
Quick Start
Review the code in 'src/main/java' for design and architecture issues.