What problem does it solve?
This Skill helps you choose the right Go declaration and initialization style so your code stays clear, idiomatic, and safe from subtle bugs like shadowing, nil map writes, and misleading zero values.
Core Features & Use Cases
- Declaration Style Guidance: Chooses between var and := based on scope, intent, and zero-value semantics.
- Idiomatic Initialization: Recommends field-named struct literals, make for writable maps, raw strings for regex or SQL, and any instead of interface{}.
- Safety Checks: Avoids shadowed builtins and enum mistakes such as zero-valued iota collisions.
- Use Case: When drafting a new config struct, const block, or helper function, this Skill can rewrite the declarations to follow Go best practices and a consistent project style.
Quick Start
Ask the skill to review your Go declarations and rewrite them using idiomatic var, :=, iota, struct literal, and map initialization patterns.