golang-modernize

Modernize Go codebases by updating outdated patterns to current language features.

1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/Jylhis/claude-marketplace --skill golang-modernize-jylhis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-modernize
Source: https://github.com/Jylhis/claude-marketplace/tree/main/plugins/golang-dev/skills/golang-modernize
Command: npx skills add https://github.com/Jylhis/claude-marketplace --skill golang-modernize-jylhis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Maintaining Go codebases becomes increasingly difficult as the language evolves; this skill continuously updates stale patterns, deprecated APIs, and suboptimal idioms to keep projects current and secure.

Core Features & Use Cases

  • Version‑aware scans: Detects the Go version from go.mod and suggests upgrades up to Go 1.26.
  • Automated modernization: Replaces deprecated packages, introduces new language features, and upgrades tooling such as golangci‑lint.
  • CI and on‑demand modes: Runs a full‑scan with parallel sub‑agents for comprehensive reviews or provides inline suggestions during active development.
  • Safety‑first workflow: Never performs large refactors without explicit user consent and records ignored suggestions in a .modernize file.

Quick Start

Invoke the golang-modernize skill to automatically analyze and suggest modernizations for your Go codebase.

Frequently Asked Questions about golang-modernize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I modernize Go code to use newer language idioms?

You can modernize Go codebases by scanning files to detect the target version from go.mod, replacing deprecated packages, and suggesting upgrades to current language features up to Go 1.26.

What is the best way to update deprecated Go APIs in an older project?

Updating deprecated Go APIs is handled by version-aware scans that identify stale patterns and suggest replacements with current language idioms and upgraded tooling like golangci-lint without large refactors until you consent.

Can I run Go code modernization in a CI pipeline?

Yes, Go code modernization can run in CI pipelines using a full-scan mode with parallel sub-agents for comprehensive reviews, or provide inline suggestions during active development.

Does Go modernization require a specific version of the Go toolchain?

Go modernization supports projects targeting versions 1.21 through 1.26, requiring the Go toolchain and access to the project's go.mod file to detect the current version and suggest appropriate upgrades.

How do I prevent unwanted refactoring when upgrading Go source files?

To prevent unwanted refactoring when upgrading Go source files, the modernization workflow requires explicit consent for large refactors and records ignored suggestions in a .modernize file.