Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate a new pkg/linters analyzer from a merged or open PR pattern.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -29% | 0% |
| case-10 | ✓→✗ | ▼ Worse | 21% | 0% |
| case-22 | ✓→✗ | ▼ Worse | -88% | 0% |
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.Other measured skills in the registry, with their headline benchmark lift.