/builder:golang-profrom builder
Write, edit, update, or review Go code to a consistent professional standard: gofumpt-formatted, go vet clean, golangci-lint clean under a curated config. Use whenever creating, editing, updating, or linting .go files.
Ships in builder. 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; scripts run unread.
Produce Go that is correct, readable, and idiomatic: gofumpt-formatted,
go vet clean, golangci-lint clean under assets/.golangci.yml, following
Effective Go and the Google Go Style Guide. Guiding philosophy is "least
mechanism": the core language first, then the standard library, then a
dependency — and only when the simpler option genuinely cannot do the job.
go.mod): install the shared config with scripts/init-config
(never overwrites without --force). Full standard: curated
golangci-lint, doc comments on all exported identifiers, table-driven
tests. Keep the go directive current; it governs what modernize
may suggest.package main, run with go run): scaffold
with scripts/new-script, which also writes a script-profile
.golangci.yml next to it (same curated base; err113/ireturn/
unparam/dupl relaxed, govet on its default analyzers) unless a
golangci-lint config is already discoverable in that directory or its
parents, or --no-config is given. Plain scripts/check then enforces
the standard with no flags; --script remains for ad-hoc checks that
skip golangci-lint entirely.%w only to expose an error for
programmatic inspection, check with errors.Is/errors.As, sentinel
errors as package-level ErrXxx vars, never return nil, nil; small
interfaces (1–3 methods) declared at the consumer side, accept interfaces
and return concrete types; no Get prefix on getters; MixedCaps with
uniform initialisms (ID, URL, db, url); short consistent
receivers (r, s), never this/self; guard clauses, no else
after return; ctx context.Context first parameter, never stored in
structs; no naked shared state between goroutines — share memory by
communicating. Follow references/naming.md, references/design.md,
and references/comments.md.scripts/check (gofumpt gate, go vet, golangci-lint run). Fix every finding. A //nolint is allowed only for a specific
linter with a real reason (//nolint:thelper // test helper, no *testing.T);
blanket //nolint is banned (nolintlint enforces this).scripts/fmt (gofumpt -w, plus goimports -w when
available). Never hand-format around its output.go vet runs inside scripts/check; the compiler is the
typechecker — go build ./... must pass before anything else matters.go test ./...; table-driven tests, black-box _test
packages for new packages, t.Helper() as the first line of helpers.
(go test already runs a subset of vet checks — a failing vet there is
still a failure.)When asked to review (not change) code: run scripts/check on it, walk the
Output Contract as a checklist against the untouched files, and report
findings ordered by severity (correctness first, then API design, then
style), each with a file:line reference and the concrete fix. Do not edit
the files. If the code is vendored third-party or generated, say so and
don't apply the standard to it.
//nolint.go test ./... results.gofumpt -l — the format gate; a strict superset of gofmt.
go install mvdan.cc/gofumpt@latest (requires go >= 1.26).go vet — the toolchain's suspicion heuristics; instant and
dependency-free, so scripts/check always runs it.golangci-lint run — the full curated suite (assets/.golangci.yml).
Pin a release for CI; never install at HEAD there.golangci-lint fmt — runs the configured formatters (v2).gopls — editor integration: "gofumpt": true, "local" set to the
module path for import grouping, "staticcheck": true.go test ./... — tests plus a subset of vet checks.assets/.golangci.yml — the curated strict config for modules.assets/.golangci-script.yml — the relaxed config scripts/new-script
writes next to one-off programs.assets/.editorconfig — editor whitespace/indent defaults (Go: tabs),
installed by scripts/init-config.scripts/check is clean or every remaining finding
carries a justified, linter-specific //nolint.scripts/fmt before scripts/check; never commit hand
formatting that contradicts gofumpt.//nolint:errcheck.cyclop, max 15): never stack funlen,
gocognit, or nestif on top.wsl, nlreturn, or lll to the
config.references/.README.md (opens in a new tab)agents/openai.toml (opens in a new tab)references/comments.md (opens in a new tab)references/design.md (opens in a new tab)references/naming.md (opens in a new tab)scripts/check (opens in a new tab)scripts/fmt (opens in a new tab)scripts/init-config (opens in a new tab)scripts/new-script (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
43 skills in this plugin
/adrCreate and maintain Architecture Decision Records (ADRs). Use when the user proposes a significant architectural change, records a refactoring decision, resolves a technical debate, or asks to write, update, deprecate, or supersede an ADR./asd-ste100Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy./ast-grepnpx claudepluginhub thimslugga/agent-plugins --plugin builder