JetBrains' GoLand team released Modern Go Guidelines, an open-source set of skills that helps AI coding agents write up-to-date Go code matching the Go version declared in a project's go.mod file. The tool covers language features and standard library additions from Go 1.0 through Go 1.27, using a 'list' subcommand for short guidelines and an 'explain' subcommand for detailed before-and-after examples. It installs as a plugin for agents like Claude and Codex via a marketplace or local repository, requires the Go toolchain, and works alongside go fix to keep generated code current without exceeding the project's supported Go version.

7m read timeFrom blog.jetbrains.com
Post cover image
Table of contents
Help AI Coding Agents Write Up-To-Date Code With Modern Golang SkillsTL;DRWhy AI coding agents need modern Go skillsModern code for the correct Go versionStart with modern Go

Questions this post answers

How can I make AI coding agents like Claude write modern Go code instead of outdated patterns?

Install the open-source Modern Go Guidelines plugin from JetBrains, which gives Claude, Codex, and similar agents a CLI tool with 'list' and 'explain' subcommands. The tool reads the go.mod version directive to serve only guidelines compatible with the project's Go version, covering features from Go 1.0 through Go 1.27, such as sync.WaitGroup.Go, errors.AsType, and strings.CutLast. daily.dev surfaces tooling updates like this for developers keeping AI-generated Go code current.

What new standard library features were added in Go 1.26 and Go 1.27?

Go 1.26 introduced errors.AsType for type-safe error matching and new(value) for creating a pointer to a value. Go 1.27 added strings.CutLast and bytes.CutLast to replace LastIndex plus manual slicing, and enabled generic methods on types instead of only package-level generic helper functions. Developers tracking new Go release features can follow updates like these on daily.dev.

4.6K Impressions