codemodcodemodOfficialยท8 Agent Skills Included

codemod

Automate code migrations, framework upgrades, and large-scale refactors

Automates code migrations, framework upgrades, and large-scale refactors across entire codebases. Searches a community registry for ready-made codemods, runs safe dry-runs, and applies verified changes without manual find-and-replace. Scaffolds, tests, and publishes custom codemods with AST-based transforms and YAML workflows. Connects AI agents to AST inspection and semantic analysis tools for accurate, repeatable edits.
npx skills add codemod/codemod --all -g -y
Available:

Maps the repository structure for the AI agent and routes it to the correct local skill and nested rule file based on which area of the codebase a task touches.

All Skills in This Repository (8)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install Codemod?โ–ผ

Run `npx skills add codemod/codemod --all -g -y` in your terminal to install all skills in this suite globally.

How to automate a framework upgrade with AI?โ–ผ

Ask your agent to run `codemod search` to find an existing migration package, dry-run it to preview changes, then apply it once verified.

Can I write my own codemod?โ–ผ

Yes. Run `npx codemod init` to scaffold a package, write AST-based transforms in TypeScript with JSSG, and test it locally before publishing.

Does Codemod work with AI coding assistants?โ–ผ

Yes. It ships a SKILL.md and MCP tools so agents in Claude Code, Cursor, and similar tools can search, run, and author codemods directly.

Is it safe to run codemods on my codebase?โ–ผ

Yes. Every package supports dry-run mode so you can review exact diffs before applying, and transforms are AST-based rather than risky text replacement.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’