Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mhmtszrv1.2.0MITIn 1 marketplace
Makes Claude write Go that follows current idioms for the detected go.mod version, covering concurrency safety, error handling, performance and tests. After changes it runs go vet or golangci-lint, go test -race, and go fix on Go 1.26+.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
golang, go-best-practices, code-review, concurrency, error-handling, go-testing, linting, guidelines ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Make your AI code agent write production-grade Go instead of tutorial-grade Go.
A composable skill plugin for coding agents — covering modern syntax, generics, performance, concurrency safety, error handling, testing, and post-change verification including go fix on Go 1.26+.
Install Go Guidelines for your agent: Claude Code, Codex CLI, Cursor, OpenCode, Pi.
All coding agents tend to generate outdated and suboptimal Go. Key reasons:
Training data lag. Models don't know about features added after their training cutoff. They can't use wg.Go() (1.25), new(val) (1.26), or generic methods (1.27) if they've never seen them.
Frequency bias. Even for features the model knows, it picks older patterns. There's more for i := 0; i < n; i++ in the training data than for i := range n, so that's what comes out.
No performance awareness. Agents don't align struct fields, don't set GOMAXPROCS for containers, and spawn unbounded goroutines instead of using pools.
Broken operational patterns. Generated shutdown code closes the database before draining the HTTP server. Resources get leaked. Signals get ignored.
No post-change verification. Agents never run golangci-lint, go fix (Go 1.26+), or tests with the race detector after making changes.
These guidelines fix all of the above by giving the agent an explicit, version-aware reference. The agent detects your Go version from go.mod and applies only the features and patterns available up to that version.
This aligns with the Go team's direction. The rewritten go fix command (Go 1.26+) modernizes existing code with analyzers for newer idioms. These guidelines serve the same goal for new code — and on Go 1.26+ they also require agents to run go fix after changes.
go.mod.go vet), go test -race, and on Go 1.26+ also go fix.Installation differs by harness. If you use more than one, install Go Guidelines separately for each one.
/plugin marketplace add mhmtszr/go-guidelines
/plugin install go-guidelines@go-guidelines-marketplace
codex plugin marketplace add mhmtszr/go-guidelines
/plugins
Then select go-guidelines and install.
Install locally:
git clone https://github.com/mhmtszr/go-guidelines.git ~/.cursor/plugins/local/go-guidelines
Then restart Cursor (or Developer: Reload Window). Update with git -C ~/.cursor/plugins/local/go-guidelines pull.
OpenCode uses its own plugin install; install Go Guidelines separately even if you already use it in another harness.
Fetch and follow instructions from https://raw.githubusercontent.com/mhmtszr/go-guidelines/refs/heads/master/.opencode/INSTALL.md
opencode.json:{
"plugin": ["go-guidelines@git+https://github.com/mhmtszr/go-guidelines.git"]
}
Install Go Guidelines as a Pi package from this repository:
pi install git:github.com/mhmtszr/go-guidelines
For local development, run Pi with this checkout loaded as a temporary package:
pi -e /path/to/go-guidelines
The Pi package exposes the bundled skills/ directory through Pi's native skill system. No compatibility skill tool or startup prompt injection is required.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub mhmtszr/go-guidelines --plugin go-guidelines