What problem does it solve?
This Skill helps you write, review, and refactor Go code so it stays simple, readable, maintainable, and aligned with modern Go conventions instead of drifting into over-engineered, Java-style patterns.
Core Features & Use Cases
- Package and project layout guidance: Organize applications by domain and purpose rather than artificial layers, with clear boundaries and minimal nesting.
- Idiomatic core language patterns: Apply clear control flow, useful zero values, early returns, concrete types, and well-placed interfaces.
- Testing and concurrency best practices: Prefer table-driven tests, fakes and stubs, context-aware goroutines, channels, and standard-library-first tooling.
- Use case: Refactor a Go service that has service/repository/controller layers into a flatter, domain-focused structure with simpler tests, cleaner error handling, and safer concurrency.
Quick Start
Ask for a review or rewrite of your Go code and specify that you want idiomatic package structure, modern stdlib-based patterns, and practical refactoring suggestions.