jscodeshift-codemods
CommunityCreate codemods for large-scale code refactors.
Authorthird774
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill teaches how to write and debug AST-based codemods using jscodeshift to automate migrations, standardize patterns, remove deprecations, and perform large-scale refactors across codebases.
Core Features & Use Cases
- Codemod Workflow: IDE-friendly guidance from pattern identification to edge-case handling.
- Test-First Approach: Always start with failing tests before implementing transformations.
- Scale & Reuse: Structure codemods for reuse across projects (project layout: codemods/, tests/, testfixtures/).
- Import & AST Manipulation: Techniques for renaming imports, transforming function calls, and updating type params.
- Edge Case Handling: Idempotency, missing dependencies, and safe removal.
Quick Start
Use via jscodeshift:
- npx jscodeshift -t codemods/jscodeshift-codemods.ts [target] --parser=tsx --extensions=ts,tsx,js,jsx
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: jscodeshift-codemods Download link: https://github.com/third774/dotfiles/archive/main.zip#jscodeshift-codemods Please download this .zip file, extract it, and install it in the .claude/skills/ directory.