/tslateman-skills:go-review [path or package to review, defaults to working-tree changes]from tslateman-skills
Review Go code for agent-typical anti-patterns: discarded or unwrapped errors, string-matched error handling instead of errors.Is/As, panic as control flow, any plus type switches to bypass the type system, nolint suppression, leaked goroutines. Runs go vet and golangci-lint with a targeted linter set, then judges each trigger with an error-contract lens. Use when: reviewing agent-written Go, before committing Go changes, or on "go review", "review this go", "lint pass", "check error handling". For generic bug hunts use /code-review; for generic judgment use /vibe-check.
Ships in tslateman-skills. 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.
None: SKILL.md is the whole skill.
Go makes errors values, so the agent-typical minimal edit is to make
the value go away: _ = err, a bare return err that strips context,
strings.Contains(err.Error(), ...) when the typed error was too much
work. Each edit compiles and often passes tests; the debt surfaces as
undebuggable failures with no cause chain. This review hunts that debt
class specifically.
Changed files:
!git diff --name-only HEAD 2>/dev/null | grep '\.go$' || echo "(not a git repo or no changed .go files — review the given path instead)"
Review $ARGUMENTS if given; otherwise the changed .go files above;
otherwise ask which package. Read the scoped files fully before judging —
every finding needs the surrounding error contract, not just the line.
go vet ./...
golangci-lint run --enable errcheck,errorlint,staticcheck,ineffassign,unparam,bodyclose,noctx,contextcheck
errcheck — discarded error returnserrorlint — == comparisons and type asserts on wrapped errorsbodyclose/noctx/contextcheck — leaked responses, missing contextIf the project has .golangci.yml, run its pinned set instead and say
so (an unpinned linter set drifts — flag its absence as an observation,
not a finding).
Then grep the scoped files for triggers the linters can't judge:
| Trigger | Suspicion |
|---|---|
_ = on an error return | Deliberate discard, or a silencer? Deliberate wants a comment |
err.Error() == / strings.Contains(err.Error() | Error control flow by string match — wants errors.Is/As with sentinel or typed errors |
bare return err up a long chain | Context stripped — wants fmt.Errorf("doing X: %w", err) |
panic( outside main/init | Error return path abandoned |
interface{} / any + type switch | Type system bypassed — what did the signature give up? |
//nolint | Who silenced the linter, and is the reason written down? |
go func( without WaitGroup/errgroup/context | Goroutine with no lifecycle — leak or lost error |
time.Sleep in tests or sync code | Timing guess standing in for synchronization |
For each trigger hit, decide which of three buckets it belongs in — this is the review's actual work:
_ = f.Close() on a read-only file with a comment is not a finding;
panic in an init-time invariant is defensible.%w and a verb
phrase, replace string match with errors.Is against an existing
sentinel, hand the goroutine an errgroup.A repeated trigger is one finding, not many: five string matches on the same error text point at one package's missing error contract.
Findings ordered by severity, each with file:line, the bucket, why it
matters in one sentence, and the suggested fix. Then a one-paragraph
verdict: when this code fails, does the error arrive with a cause chain
or as an orphaned string? End with the counts: N fine / N mechanical /
N restructure.
If the user asks you to apply fixes, apply bucket 2 directly and run
the linters plus go test -race ./... after; bucket 3 gets a plan
first.
_ =, //nolint, or string matching as a fix.any by what the signature gave up, not by whether a type
switch recovers it downstream.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
tslateman-skills@tslateman is listed by tslateman/claude-plugins — review the source before installing
npx claudepluginhub tslateman/claude-plugins --plugin tslateman-skills61 skills in this plugin
/adrGenerate Architecture Decision Records that capture the reasoning behind technical decisions. Use when the user asks to "create an ADR", "document a decision", "record why we chose X", or discusses architectural trade-offs worth preserving./arenaSpawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape./automagic-problem-discoveryAudit a workspace for recurring friction, pick the highest-leverage one, and build the automation that removes it. Use when the user asks "what should I automate", "what's wasting my time", "find the friction in my workflow", wants a self-improvement pass over their own tooling, or runs this on a recurring loop./blast-radiusFind what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust./brainstormThis skill should be used when the user asks to "brainstorm", "generate ideas", "ideate", "what are my options", "think of ways to", "explore possibilities", or wants divergent thinking on any topic. Also triggers on "what could we do about", "help me think through", or "creative options for"./broRe-explain the previous assistant message in a much simpler way — for when the reply made you go 'bro what'. Use /bro to get a plain-language version of the last answer.