Skip to content
Kitbay
Submit

pr-to-go-linter

MITUpdated on Nov 11, 20265,616GitHub stars

A maintainer skill that turns a code pattern fixed in a pull request into a new custom Go linter for gh-aw.

What the skill teaches

A maintainer skill that turns a code pattern fixed in a pull request into a new custom Go linter for gh-aw. Given the repository, the pull request number and a linter name, the agent reads the pull request's changes, works out the rule, creates an analyzer under the linters package with tests and registers it with the runner, so the same mistake is caught automatically in later changes.

Capabilities

  • Read a pull request to find a fixed code pattern
  • Generate a go/analysis linter from that pattern
  • Add tests and register the new linter