go-modern-guidelines
Help AI coding agents write modern Go
Modern Go Guidelines is an official JetBrains plugin for Claude Code, Codex, Cursor, Junie, and other AI coding agents that helps them generate contemporary Go code instead of outdated patterns. It automatically detects a project's Go version from go.mod and guides agents to use modern idioms and standard library features available in that version, covering everything from Go 1.0 through 1.27. The plugin addresses two common problems: training data lag (models unaware of recent features) and frequency bias (models favoring older patterns seen more often in training data), ensuring agents write code that follows current Go best practices from the start.
Key Features
Use Cases
- 01Ensuring AI-generated Go code uses current language features instead of deprecated patterns
- 02Automatically upgrading code suggestions to use modern standard library functions like cmp.Or
- 03Teaching agents to write Go 1.26+ code with type-safe error handling using errors.AsType[T]
- 04Generating range-based loops (for i := range n) instead of traditional for loops
- 05Producing Go code that passes modernize analyzer checks without manual refactoring
- 06Maintaining consistency with Go team best practices across AI-assisted development workflows
Related Plugins
View moreandrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
claude-mem
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
rtk
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
go-modern-guidelines — FAQ
What is the go-modern-guidelines Claude Code plugin?+
It's an official JetBrains plugin that provides guidelines to AI coding agents so they generate modern Go code using current language features and standard library functions instead of outdated patterns. The plugin works with Claude Code, Codex, Cursor, Junie, and other agents via skills.sh.
How do I install the modern Go guidelines plugin in Claude Code?+
Inside a Claude Code session, run '/plugin marketplace add JetBrains/go-modern-guidelines' to add the marketplace, then '/plugin install modern-go-guidelines@goland-claude-marketplace' to install. Claude Code will automatically invoke the skill when working on Go tasks.
Which AI coding assistants support this plugin?+
The plugin works with Claude Code, Codex, Cursor, Junie, and any agent compatible with skills.sh such as OpenCode. Each platform has slightly different installation commands but the underlying functionality is the same.
What are the prerequisites for using go-modern-guidelines?+
You need the Go toolchain installed and available on your PATH. The plugin targets Go 1.25 or newer, but works with older versions if automatic toolchain switching is enabled (GOTOOLCHAIN=auto, which is the default).
Is the go-modern-guidelines plugin free?+
Yes, this is an open-source official JetBrains project available on GitHub. There are no license fees or API keys required.
How does the plugin know which Go features to use?+
It automatically detects your project's Go version from the go.mod file and only suggests language features and standard library additions available in that version or earlier. This ensures generated code is always compatible with your project's requirements.
How do I install go-modern-guidelines?+
Open the source repository on GitHub and follow its README. go-modern-guidelines is a plugin — MCP Agents Market links you directly to the official repo.
Is go-modern-guidelines free?+
go-modern-guidelines is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.