Skip to content

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
View on GitHub

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 -y

Installs 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

PriorityCategoryImpactPrefix
1AST UnderstandingCRITICALast-
2Pattern EfficiencyCRITICALpattern-
3Parsing StrategyCRITICALparse-
4Node TraversalHIGHtraverse-
5Semantic AnalysisHIGHsemantic-
6Edit OperationsMEDIUM-HIGHedit-
7Workflow DesignMEDIUM-HIGHworkflow-
8Testing StrategyMEDIUMtest-
9State ManagementMEDIUMstate-
10Security and CapabilitiesLOW-MEDIUMsecurity-
11Package StructureLOWpkg-

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

Similar to Codemod

More Code Review & Quality