Go Tooling And Static Analysis

Guides the Go detection layer — the CI gate that catches the rules the authoring skills teach. gofmt/gofumpt for canonical formatting; go vet for built-in correctness analyzers (printf, copylocks, lostcancel, loopclosure, stringintconv, waitgroup); staticcheck for deeper bug/simplification/style checks; golangci-lint as the curated aggregator (do NOT enable-all); govulncheck for reachable known vulnerabilities; go test -race; //go:build constraints; go generate; and the Go 1.26 go fix modernizers. Auto-invokes when setting up CI/linting, configuring golangci-lint/.golangci.yml, running go vet/staticcheck/govulncheck/gofmt, build tags, go generate, or on "add linting" / "why is CI failing on format" / "how do I catch this class of bug". A discarded error or a copied lock is found by the toolchain, not by reading one file.

ctoth 3166cd8 4 files · 36.2 KB Updated

File contents

ctoth/golang-skills-plugin/tree/main/plugins/golang/skills/go-tooling-and-static-analysis commit 3166cd8339

Frequently asked questions

npx skillmds@latest add ctoth/go-tooling-and-static-analysis