What problem does it solve?
Go codebases often accumulate outdated patterns, missed standard-library improvements, and security/performance regressions that linger as the language evolves.
Core Features & Use Cases
- Targeted Go modernization: Updates code toward recent Go language features and idiomatic patterns while prioritizing safety and correctness.
- Version-aware recommendations: Reads the project’s Go version (from go.mod/go.work) and suggests changes appropriate for that target.
- Lint- and tooling-informed fixes: Uses golangci-lint’s modernize linter (when available) and aligns guidance with a structured migration priority.
Use Case: You’re reviewing a Go service that compiles today but still uses older constructs (manual defaults, legacy packages, brittle concurrency, or non-idiomatic slices/maps patterns). Use this skill to produce prioritized, review-ready modernization suggestions that match your Go version.
Quick Start
Ask an AI coding agent: Modernize my Go codebase using /golang-modernize, respecting our current go.mod target and prioritizing safety-critical fixes first.