Skip to content
jetbrains avatar

Use Modern Go

Version-aware Go style guidance from a CLI that applies modern idioms to the project's Go version.

CCM score
68 of 100
skills.sh installs
3.2K
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers modern Go idioms selected by the project's Go version, resolved from go.mod, go.work, or the local toolchain
  • Provides list to show applicable guidelines newest first and explain to fetch details for specific guideline IDs
  • Requires reading the complete list output and avoids truncating it, so older supported guidelines still apply
  • Designed for agents writing, modifying, or refactoring Go code that must follow current version-specific style

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Details

Repository
github.com/jetbrains/go-modern-guidelines
Categories
Go, Code Review & Quality
First seen
Jun 3, 2026

Similar to Use Modern Go

More Go