1
Create a new codemod package
- Project directory
- Codemod type:
- Target language
- Project name
- Description
- Author
- License type
- If your codemod is private
2
Explore the generated project
An example codemod package:Check out the codemod package structure for more details.
You can combine different codemod types in a single package. The
scripts/
and rules/
folders are conventional, not required—use any paths you prefer as long as you reference them correctly from workflow.yaml
.3
Understand an example workflow
The generated Learn more about building workflows here.
workflow.yaml
will differ depending on the codemod type you select:Combined (jssg + yaml + shell + ai)
4
Validate & run your codemod package
The
workflow validate
command checks syntax and schema compliance, but not logical correctness. Always test with real data to ensure expected behavior.