golang-quality-linting
Installation
SKILL.md
Go Quality And Linting
Build Workflow
- Prefer the repo's existing quality commands from
Makefile, CI,golangci.yaml,golangci.yml, or task files. - Always format before deeper analysis:
gofmtand import sorting (goimportswhen available). - Run
go test ./...andgo vet ./...unless the repo has a stronger equivalent. - Use
golangci-lint runwhen configured or requested. Treat linter suppressions as code review items; require specific//nolint:<linter> // reason. - For security-sensitive code, add
govulncheck, fuzzing, orgosecwhen available and relevant. - When reviewing, lead with correctness, race/leak risk, API breakage, missing tests, and security. Style-only findings come last.
- Do not claim success until verification commands have been run and outputs are known.
Audit Workflow
- Inspect configured quality commands and CI before recommending new tools.
- Check whether format, tests, vet, lint, vulnerability scans, race checks, and generated-code exclusions match the repo's risk profile.
- Treat
//nolintsuppressions, unchecked errors, security findings, and missing verification as review findings. - Report commands run, commands not run, and residual risk separately.
- Pair with
golang-code-auditwhen producing a full findings-first review.