Claude Code plugin

Go Guidelines

Make your AI code agent write production-grade Go instead of tutorial-grade Go. A plugin for Opencode, Codex, Pi, Cursor and Claude Code with version-aware guidelines (Go 1.0–1.27) covering modern syntax, performance tuning, error handling, concurrency patterns, testing, and graceful shutdown.

105 stars 6 forksPlugins & marketplaces Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add mhmtszr/go-guidelines

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/mhmtszr/go-guidelines.git

From the README

Go Guidelines

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+.

Quickstart

Install Go Guidelines for your agent: Claude Code, Codex CLI, Cursor, OpenCode, Pi.

Motivation

All coding agents tend to generate outdated and suboptimal Go. Key reasons:

1. 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.

2. 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.

3. No performance awareness. Agents don't align struct fields, don't set GOMAXPROCS for containers, and spawn unbounded goroutines instead of using pools.

4. Broken operational patterns. Generated shutdown code closes the database before draining the HTTP server. Resources get leaked. Signals get ignored.

5. 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.

How it…
Read the full README on GitHub

How plugins work

  • A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
  • Add the marketplace inside Claude Code with /plugin marketplace add mhmtszr/go-guidelines, then run /plugin to pick what to install.
  • You can turn a plugin off again from /plugin without deleting anything.
Claude Code docs

Details

Language
JavaScript
License
MIT
Last updated
28 August 2026

FAQ

What is Go Guidelines?

Make your AI code agent write production-grade Go instead of tutorial-grade Go. A plugin for Opencode, Codex, Pi, Cursor and Claude Code with version-aware guidelines (Go 1.0–1.27) covering modern syntax, performance tuning, error handling, concurrency patterns, testing, and graceful shutdown. It is a plugin for Claude Code, from mhmtszr/go-guidelines on GitHub.

How do I install Go Guidelines?

Run /plugin marketplace add mhmtszr/go-guidelines inside Claude Code, then follow the setup in the README.

Is Go Guidelines popular?

mhmtszr/go-guidelines has 105 GitHub stars and 6 forks. It was last updated on 28 August 2026.

More plugins & marketplaces

Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.