go-code-review
Installation
SKILL.md
Go Code Review
Review Workflow
Follow this sequence to avoid false positives and catch version-specific issues:
- Check
go.mod— Note the Go version. This determines which patterns apply (loop variable capture is only an issue pre-1.22,slogis available from 1.21,errors.Joinfrom 1.20). Skip version-gated checks that don't apply. - Scan changed files — Read full functions, not just diffs. Many Go bugs hide in what surrounds the change.
- Check each category — Work through the checklist below, loading references as needed.
- Verify before reporting — Load beagle-go:review-verification-protocol before submitting findings.
Output Format
Report findings as: