What problem does it solve?
This Skill enforces SOLID principles in Go development, ensuring code is maintainable, scalable, and testable by adhering to strict architectural rules and best practices.
Core Features & Use Cases
- Modular Architecture: Enforces
internal/modules/[feature]/ structure for clear separation of concerns.
- File Size Limits: Keeps files under 100 lines to promote readability and single responsibility.
- Interface Segregation: Mandates small, focused interfaces (1-3 methods) in
ports/ directories.
- Use Case: When starting a new Go project or refactoring an existing one, use this Skill to establish a robust, SOLID-compliant architecture from the outset, preventing common pitfalls like god objects and tight coupling.
Quick Start
Apply the solid-go skill to refactor the current Go project to adhere to SOLID principles.