</>MCP Agents Market
Plugin

go-modern-guidelines

by JetBrains3.1kGoUpdated 2026-08-31

Help AI coding agents write modern Go

Claude CodeCodexCursorJunie

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

Automatic Go version detection from go.mod files to match available language features
Coverage of modern Go idioms from Go 1.0 through 1.27, including recent additions like errors.AsType[T] and new(42)
Guidance aligned with Go team's modernize analyzer for automatic code updates
Cross-platform support for Claude Code, Codex, Cursor, Junie, and skills.sh-compatible agents
Automatic installation of CLI tooling via go install with local caching
Auto-update capabilities for supported marketplaces to stay current with Go releases
Prefers modern patterns like slices.Contains over manual loops and max(a, b) over if-else blocks
Development mode for testing local changes across all supported agent platforms

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 more

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.

Related searches