What problem does it solve? Go codebases accumulate outdated patterns as the language evolves, leaving teams with deprecated APIs, missed safety fixes, and verbose idioms that newer Go versions solve natively. This Skill systematically detects and applies modernizations across Go 1.21 through 1.26, prioritizing safety and correctness fixes before cosmetic improvements. ## Core Features & Use Cases - Version-aware modernization: Reads go.mod to suggest only changes valid for the project's Go version, covering deprecated package migrations (math/rand to math/rand/v2), language features (min/max builtins, range-over-int, iterators), and standard library upgrades (slices, maps, cmp, slog). - Prioritized migration guidance: Ranks changes by impact, putting security fixes like os.Root path traversal prevention and govulncheck scans ahead of readability improvements like interface{} to any. - Inline and full-scan modes: Suggests contextual improvements while coding, or runs a five-agent parallel codebase scan applied in an isolated worktree for explicit /golang-modernize invocations. - Use Case: A team upgrading from Go 1.21 to 1.25 invokes the skill to remove loop variable shadow copies, adopt sync.WaitGroup.Go, replace gorilla/mux with stdlib http.ServeMux routing, and drop the automaxprocs dependency. ## Quick Start Ask the agent to review your Go project for modernization opportunities based on the version in go.mod.