Skip to content
Kitbay
Submit

go-codemod

MITUpdated on Nov 11, 20265,616GitHub stars

A maintainer guide for writing codemods for the gh aw fix command, which rewrites workflow files to newer syntax.

What the skill teaches

A maintainer guide for writing codemods for the gh aw fix command, which rewrites workflow files to newer syntax. It has the agent first read how the fix command loads and applies codemods in order, then add a new codemod file, register it, reuse the shared constructors and the workflow document tree, and write tests that cover both changed and unchanged input. It names the gh-aw source files involved.

Capabilities

  • Add a codemod to the gh aw fix command
  • Register codemods in the right order
  • Test codemods on changed and no-op input