
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-codeInstalls 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:
listexplain
Before editing Go code:
-
Call the wrapper's
listsubcommand 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.goOn 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.
-
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 -
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