modern-go

Community

Upgrade Go code to modern idioms fast

Authorsmallnest
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers modernize existing Go code by replacing outdated patterns, APIs, and language constructs with version-appropriate idioms, reducing manual refactoring effort and keeping codebases aligned with current Go releases.

Core Features & Use Cases

  • Version-aware modernization: Detects the project's Go version from go.mod and only applies transformations that are compatible with that release.
  • Idiomatic refactoring: Updates common patterns such as time handling, string building, slices and maps utilities, context helpers, and newer concurrency helpers where appropriate.
  • Codebase upgrade workflows: Useful when cleaning up legacy repositories, preparing a version bump, or standardizing code after a large migration across packages or files.

Quick Start

Ask the skill to modernize the current Go project or a specific folder so it can scan the code, apply compatible upgrades, and summarize the changes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: modern-go
Download link: https://github.com/smallnest/goal-workflow/archive/main.zip#modern-go

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.