What problem does it solve?
It solves confusion and inconsistency in Go code reviews by providing human-judgment style rules that linters cannot capture, improving readability and reducing maintainability risk.
Core Features & Use Cases
- Clarity-first formatting guidance: Break long lines at semantic boundaries and format multi-argument calls for readability.
- Intent-revealing declarations: Use
var vs := to signal zero-value vs non-zero intent, and avoid nil collections by initializing slices/maps.
- Control-flow structure: Prefer early returns, avoid unnecessary
else after returns, extract complex conditions into named booleans, and use switch over repeated if-else comparisons.
- Go API correctness heuristics: Apply value-vs-pointer rules for parameters, require named-field struct literals, and encourage short focused functions.
Quick Start
Use the golang-code-style skill to review or write a Go file while ensuring collection initialization, clear control flow, and semantic line breaking adhere to the conventions.