go-modern-guidelines skill
Modern Go Guidelines
Guideline skill that teaches an agent to write modern Go: new language and stdlib idioms scoped to the project version
- 3,970 ★ on the repository
- Last commit
- Apache-2.0
Minimal access
Why this level
- The skill is reference guidance and does not change code
- The helper CLI only reads the project version and runs in a local cache
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add skills/modern-go-guidelinesDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewMinimal accessThe tool runs nothing and makes no network calls.
- The skill is reference guidance and does not change code
- The helper CLI only reads the project version and runs in a local cache
This is third-party code. Review the repository files before installing.
What it does
The skill gives the agent a reference of modern Go idioms and hooks in when code is written or edited. A small CLI detects the Go version from go.mod, go.work or the local toolchain and returns the idioms available for that version: max and min instead of branches, slices.Contains instead of a manual loop, cmp.Or instead of a chain of nil checks, range over an integer and other additions. The guidelines cover features from Go 1.0 through recent releases, including everything the modernize analyzer automates. The CLI installs into a local cache on first run and does not change the project.
Who it is for. For Go developers who want the agent to write code with current language idioms.
Good fit when
- The agent writes or edits Go and produces outdated constructs
- You want code in idioms available for the go.mod version
- You want one reference for new Go features
Not a fit when
- The project is not in Go
- You need a linter or auto-fix rather than an idiom reference
Example request
Before editing this Go file, check the idioms against the guidelines and use modern constructsLimitations
The skill gives guidance; it does not rewrite code automatically. It needs the Go toolchain in PATH: the helper CLI installs via go install on first run into a local cache. Some idioms need recent Go versions; on an older toolchain automatic switching with GOTOOLCHAIN auto helps.
How to disable. Uninstall the plugin via /plugin in Claude Code and optionally clear the guidelines CLI local cache.
FAQ
Does the skill rewrite code itself?
No, it returns the idioms available for the project version, and the agent applies them while writing and editing.
Where does the Go version come from?
The CLI resolves it from go.mod, go.work, the local toolchain or an explicit override.
How is go-modern-guidelines different from general Go advice?
The skill gives the agent a reference of modern Go idioms, and a small CLI detects the Go version from go.mod, go.work or the local toolchain and returns only what that version supports. It is a JetBrains skill.
How do I install go-modern-guidelines?
In Claude Code: /plugin marketplace add JetBrains/go-modern-guidelines, then /plugin install. The skill also works in Cursor and Codex. It consists of instructions and a small CLI, so the risk is low.
Discussion
No questions or reviews yet.
Related
SkillsA skill plugin makes an agent write modern Go: version from go.mod, generics, concurrency safety and a go fix pass.
Thirty-five Go skills that an agent loads on demand: errors, goroutines, testing, architecture and code review.
Seven Go skills from the creator of Cobra and Hugo: idiomatic style, CLI design, releases, Wails, file operations and afero tests
Agent rules from programming books
AI agents Rules / Skills from Programming Books
Skills and AGENTS.md rules distilled from classic books: Clean Code, Refactoring, DDD, Clean Architecture, DDIA and more
A library of 30-plus instruction skills for coding agents: planning, building, testing, hallucination guards and shipping
A skill that turns a bloated AGENTS.md or CLAUDE.md into a short router plus focused reference files under docs.
README in short
The README describes official JetBrains guidelines that help agents write modern Go. A small CLI detects the project Go version and returns fitting idioms, covering features from Go 1.0 through recent releases. The skill is available for Junie, Claude Code, Codex and Cursor, and for other agents via skills.sh. In Claude Code it installs through /plugin marketplace add and /plugin install and triggers automatically or by command. The CLI installs into a local cache and does not change the project. Apache 2.0 licensed.
README badge
Original SKILL.md
--- name: use-modern-go description: Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes. --- # 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`