
Description
golang-modernize is an agent skill from the samber cc-skills-golang collection for updating Go code to recent language features, standard library improvements and idiomatic patterns. Its persona is a Go modernisation engineer who puts safety and correctness fixes first, then readability, then gradual improvements. The skill has two modes. In inline mode, used while a developer is working on a feature, it suggests only the modernisations relevant to the current file, and it records other opportunities as a note with the quality gain each would bring, so a broad rewrite does not bury the developer's change. Before suggesting anything it asks once whether to raise the opportunities or skip them, and if the developer skips, it does not raise them again in the session. In full-scan mode, run explicitly or in CI, it uses up to five parallel sub-agents. One looks for deprecated packages and API replacements, one for language features such as range over integers, min and max, any and iterators, one for standard library upgrades such as slices, maps, cmp and slog, one for testing patterns such as t.Context and b.Loop, and one for tooling such as golangci-lint v2, govulncheck, profile-guided optimisation and the CI pipeline. The results are consolidated by priority, and the rewrite is applied in an isolated worktree. The skill covers roughly the last three years of Go releases. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-modernize.…
Highlights
- Inline and full-scan modes
- Language feature updates
- Standard library upgrades
- Deprecated API replacement
- Isolated worktree for codebase-wide rewrites
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-modernize.
People also visit

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context

comment-code-generate-a-tutorial
Refactor Python scripts into beginner-friendly projects

refactor-plan
Detailed multi-file refactor planning with safety checks and rollback guidance
golang-modernize FAQ
What does this skill do?
It updates Go code to current language features, standard library helpers and idioms, prioritising safety and correctness first.
What is inline mode?
While you code, it suggests only changes relevant to the current file, and records other opportunities for later so your diff stays focused.
What does full-scan mode do?
It runs up to five parallel scans and applies a codebase-wide rewrite in an isolated worktree, so your main tree is untouched until review.
How far back does it cover Go?
Roughly the last three years of Go releases, according to the skill's scope note.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-modernize.
How popular is it?
The skills.sh page lists the skill under the cc-skills-golang collection, which has 3.5K GitHub stars.
What are the best golang-modernize alternatives?
Popular alternatives to golang-modernize include golang-popular-libraries, go-concurrency-patterns and chakra-ui-refactor. See all golang-modernize alternatives

