1. Scaffold your project
Run the interactive scaffolder to create a new codemod package:jssg codemodfor AST-based transformationsmulti-step workflowfor orchestrated migrations that combine shell, YAML, and JSSG stepsagent skill codemodfor authored skill packages used in coding-agent workflows
jssg codemod.
The scaffolder may also ask whether to add an . This quickstart builds a workflow package, so leave that option disabled.
2. Bootstrap Codemod’s AI-native CLI
Set up Codemod MCP in your IDE with Codemod’s AI-native CLI:3. Build your codemod
With Codemod’s MCP + skill bootstrap installed, ask your AI assistant to create a codemod. After restarting your IDE or harness session, it can discover Codemod guidance and MCP tools automatically. Be specific about the transformation you need:Extract React components from inside other components to module scope to prevent re-creation on render.
Prompting tips
Tips for writing effective prompts and getting the most out of MCP.
my-codemod
codemod.yaml
workflow.yaml
scripts
codemod.ts
tests
fixtures
input.tsx
expected.tsx
4. Validate and test
Validate the workflow schema:tests/ directory. You can use simple input.*/expected.* file pairs or input/ + expected/ directory snapshots when your codemod creates or deletes files. If MCP generated test fixtures, they will run automatically.
For test structure, CI integration, and debugging strategies, see Testing.
5. Run your codemod
Run your codemod on a target codebase:6. Publish
Share your codemod with your team or the community:npx codemod @your-scope/codemod-name.
For CI/CD automation, trusted publishers, and API keys, see the Publishing guide.
Next steps
Scale your migrations
Your migration experience does not stop here. When you’re managing migrations across large codebases or multiple teams, the same codemod package can power Campaigns for automated multi-repo rollouts and Insights for tracking adoption progress. See the Platform quickstart for the full enterprise workflow.Getting help
Join the community
Ask questions, get help, and connect with other codemod users on Slack.
Book a call
Schedule a demo or get hands-on help from the Codemod team.