/go-code-review:go-code-reviewfrom go-code-review
Auto-review Go code for 100+ common mistakes when analyzing .go files, discussing Go patterns, or reviewing PRs with Go code. Checks error handling, concurrency, interfaces, performance, testing, and stdlib usage.
Ships in go-code-review. 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.
Auto-triggers when reviewing Go code to catch common mistakes from https://100go.co/
Apply to .go files and Go PRs. Not a substitute for go vet or golangci-lint — use both alongside this review.
Paths in this file are relative to the skill directory (the one holding this SKILL.md). The workflow uses no Claude-only runtime features, so it runs the same on every agent:
| Claude Code feature | Fallback |
|---|---|
| Argument substitution | Not used. Take the Go files, diff, or PR to review from the user's request or the code already in the conversation |
| AskUserQuestion | Not used. If no Go code is named or in context, ask in plain text which files to review |
| Subagent tool (Agent) | Not used. The whole review runs in the main agent loop |
context: fork | Not used; the skill runs in the main agent loop everywhere |
In Codex, if reading a file fails because of sandbox restrictions, rerun the read with escalation and a short reason.
Critical (fix before merge):
Major (should fix):
Minor (consider):
func fetchUser(id int) (*User, error) {
row := db.QueryRow("SELECT * FROM users WHERE id=?", id)
var u User
if err := row.Scan(&u.Name, &u.Email); err != nil {
return nil, err
}
return &u, nil
}
Output:
Mistake: #49 — Ignoring When to Wrap an Error
Severity: Major
Location: handler.go:5
Fix: return nil, fmt.Errorf("fetchUser id=%d: %w", id, err)
Why: Without %w, callers cannot trace origin; errors.Is/errors.As chains break
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 smykla-skalski/sai --plugin go-code-review