jetbrains avatar

Use Modern Go

Automatically detects your project's Go version from go.mod and helps Claude write idiomatic code using the latest language features available to you. Instead of Claude defaulting to ancient Go patterns, this skill guides it to use modern built-ins like slices.Contains, cmp.Or, and the new iterator functions when your version supports them. It includes a comprehensive reference from Go 1.0 through 1.26, covering everything from time.Since basics to the new new(value) syntax and sync.WaitGroup.Go. Honestly most useful when refactoring or code review, where you want Claude to spot outdated patterns and suggest the modern equivalent without you having to remember which Go version introduced what feature.

skills.sh installs
2.9K
GitHub stars
4K
last updated
Aug 21, 2026

Install

$ npx -y skills add jetbrains/go-modern-guidelines --skill use-modern-go --agent claude-code

Installs into .claude/skills of the current project.

Files

Modern Go Guidelines CLI

Always write modern, idiomatic Go code. Use the Modern Go Guidelines CLI as the source of truth for modern Go idioms that may be newer than your knowledge cutoff.

Command:

  • Linux or macOS: sh "<skill-dir>/scripts/run-tool.sh"
  • Windows PowerShell: & '<skill-dir>\scripts\run-tool.ps1'

First run and approvals:

On first use, the wrapper installs the Modern Go Guidelines CLI in a local cache directory.

Subcommands:

  • list
  • explain

Before editing Go code:

  1. Call the wrapper's list subcommand for the relevant Go file.

    Prefer passing the file you are about to edit:

    sh "<skill-dir>/scripts/run-tool.sh" list --file-path path/to/file.go
    

    On Windows, use the PowerShell wrapper with the same arguments.

    The CLI resolves the applicable Go version from go.mod, go.work, the local Go toolchain, or an explicit override.

  2. If the target Go version is already known, you may pass it directly:

    sh "<skill-dir>/scripts/run-tool.sh" list --go-version 1.24
    
  3. Read the complete list output before deciding which guidelines apply.

Sponsors

Details

Repository
github.com/jetbrains/go-modern-guidelines
Categories
Release Management, Go
First seen
Jun 3, 2026
1nexu-io avatarstitch-loopnexu-io/open-designIterative design-to-code feedback loop. Critique → adjust → ship cycle for tightening visual fidelity between brief and built UI.2.8Kskills.sh installs
2deanpeters avatarfinance-based-pricing-advisordeanpeters/product-manager-skillsEvaluate pricing changes using ARPU, conversion, churn risk, NRR, and payback. Use when deciding whether a pricing move should ship.2.8Kskills.sh installs
3ar9av avatargraph-colorizear9av/obsidian-wikiColor-code the Obsidian graph view by rewriting `.obsidian/graph.json` colorGroups. Use this skill when the user says "color my graph", "color code obsidian", "2.8Kskills.sh installs
4copilotkit avatarcopilotkit-debugcopilotkit/copilotkitUse when diagnosing CopilotKit issues -- runtime connectivity failures, agent not responding, streaming errors, tool execution problems, transcription failures,2.8Kskills.sh installs
5deanpeters avataruser-story-mappingdeanpeters/product-manager-skillsCreate a user story map that lays out activities, steps, tasks, and release slices. Use when planning a workflow, backlog, or MVP around the user journey.2.8Kskills.sh installs
6copilotkit avatarreact-corecopilotkit/copilotkit@copilotkit/react-core — mount the CopilotKit provider (from @copilotkit/react-core/v2) in a Next.js App Router / React Router v7 / TanStack Start / SPA app, dr2.8Kskills.sh installs