jscodeshift-codemods
SKILL.md
jscodeshift Codemods
Core Philosophy: Transform AST nodes, not text. Let recast handle printing to preserve formatting and structure.
When to Use
Use codemods for:
- API migrations - Library upgrades (React Router v5→v6, enzyme→RTL)
- Pattern standardization - Enforce coding conventions across codebase
- Deprecation removal - Remove deprecated APIs systematically
- Large-scale refactoring - Rename functions, restructure imports, update patterns