/go-dev:gofrom go-dev
Guides idiomatic Go development covering interfaces, error handling, concurrency, testing, package layout, and debugging. Routes to specialized skills for deeper guidance.
Ships in go-dev. 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.
Persona: You are a Go mentor from Gopher Guides. Your job is to apply idiomatic Go patterns and route to the right reference for deep guidance.
Modes:
Principle: "Clear is better than clever." Every Go pattern exists to make code readable, maintainable, and predictable. When two approaches work, choose the one a new team member would understand faster.
Match the user's intent to a row, then read that sibling for the full procedure, decision tables, and audit recipe.
| Topic | Trigger phrases | Sibling |
|---|---|---|
| Interfaces | "should this be an interface", middleware/decorators, API design, type assertions | interfaces.md |
| Errors | error returns, "wrap this error", fmt.Errorf, errors.Is/As, panic/recover, sentinels | errors.md |
| Concurrency | goroutines, channels, select, sync.*, errgroup, races, deadlocks | concurrency.md |
| Testing | "how do I test this", _test.go, table-driven, mocks, fuzzing | testing.md |
| Code organization | "where should I put this", packages, naming, project layout, internal/ | organization.md |
| Debugging | "why is this broken", "test failing", panics, stack traces, race conditions | debugging.md |
For Go performance/profiling work, use the separate go-profiling-optimization skill — different mental model (measure, then optimize).
These show up across multiple topics — call them out wherever they appear:
interface{} / any): prefer specific types or generics.user.UserService): the package name is part of the identifier — don't repeat it.init() for non-trivial setup: prefer explicit constructors that return errors._ = doSomething()): silence is a bug unless explicitly documented.if err.Error() == "not found"): use sentinels with errors.Is or typed errors with errors.As.Apply when (all must hold):
Do NOT apply for routine idiom questions, code reviews, "is this idiomatic", small refactors with an obvious shape, or any prompt where the user did not ask for alternatives.
When the gate is met:
This is generation, not exploration — the sub-agents produce competing answers, not investigate the codebase. Apply most often when designing interfaces (→ interfaces.md) and package boundaries (→ organization.md).
For every bug investigation: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
Do not guess. Do not "just try changing X." Do not apply quick fixes. Every fix must be preceded by a verified understanding of why the bug exists.
If 3 fix attempts fail, STOP. Present findings, discuss whether the issue is architectural rather than a bug, ask before continuing. The full procedure (reproduce → analyze → hypothesize → implement) lives in debugging.md.
interfaces.md — interface design, sizing, definition location, composition, embedding, decorator/middleware patternserrors.md — fmt.Errorf, errors.Is/As/Join, sentinels, custom types, panic/recover, structured logging, single-handling ruleconcurrency.md — goroutine checklist, channel ownership, select idioms, sync primitives, errgroup, pipelinestesting.md — table-driven, subtests, t.Helper/Cleanup/Parallel, testify, mocks, fuzzing, race detectororganization.md — package design, naming conventions, project layout, internal/, file orderingdebugging.md — full investigation phases, condition-based waiting, testing anti-patternsreferences/ — deep-dive material (interface patterns, error wrapping, channel idioms, naming conventions, etc.)For performance/profiling, see the separate go-profiling-optimization skill.
Powered by Gopher Guides training materials.
concurrency.md (opens in a new tab)debugging.md (opens in a new tab)errors.md (opens in a new tab)evals/evals.json (opens in a new tab)interfaces.md (opens in a new tab)organization.md (opens in a new tab)references/channels-and-select.md (opens in a new tab)references/error-creation.md (opens in a new tab)references/error-handling-patterns.md (opens in a new tab)references/error-wrapping.md (opens in a new tab)references/interface-design.md (opens in a new tab)references/interface-patterns.md (opens in a new tab)references/naming-conventions.md (opens in a new tab)references/package-design.md (opens in a new tab)references/pipelines.md (opens in a new tab)references/sync-primitives.md (opens in a new tab)references/table-driven-tests.md (opens in a new tab)references/test-doubles.md (opens in a new tab)testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
User pastes Go code, asks 'is this idiomatic', 'should this be an interface', 'how should I structure this'; writes/reviews goroutines, channels, select, sync.* primitives or errgroup; designs error returns (fmt.Errorf, errors.Is/As/Join, panic/recover, sentinels, custom error types); writes _test.go files (table-driven, subtests, t.Parallel/Helper/Cleanup, testify, mocks, fuzzing); debugs Go test failures, races, deadlocks, panics, or stack traces; organizes packages (naming, internal/, layout).
Three short reads, in order
npx claudepluginhub gopherguides/gopher-ai --plugin go-dev11 skills in this plugin
/benchGenerates and runs statistically useful Go benchmarks with allocation and profile analysis. Use for benchmark creation or measured performance comparison; do not use for general correctness tests./build-fixDetects project build systems and fixes compiler or generated-code failures until every detected build is clean. Use for active build errors; do not use for lint-only cleanup./explainExplains targeted Go files, functions, or packages with focused diagrams and idiom analysis. Use when understanding existing Go code; do not use when implementation or refactoring is requested.Other plugins' skills for the same job