A model-driven harness that gives AI coding agents a model-first workflow: model the business, evaluate and repair it, generate a typed application, and verify the result.
JetBrains/go-modern-guidelines
Guidelines that teach AI coding agents to write modern Go using current language features and standard library additions from Go 1.0 through 1.27.
- Stars
- 3,893
- Forks
- 125
- Open issues
- 11
- Last commit
- 10 days ago
What is it?
Modern Go Guidelines is a set of instructions for AI coding agents that steers them toward current Go idioms. Coding agents often generate older patterns, such as manual loops instead of slices.Contains or if-else blocks instead of max, either because their training data predates newer features or because older patterns are more common in code they have seen. The guidelines give the agent an explicit reference of language features and standard library additions.
The agent reads the Go version from go.mod and uses only features available up to that version. The guidelines cover the main features from Go 1.0 through Go 1.27, including everything targeted by the modernize analyzer, and a FEATURES.md file lists them with examples. The guidelines are packaged as plugins or skills for Junie, Claude Code, Codex, Cursor, and other agents that support skills.sh.
Installation uses a small CLI that is built with go install on first use and stored in a local cache, so the project itself is not modified. The CLI targets Go 1.25 or newer and relies on automatic toolchain switching for older installations.
Key features
- 01Detects the project's Go version from go.mod and limits suggestions to available features.
- 02Covers language and standard library features from Go 1.0 through Go 1.27.
- 03Prefers idioms such as max, slices.Contains, cmp.Or, and range over integers.
- 04Includes the modernize analyzer's targets and a FEATURES.md reference with examples.
- 05Installs for Junie, Claude Code, Codex, Cursor, and other agents via skills.sh.
Use cases
- Generating new Go code with an AI agent that should follow current idioms.
- Reducing older patterns in agent-written pull requests before human review.
- Onboarding a team's coding agents to recent Go language and library features.
Quick start
- 1
Install the Go toolchain (required by the CLI)
- 2
In Claude Code, add this repository as a marketplace
/plugin marketplace add JetBrains/go-modern-guidelines - 3
In Claude Code, install the plugin
/plugin install modern-go-guidelines@goland-claude-marketplace - 4
For other agents, install the skill via skills.sh
npx skills add JetBrains/go-modern-guidelines
Things to know
- Requires the Go toolchain installed and on PATH for the CLI to run.
- The CLI targets Go 1.25 or newer; older Go versions depend on automatic toolchain switching.
In collections
Topics
FAQ
- What is go-modern-guidelines?
- Guidelines that teach AI coding agents to write modern Go using current language features and standard library additions from Go 1.0 through 1.27. Modern Go Guidelines is a set of instructions for AI coding agents that steers them toward current Go idioms. Coding agents often generate older patterns, such as manual loops instead of slices.Contains or if-else blocks instead of max, either because their training data predates newer features or because older patterns are more common in code they have seen. The guidelines give the agent an explicit reference of language features and standard library additions.
- Is go-modern-guidelines free to use? What license does it have?
- go-modern-guidelines is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is go-modern-guidelines still maintained?
- Actively maintained. The last commit to go-modern-guidelines was on Oct 15, 2026.
- What can I use go-modern-guidelines for?
- Generating new Go code with an AI agent that should follow current idioms. Reducing older patterns in agent-written pull requests before human review. Onboarding a team's coding agents to recent Go language and library features.
- How do I install go-modern-guidelines?
- Install the Go toolchain (required by the CLI) In Claude Code, add this repository as a marketplace: /plugin marketplace add JetBrains/go-modern-guidelines In Claude Code, install the plugin: /plugin install modern-go-guidelines@goland-claude-marketplace For other agents, install the skill via skills.sh: npx skills add JetBrains/go-modern-guidelines
- Where can I get go-modern-guidelines?
- The source code and installation instructions are on GitHub: https://github.com/JetBrains/go-modern-guidelines
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An agent framework for OpenCode that adds plan-first, approval-gated AI coding workflows using your team's own coding patterns.
Open-source workspace where AI coding agents are assigned issues like teammates, reporting progress and handing work back for review.
Kanban board for planning work and running coding agents like Claude Code and Codex in isolated workspaces, with diff review and PR creation.
Open-source workspace for running, reviewing and shipping AI coding agent work on desktop, web, VS Code and mobile, built on OpenCode.
A workspace where AI coding agents from different machines and tools share threads, files, and a browser in one place.