What problem does it solve?
Adding or updating codemods for the gh aw fix command requires understanding the fix pipeline, registry ordering, frontmatter transformation helpers, and strict testing conventions, which is error-prone without a structured guide.
Core Features & Use Cases
- Codemod Implementation Guidance: Walks through creating codemod files in
pkg/cli/, defining metadata fields (ID, Name, Description, IntroducedIn), and using existing frontmatter transformation helpers.
- Registry and Ordering Rules: Explains how to register codemods in
GetAllCodemods() and update registry/order tests since codemods run sequentially.
- Testing Standards: Defines required test coverage including happy path, no-op, idempotence, comment/formatting preservation, dependency injection, and fuzz tests for complex codemods.
- Use Case: When deprecating a frontmatter field in agentic workflows, use this Skill to implement a migration codemod that rewrites the field safely, preserves markdown bodies, and passes all registry and unit tests.
Quick Start
Use the go-codemod skill to implement a new codemod that migrates a deprecated frontmatter field for the gh aw fix command.