go-code-review
Skill0 starsChanged 41 days agoMITView on GitHub
Use when reviewing Go code for idiomatic style, correctness, concurrency, or maintainability. Mention "review this go code", "is this idiomatic go", or "go code review"; use pr-review for a cross-language diff with no Go focus and go-testing-review for tests specifically.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- h0rn3t/golang-skillstheir own version, first seen Nov 5, 2026
- eduardo-sl/go-agent-skillstheir own version, first seen Nov 1, 2026
- rjansen/skillstheir own version, first seen Oct 9, 2026
- poteto0/my-skillstheir own version, first seen Feb 19, 2026
- xxxryan/agent-skillstheir own version, first seen Jan 30, 2026
Used with
Projects with it also use go-error-handling.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
rjansenSkillgo-error-handling
This skill should be used when the user asks to "handle errors in Go", "create a custom error type", "wrap errors", "use sentinel errors", "choose between %w and %v", "fix error handling", "propagate errors", or mentions errors.Is, errors.As, errors.Join, fmt.Errorf, error wrapping, or single-handling principle. Provides a decision tree for choosing the right error pattern and Go-specific idioms for error propagation, naming, and handling. NOT for panic/recover in HTTP middleware (use go-code-review) or test assertion errors (use go-test-quality).
Also in 3 projects that use this
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- eduardo-sl/go-agent-skills★ 85same name
- h0rn3t/golang-skills★ 7same name
- rjansen/skills★ 1same name
- xxxryan/agent-skills★ 1same name
- poteto0/my-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- admission-policy-reviewSkill
- alert-rule-reviewSkill
- architecture-reviewSkill
- argocd-applicationsetSkill
- argocd-debugSkill
- argocdSkill
- cert-manager-debugSkill
- cicd-reviewSkill
- cilium-debugSkill
- ciliumSkill
- cluster-backupSkill
- dast-reviewSkill
- dockerfile-reviewSkill
- english-technical-messageSkill
- git-messageSkill
- gitops-reviewSkill
- go-bugfixSkill
- go-testing-reviewSkill
- grafana-dashboardsSkill
- helm-reviewSkill
- homelab-change-planSkill
- incident-analysisSkill
- ingressSkill
- interview-system-designSkill
- istio-debugSkill
- istioSkill
- kubernetes-autoscalingSkill
- kubernetes-debugSkill
- kubernetes-securitySkill
- kubernetes-yaml-reviewSkill
- migration-planSkill
- observability-reviewSkill
- observability-stackSkill
- production-readinessSkill
- pr-reviewSkill
- root-cause-analysisSkill
- runbook-writerSkill
- runtime-security-reviewSkill
- secrets-managementSkill
- storage-debugSkill
- supply-chain-securitySkill
- terraform-reviewSkill
- upgrade-readinessSkill
- vaultSkill
- vulnerability-triageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 7 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read the changed code, callers, nearby tests, and relevant interfaces.
- Distinctive: line 22
Do not substitute style preferences for correctness findings.
- Distinctive: line 26
Follow the Workflow, Safety rules, and Quality checklist below.
- Very specific: line 36
Use when reviewing Go code for quality — separate from pr-review (broader, any language) and go-testing-review (tests specifically).
- Very specific: line 47
Check idiomatic Go: naming (short, clear, no Hungarian notation), package structure (no utils/common dumping grounds), effective use of the …
- Very specific: line 50
Check context usage: context.Context passed as the first parameter, not stored in a struct.
- Very specific: line 53
Check error handling: errors wrapped with %w for context, not swallowed or logged-and- ignored.
- Very specific: line 56
Check naming: exported identifiers documented, receiver names short and consistent, interfaces named for behavior (-er convention) where …
- Distinctive: line 58
Check package boundaries: no import cycles, internal packages used to hide implementation details that shouldn't be part of the public API.
- Distinctive: line 60
Check concurrency safety: shared state protected by a mutex or owned by a single goroutine.
- Very specific: line 63
Check resource cleanup: defer Close()/defer cancel() used correctly, not inside a loop in a way that delays cleanup until the function …
- Very specific: line 65
Check logging: structured, leveled logging instead of ad hoc fmt.Println/log.Println in library code.
- Very specific: line 67
Check performance: obvious unnecessary allocations in hot paths (e.g.
- Very specific: line 69
Check security: unchecked input passed to exec.Command, SQL built via string concatenation, unsafe deserialization, secrets logged or …
- Distinctive: line 74
Do not rewrite the whole file — point to specific lines and specific fixes.
- Distinctive: line 77
Do not flag goroutine/channel patterns as leaks without tracing whether they actually have no termination condition — false positives here …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Go Code Review
TL;DR checklist
- Check idiomatic Go, package boundaries, context propagation, and error handling.
- Inspect concurrency, resource cleanup, and API behavior at call sites.
- Report concrete findings with their impact and location.
Key read-only checks
- Read the changed code, callers, nearby tests, and relevant interfaces.
Common pitfalls
- Do not substitute style preferences for correctness findings.
Agent procedure
Follow the Workflow, Safety rules, and Quality checklist below.
Quick references
- Workflow below.
Last verified: unverified
When to use
Use when reviewing Go code for quality — separate from pr-review (broader, any language) and
go-testing-review (tests specifically). Use this one when the focus is Go-specific code
quality itself.
Goal
Catch non-idiomatic patterns, concurrency hazards, and maintainability issues specific to Go, with concrete fixes.
Workflow
- Check idiomatic Go: naming (short, clear, no Hungarian notation), package structure
(no
utils/commondumping grounds), effective use of the standard library over reinventing it. - Check context usage:
context.Contextpassed as the first parameter, not stored in a struct; cancellation/timeouts respected in long-running or I/O operations; nocontext.Background()used deep in call chains where a real context should propagate. - Check error handling: errors wrapped with
%wfor context, not swallowed or logged-and- ignored; sentinel errors compared witherrors.Is, not==; nopanicfor ordinary error conditions. - Check naming: exported identifiers documented, receiver names short and consistent,
interfaces named for behavior (
-erconvention) where idiomatic. - Check package boundaries: no import cycles, internal packages used to hide implementation details that shouldn't be part of the public API.
- Check concurrency safety: shared state protected by a mutex or owned by a single goroutine; goroutines have a clear termination condition (no leaks); channels have a clear owner/closer.
- Check resource cleanup:
defer Close()/defer cancel()used correctly, not inside a loop in a way that delays cleanup until the function returns. - Check logging: structured, leveled logging instead of ad hoc
fmt.Println/log.Printlnin library code. - Check performance: obvious unnecessary allocations in hot paths (e.g. repeated string
concatenation instead of
strings.Builder), but don't over-optimize code that isn't hot. - Check security: unchecked input passed to
exec.Command, SQL built via string concatenation, unsafe deserialization, secrets logged or hardcoded.
Safety rules
- Do not rewrite the whole file — point to specific lines and specific fixes.
- Distinguish idiom violations (style) from actual bugs (concurrency hazard, resource leak, security issue) in severity.
- Do not flag goroutine/channel patterns as leaks without tracing whether they actually have no termination condition — false positives here are common and costly to chase.
Output format
## Correctness / concurrency issues
## Security issues
## Idiom / style issues
## Performance notes (only if in a demonstrably hot path)
## SuggestionsQuality checklist
- Concurrency safety was traced (goroutine termination, shared state protection), not assumed
- Context propagation was checked end-to-end for I/O paths
- Errors are wrapped/compared idiomatically (
%w,errors.Is/As) - Findings are ranked by real impact (bug > idiom), not treated as equally severe
- No whole-file rewrite was proposed
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

