Structured code review checklist for Go projects covering code quality, idiomatic patterns, error handling, naming, package structure, and test coverage. Use when reviewing Go code, PRs, or before merging changes.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Structured code review process for Go. Reviews should be constructive, specific, and cite the relevant principle behind each finding.
Pick the mode that matches the request before starting:
Execute these steps in order. For each finding, classify severity:
Before reading code manually, let the tools catch the mechanical issues (skip any tool that is not installed and note it in the report):
go build ./... # it must compile
go vet ./... # suspicious constructs
golangci-lint run # if the repo has a config
go test -race ./... # tests pass, no data races
Report tool findings alongside manual findings — a failing go vet is
an automatic 🔴 BLOCKER. Never report an issue a tool already proves
absent.
A finding that is wrong costs the author time and the reviewer trust. Before writing one up:
retries meant to include the first attempt?" beats a wrong fix._ discarding errors silently.fmt.Errorf("fetch user %d: %w", id, err).errors.Is() / errors.As(), never ==.panic outside of init() or truly unrecoverable situations.sync.Mutex or channels.context.Context.sync.WaitGroup or errgroup.Group used for goroutine lifecycle.WithTimeout(d)) over config structs for optional params.func Foo(ctx context.Context, ...).error as the last return value.bool parameters — prefer named types or options.:= for local variables, var for zero-value intent.else after return/continue/break.defer used for cleanup, placed right after resource acquisition.range used over manual index iteration where appropriate.internal/ used for non-public packages.cmd/ contains main packages, one per binary.TestXxx naming convention.t.Helper() for clean stack traces.init() — use TestMain when needed.testify/assert or testify/require consistently, or stdlib only.t.Parallel() used where safe.doc.go for non-trivial packages.go.mod has no replace directives in committed code (except monorepos).When the scope exceeds ~20 files, do not read everything in one linear pass. Split the audit into independent passes:
go list ./...) and group them by layer
(handlers, services, stores, shared libraries).file.go:line and severity so the
final aggregation is mechanical: merge, deduplicate, sort by severity.## Code Review Summary
**Files reviewed:** <list>
**Overall assessment:** APPROVE | REQUEST CHANGES | COMMENT
### Findings
#### 🔴 BLOCKER: <title>
- **File:** `path/to/file.go:42`
- **Issue:** <what is wrong>
- **Why:** <which principle or guideline>
- **Fix:** <concrete suggestion>
#### 🟡 WARNING: <title>
...
#### 🟢 SUGGESTION: <title>
...
### What's Done Well
<genuine positive observations — always include at least one>
What SKILL.md sets; muted values are Claude Code's defaults
/go-agent-skills:go-code-reviewfrom go-agent-skills
Claude never picks this skill on its own
Claude Code cannot parse its frontmatter, so it ignores every field there: the description on this page is for you to read, but Claude never sees it. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /go-agent-skills:go-code-review still runs it.
npx claudepluginhub eduardo-sl/go-agent-skills --plugin go-agent-skills35 skills in this plugin
/git-commitStructured git commit messages following Conventional Commits format for Go projects. Generates well-scoped, atomic commits with clear descriptions. Use when committing changes, writing commit messages, preparing PRs, or reviewing commit history quality. Trigger examples: "commit these changes", "create commit", "commit message", "prepare PR", "squash commits". Not for: code review (go-code-review), changelog generation.
/go-api-designHTTP/REST API design for Go services: handlers, ServeMux routing, middleware, request validation, pagination, idempotency, health checks, error responses, and graceful shutdown. Use when designing APIs, writing HTTP handlers, implementing middleware, or structuring REST endpoints. Trigger examples: "design API", "REST endpoints", "HTTP handler", "middleware pattern", "graceful shutdown", "API versioning". Not for: gRPC services (go-grpc), spec-first OpenAPI work (go-openapi), general architecture (go-architecture-review), concurrency in handlers (go-concurrency-review).
/go-architecture-reviewReview Go project architecture: package structure, dependency direction, layering, separation of concerns, domain modeling, and module boundaries. Use when reviewing architecture, designing package layout, evaluating dependency graphs, or refactoring monoliths into modules. Trigger examples: "review architecture", "package structure", "project layout", "dependency direction", "clean architecture Go", "module boundaries". Not for: code-level style (go-coding-standards), endpoint design (go-api-design).
Other plugins' skills for the same job