๐น gophers
26 production-grade Go skills for Claude Code, Gemini CLI, and opencode.
Battle-tested patterns from the Go community โ codified as triggerable AI skills.

Quick Start โข Agent Plugins โข Skills Catalog โข How It Works โข Examples โข FAQ
๐ฏ Why gophers?
Most AI assistants write Go like a senior JavaScript engineer pretending to like semicolons. gophers plugs in 26 opinionated skills that teach Claude (and friends) to write Go the way the standard library does โ small interfaces, errors as values, no magic.
"The bigger the interface, the weaker the abstraction." โ Rob Pike
Now your AI knows that, before it writes a 12-method UserManagerService.
What you get:
- ๐ง Discoverable โ Each skill has an explicit trigger description; Claude knows when to use it.
- ๐ Progressive disclosure โ
SKILL.md is โค 200 lines; deep dives live in references/.
- ๐ช Opinionated โ Every rule cites a community source (Effective Go, Google Style Guide, Uber, Rob Pike talks).
- ๐ Multi-platform โ Same skill files run in Claude Code, Gemini CLI, and opencode.
- โ
Verifiable โ Every skill ends with a checklist your AI can self-grade against.
๐ Quick Start
Claude Code (via marketplace)
# Add the marketplace
/plugin marketplace add muratmirgun/gophers
# Install the plugin
/plugin install gophers@gophers
Claude Code (manual)
cd ~/.claude/plugins
git clone https://github.com/muratmirgun/gophers
Then restart Claude Code. Skills auto-load from skills/.
Gemini CLI
gemini extensions install https://github.com/muratmirgun/gophers
opencode
opencode plugin add github.com/muratmirgun/gophers
Manual / any other agent
git clone https://github.com/muratmirgun/gophers ~/.config/ai/gophers
# Point your agent's CLAUDE.md / AGENTS.md / GEMINI.md at the skills/ directory.
๐ Portable Agent Plugins
gophers is also packaged as an Agent Plugins 1.0.0 plugin. The root plugin.json is the portable manifest. Compatible clients discover each immediate skill directory under root skills/ automatically.
Agent Plugins defines package contents and discovery. Each client controls installation, distribution, enablement, updates, marketplace publication, and user interface. The standard does not define a universal installation command. See the current compatible clients for client support.
| Package part | Portability |
|---|
plugin.json | Portable Agent Plugins manifest |
skills/ | Portable Agent Skills and canonical content |
.claude-plugin/ | Claude Code manifest and generated invocation compatibility |
gemini-extension.json | Gemini CLI integration |
opencode.json | OpenCode integration |
agents/ | Client-specific prompts; Agent Plugins 1.0.0 has no portable mapping |
The Claude Code compatibility tree is generated from root skills. It retains user-invocable controls and existing OpenClaw metadata without adding non-portable fields to canonical skills. The package needs no mcp.json because its capabilities are instructions and reference files, not runtime MCP tools.
Maintainers can validate the complete package with one command:
scripts/validate.sh
This command validates the live Agent Plugins schema, all 26 skills through the pinned official skills-ref library, local links, client JSON files, generated files, and existing repository rules.
๐ฆ Skills Catalog
26 skills, grouped by intent. In Claude Code, one is user-invokable (/go-code-review); the generated client layer hides the rest from the slash menu while keeping automatic activation.
๐งฑ Fundamentals โ language mechanics, taught well
| Skill | Emoji | Triggers whenโฆ |
|---|
| go-naming | ๐ท๏ธ | naming any identifier โ packages, types, methods, errors |
| go-declarations | ๐ | declaring vars, consts, structs, maps, iota enums |
| go-control-flow | ๐ | writing conditionals, loops, switches, type switches |
| go-functions | ฦ | organising functions in a file, designing signatures |
| go-data-structures | ๐ | choosing/operating on slices, maps, arrays, strings |
| go-packages | ๐ฆ | creating packages, organising imports, structuring projects |
| go-error-handling | โ ๏ธ | writing, wrapping, inspecting, or logging errors |
| go-interfaces | ๐ | defining/implementing interfaces, embedding, receivers |
| go-generics | ๐งฌ | deciding whether to introduce generics, writing constraints |
| go-functional-options | โ๏ธ | designing constructors with 3+ optional parameters |
| go-defensive | ๐ก๏ธ | hardening API boundaries โ copy, defer, time, panic discipline |
| go-code-style | โจ | writing/reviewing for clarity, formatting, design priority |
โ๏ธ Concurrency โ goroutines without surprises
| Skill | Emoji | Triggers whenโฆ |
|---|
| go-context | ๐ฆ | designing context.Context flow, deadlines, request values |
| go-concurrency | ๐ฆ | writing goroutines, channels, select, mutexes, errgroup |
๐ Web & APIs โ framework-agnostic delivery layers
| Skill | Emoji | Triggers whenโฆ |
|---|
| go-clean-architecture | ๐๏ธ | scaffolding a service into Domain/Usecase/Repository/Delivery |
| go-grpc | ๐ก | implementing or reviewing gRPC servers/clients |
| go-graphql | ๐ | building a GraphQL API (gqlgen or graph-gophers) |
| go-swagger | ๐ | adding OpenAPI/Swagger annotations with swaggo/swag |
๐๏ธ Data & Observability โ production signal
| Skill | Emoji | Triggers whenโฆ |
|---|
| go-database | ๐๏ธ | writing SQL access code โ sqlx/sqlc/pgx/GORM trade-offs |
| go-logging | ๐ | choosing a logger, configuring slog, request-scoped fields |
| go-observability | ๐ | instrumenting metrics, traces, exemplars, correlation |
| go-performance | โก | profiling, benchmarking, optimising โ pprof decision tree |
๐งช Quality & Process โ ship safely
| Skill | Emoji | Triggers whenโฆ |
|---|
| go-testing | ๐งช | writing tests โ table-driven, subtests, fuzz, synctest, goleak |
| go-linting | ๐งน | setting up golangci-lint, suppressing findings, CI gates |
| go-documentation | ๐ | writing godoc comments, Example tests, README/CHANGELOG |
| go-code-review | ๐ | user-invokable โ /go-code-review walks a diff topic by topic |
๐ฌ How It Works
Each skill is a single markdown file (SKILL.md) with structured frontmatter and a strict body shape:
---
name: go-interfaces
description: Use when defining or implementing Go interfaces... # โ trigger
license: MIT
metadata:
author: muratmirgun
version: "0.1.0"
allowed-tools: Read Edit Write Glob Grep Bash(go:*)
---
# Title
1-2 sentence philosophy.
## Core Rules โ 5-7 numbered, non-negotiable invariants
## Decision Table โ when to apply / when not to
## Body sections โ code examples, contrasts (Good / Bad)
## Anti-Patterns โ table of common mistakes + fixes
## Verification Checklistโ AI self-grades before claiming done
## References โ links to deeper references/*.md
When Claude (or Gemini / opencode) reads code that matches the trigger, the skill is injected into context โ opinionated rules + code examples + a verification checklist. Your AI assistant goes from "knows Go" to "writes Go like a stdlib author".
๐ก Examples
Before gophers
type UserManagerInterface interface {
GetUser(id string) (*User, error)
SetUser(u *User) error
DeleteUser(id string) error
ListUsers() ([]*User, error)
CountUsers() (int, error)
}
func GetUser(id string) (*User, error) {
user, err := db.QueryUser(id)
if err != nil {
return nil, fmt.Errorf("db error: " + err.Error())
}
return user, nil
}
After gophers (go-interfaces + go-error-handling + go-naming fire)
// Reader fetches a User by ID. Returns ErrNotFound when absent.
type Reader interface {
User(ctx context.Context, id string) (*User, error)
}
func (s *Store) User(ctx context.Context, id string) (*User, error) {
u, err := s.db.User(ctx, id)
if err != nil {
return nil, fmt.Errorf("store: user %s: %w", id, err)
}
return u, nil
}
What changed:
- 5-method
UserManagerInterface โ 1-method Reader (small interfaces compose)
GetUser โ User (Go style: no Get prefix)
"db error: " + err.Error() โ %w (preserves errors.Is / errors.As)
context.Context first param (cancellation propagates)
๐จ The gophers Philosophy
| Tenet | What it means in practice |
|---|
| Errors are values | No panic-as-exception, no swallowed errors, wrap with %w |
| Accept interfaces, return concrete types | Consumers state needs; producers expose what they have |
| The framework is a detail | Gin/Echo/Fiber lives in internal/delivery/, nothing else |
| The database is a detail | SQL lives in internal/repository/, nothing else |
| Tests fail usefully | Function(input) = got, want want โ always |
| Documentation is part of the API | godoc renders in IDE tooltips; signature noise is wasted ink |
| Measure before optimising | pprof first, intuition last |
| Don't design with interfaces โ discover them | Wait for the second implementation |
๐ ๏ธ Project Structure
gophers/
โโโ plugin.json # Portable Agent Plugins 1.0.0 manifest
โโโ .claude-plugin/
โ โโโ plugin.json # Claude Code plugin manifest
โ โโโ marketplace.json # Claude Code marketplace listing
โ โโโ skill-overrides.json # Client-only invocation and OpenClaw values
โ โโโ skills/ # Generated Claude/OpenClaw compatibility files
โโโ .github/workflows/
โ โโโ validate.yml # Complete package validation
โโโ gemini-extension.json # Gemini CLI extension manifest
โโโ opencode.json # opencode plugin manifest
โโโ skills/ # 26 canonical portable skills
โ โโโ go-<name>/
โ โโโ SKILL.md # โค 200 lines, opinionated rules
โ โโโ references/ # Deep dives, examples, cheat-sheets
โโโ agents/ # Subagent prompts (extensible)
โโโ scripts/ # Generation, tests, and validation
โโโ CLAUDE.md # Project context for AI assistants
โโโ README.md # You are here
โ FAQ