What problem does it solve?
This Skill helps reviewers spot subtle Go anti-patterns that static analyzers often miss, reducing production bugs like goroutine leaks, broken cancellation, and incorrect error handling.
Core Features & Use Cases
- Go concurrency + lifecycle anti-pattern detection: Identifies goroutine leaks, missing
context.Context propagation, and cancellation that is never observed in select loops.
- Correctness and error-chain hygiene: Flags typed-nil errors and missing
%w error wrapping so errors.Is / errors.As work as intended.
- Go version–specific pitfalls: Covers module-sensitive issues like loop variable capture pre-1.22, range-over-func semantics in Go 1.23, and additional newer concerns for 1.24.
Quick Start
Load this Skill when your PR diff includes *.go files (or changes go.mod/go.sum) to get an anti-pattern checklist tailored to the Go version and the code patterns in the diff.