Codemod
Best-practice guide for writing codemods with JSSG, ast-grep, and workflows, covering 48 rules.
- CCM score
- 46 of 100
- skills.sh installs
- 344
- GitHub stars
- 228
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers 11 categories by priority, from AST understanding and pattern efficiency to testing, state management, and package structure
- Includes rule files for parsing strategy, node traversal, semantic analysis, edit operations, and security review of third-party codemods
- Designed for AI agents and LLMs that write, review, or debug automated code transformations and migrations
Install
$ npx -y skills add pproenca/dot-skills --skill codemod -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Codemod Best Practices
Comprehensive best practices guide for Codemod (JSSG, ast-grep, workflows), designed for AI agents and LLMs. Contains 48 rules across 11 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
- Writing new codemods with JSSG or ast-grep
- Designing workflow configurations for migrations
- Debugging pattern matching or AST traversal issues
- Reviewing codemod code for performance and safety
- Setting up test fixtures for transform validation
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | AST Understanding | CRITICAL | ast- |
| 2 | Pattern Efficiency | CRITICAL | pattern- |
| 3 | Parsing Strategy | CRITICAL | parse- |
| 4 | Node Traversal | HIGH | traverse- |
| 5 | Semantic Analysis | HIGH | semantic- |
| 6 | Edit Operations | MEDIUM-HIGH | edit- |
| 7 | Workflow Design | MEDIUM-HIGH | workflow- |
| 8 | Testing Strategy | MEDIUM | test- |
| 9 | State Management | MEDIUM | state- |
| 10 | Security and Capabilities | LOW-MEDIUM | security- |
| 11 | Package Structure | LOW | pkg- |
Details
- Repository
- github.com/pproenca/dot-skills
- Categories
- Code Review & Quality, AI Agents & LLM Apps, CLI & Terminal
- First seen
- Jun 3, 2026
Questions
What does the codemod skill do?
The codemod skill gives agents best practices for writing, reviewing, and debugging codemods built with JSSG, ast-grep, and workflows. It covers 48 rules across 11 categories, from AST understanding and pattern efficiency to testing strategy and package structure.
How do I install the codemod skill?
Run npx -y skills add pproenca/dot-skills --skill codemod -y in your project to install it. Once installed, the codemod skill guides the agent when it writes or reviews AST transformations and automated refactoring tools.
Which skills does codemod sit alongside in Code Review & Quality?
Codemod is listed under Code Review & Quality on Claude Marketplaces, next to improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Its own focus is transformation code rather than general review, with rules for ast-grep patterns, JSSG edits and migration workflows.
When should an agent use the codemod skill?
The codemod skill applies when a task involves codemod, ast-grep, JSSG, code transformation, or automated migration. It is meant for writing new transforms, designing migration workflows, debugging pattern matching, and setting up test fixtures for transform validation.
More from pproenca/dot-skills
All 100- Mui Base344
- Skill Authoring343
- Vhs340
- Unix Cli337
- 12 Factor App336
- Rust Refactor334
- Python332
- Ios Design System331
- Js Google327
- Tailwind Refactor324
- Pulumi320
- Harness Engineering315
- Ios Hig313
- Rails Testing312
- Ios Xcode310
- Ruby Refactor310
- Think310
- Restful Hateoas307
- Ios Ui Refactor303
- Rails Dev302
- Swift Optimise296
- Ruby Optimise295
- Ios Testing292
- Swift Refactor292
Similar to Codemod
More Code Review & QualityjscodeshiftSkillpproenca/dot-skills426 installsBest-practice guide with 40 rules for writing, reviewing, and debugging jscodeshift codemods across eight prioritized categories.
ast-grepSkillpproenca/dot-skills349 installsBest-practice rule-writing guide for ast-grep, covering patterns, meta variables, composition, constraints, and rewrites.
ASTMCP serverast-grep501 starsStructural code search and rule testing over local codebases using ast-grep patterns and YAML rules.
skill-writerSkillgetsentry/skills2.7K installsMulti-stage skill authoring workflow with source synthesis, iteration, and registration checks for agent skills.
agents-mdSkillcallicrate/skills1.4K installsScoped AGENTS.md authoring skill that turns verified repo evidence into concise, path-scoped guidance for coding agents.