npx skills add ...
npx skills add github/gh-aw --skill pr-to-go-linter
npx skills add github/gh-aw --skill pr-to-go-linter
Generate a new pkg/linters analyzer from a merged or open PR pattern.
Use this skill when a user asks to create a new custom Go linter based on a code pattern fixed in a pull request.
Convert one concrete PR pattern into a new go/analysis linter under pkg/linters/<name>/ with tests and runner registration.
pkg/linters/ already covers it.pkg/linters/<name>/<name>.go with exported Analyzerpkg/linters/<name>/<name>_test.go using analysistestpkg/linters/<name>/testdata/src/<name>/<name>.go fixtures with // wantcmd/linters/main.go registration in multichecker.Main(...)go test ./pkg/linters/<name>/...go build ./cmd/lintersmake golint-customFor PR #33038 (Refactor pkg mutex sites to use deferred unlocks consistently), derive a linter idea that reports lock/unlock sections that manually unlock instead of deferring unlock immediately after lock when the function body matches the same cache/logger-style critical section pattern.
pkg/linters/<name>/ and cmd/linters/main.go.