/go-standards:go-standardsfrom go-standards
Personal Go engineering defaults grounded in the standard library for implementing, reviewing, refactoring, or testing Go code. Guides API design, testing, documentation, and compatibility.
Ships in go-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill to make Go code boring, explicit, well-tested, and compatible. Prefer the Go standard library's ordinary public-package style over clever runtime/compiler/internal tricks.
This skill holds the user's personal Go defaults. It fills gaps; it does not override the project.
When guidance conflicts, follow the first source that addresses it:
AGENTS.md or CLAUDE.md, CONTRIBUTING.md, and style or architecture docs..golangci.yml, pre-commit hooks, and the checks CI runs.go.mod, and the target package and its tests.testing package unless the project uses another test library.gofmt, or the project's configured formatter, on changed Go files, then run the narrowest meaningful go test command. Broaden to go test ./... when shared behavior or package boundaries changed.internal/ for cross-package implementation sharing that must not become public API.errors.Is or errors.As; avoid exposing sentinels unless callers need a stable contract.log/slog for logging and prefer any over interface{} unless local compatibility requires otherwise.Load only the reference needed for the task:
references/stdlib-patterns.md: Load for API design, docs, errors, testing, concurrency, performance, compatibility, platform-specific code, or review checklists.references/stdlib-examples.md: Load when concrete examples would help apply references/stdlib-patterns.md without relying on access to the Go source tree.references/repo-baseline.md: Load when creating modules, changing package layout, adding logging, or choosing unit vs acceptance test structure.references/cobra-viper.md: Load when implementing or reviewing Cobra commands, Viper configuration, or Go CLI layout.For Go reviews, lead with correctness, compatibility, race/deadlock risk, API ambiguity, error matching regressions, missing tests, and portability. Avoid style-only findings unless they materially affect maintainability or violate the project's conventions. Do not flag code for departing from this skill where the project follows its own convention.
Do not copy patterns from runtime, syscall, unsafe, compiler packages, generated tables, assembly, or deeply optimized algorithms unless the target package has the same constraints. Convert those observations into ordinary principles: isolate unsafe code, document invariants, test edge cases, and measure performance before optimizing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub leefowlercu/agent-kit --plugin go-standards