What problem does it solve?
Reduce inconsistent, unclear, or non-idiomatic Go code by providing concise style guidance and actionable recommendations that improve readability, maintainability, and review quality across a codebase.
Core Features & Use Cases
- Guideline summary for formatting, naming, control flow, function design, and composite literal usage to make code more predictable and easier to review.
- Practical rules: prefer gofmt/gofumpt style, break long calls at semantic boundaries, use := vs var appropriately, initialize slices/maps to non-nil, prefer early returns and switch over long if-else chains, and keep functions focused with reasonable parameter counts.
- Integrates with linters and review workflows: use when writing code, performing PR reviews, configuring lint rules, or training team conventions.
- Use Case: run during a code review to produce a prioritized list of style issues and suggested fixes with explanations suited for developer education.
Quick Start
Ask the golang-code-style skill to review a Go file and list recommended stylistic changes with concise explanations.