JetBrains/go-modern-guidelines
Help AI coding agents write modern Go
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
Ranks #454 of 2,845 repositories GStars tracks this week (top 16%).
The project lists 9 contributors on GitHub.
Peaked at #34 in the weekly ranking the week of Aug 30, its best in the past year.
Use Cases & Benefits
- Provides guidelines and tooling to help AI coding agents write modern, idiomatic Go code using features up to Go 1.27.
- Ensures AI-generated Go code uses the latest language features and idioms, reducing outdated patterns and manual refactoring.
- Use for integrating with AI coding agents like Junie or Claude Code to automatically generate modern Go code in development workflows.
- Use for updating AI code generation skills in multi-agent environments to maintain consistency with recent Go language standards.
- Use for developers building or customizing AI coding assistants to enforce modern Go best practices and language feature usage.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
Apache 2.0
Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.
Community files
- README: present
- Contributing guide: present
Watch-outs
- No GitHub releases; pin a commit or tag instead of a release.
General guidance from repository metadata, not legal advice. How we score
From the README
This repository contains guidelines for code agents that help them write modern Go code.
For example, an agent with these guidelines uses
max(a, b)instead of an if-else block,slices.Containsinstead of a manual loop,cmp.Or(a, b, c)instead of a chain of nil checks. It also knows about recent additions likenew(42)to get a pointer to a value anderrors.AsType[T](err)for type-safe error matching—both from Go 1.26.All coding agents tend to generate outdated Go. Two reasons:
These guidelines fix both problems by giving the agent an explicit reference.
This aligns with the Go team's direction. The
modernizeanalyzer exists to automatically update existing code to use newer idioms (see this talk from the Go team). These guidelines serve the same goal for new code: agents write modern Go from the start, so there's less to fix later.The marketplace integrations run a small CLI that is installed on first use with
go install. Because of that, the Go toolchain must be installed and available on yourPATH.The CLI is installed into a local cache (for example
~/.cache/go-modern-guidelines) and never modifies your project. It targets Go 1.25 or newer; on an older Go it still works as long as automatic toolchain switching is enabled (GOTOOLCHAIN=auto, the default), which lets Go fetch a compatible toolchain on first run.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+1,823 stars over 49 days across 15 snapshot days; best day +526 on Aug 28.
Forks
126+64
Open issues
11+1
Compared with peers in AI Agents
Fastest-growing repositories GStars tracks in this cohort for the week of Oct 11, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| morluto/rea | 378.8K | +249.0K | 75 | 6 days ago |
| vxcontrol/pentagi | 32.3K | +5.4K | 75 | 19 days ago |
| DietrichGebert/ponytail | 175.5K | +5.3K | 75 | 8 days ago |
| lexmount/moli | 20.5K | +4.5K | 75 | 3 days ago |
| hugohe3/ppt-master | 61.7K | +3.8K | 75 | 5 days ago |
| JetBrains/go-modern-guidelines | 3.9K | +0 | 75 | — |
| Category median | 61.7K | +5.3K | 75 | — |
Also by JetBrains
Other repositories from this maintainer that GStars tracks
- Kotlin53.5K stars
kotlin
The Kotlin Programming Language.
- Java20.6K stars
intellij-community
IntelliJ IDEA & IntelliJ Platform
- Kotlin4.6K stars
koog
Koog is a JVM (Java and Kotlin) framework for building predictable, fault-tolerant and enterprise-ready AI agents across all platforms – from backend services to Android and iOS, JVM, and even in-browser environments. Koog is based on our AI products expertise and provides proven solutions for complex LLM and AI problems
Discover Repositories
Search across tracked repositories by name or description