What problem does it solve?
Go codebases often suffer from inconsistent quality, non-idiomatic patterns, and unmaintainable package structures that slow development, introduce bugs, and complicate onboarding for new engineers. This skill provides a structured, principle-driven workflow to eliminate these issues across all Go code writing, review, and refactoring tasks.
Core Features & Use Cases
- SOLID Principle Enforcement: Tailored guidance for applying SOLID principles via Go's composition model (no inheritance required) to reduce coupling and improve code extensibility.
- Layered Architecture Validation: Enforces MVC-style package boundaries to eliminate cyclic imports, misplaced business logic, and other architectural anti-patterns.
- Standardized Conventions: Unified rules for error handling, context propagation, dependency injection, package naming, and code structure that align with official Go community best practices.
- Use Case: For example, when reviewing a pull request for a new Go microservice, use this skill to catch violations like business logic in the service layer, fat interfaces, and missing context propagation before code is merged.
Quick Start
Use the golang-code-quality skill to review the Go code in the ./pkg/handler directory for SOLID violations and layered architecture issues.