This gives Claude systematic knowledge about writing AST-based code transformations using tools like ast-grep and JSSG. The skill covers 48 rules across pattern matching, node traversal, semantic analysis, and edit operations, all prioritized by impact. You'd want this when building codemods for automated refactoring, migrating codebases between API versions, or debugging why your transformation is matching the wrong nodes. The focus on idempotency, batched edits, and test fixtures shows real production experience. One thing that stands out is the emphasis on exploring ASTs before writing patterns and using constraints to avoid overly generic matches, which are exactly the mistakes that lead to broken migrations at scale.

skills.sh installs
334
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill codemod --agent claude-code

Installs into .claude/skills of the current project.

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-

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Documentation, Code Review & Quality, Debugging, Automation & Workflows
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1szeyu avatarstudy-notes-creatorszeyu/vibe-study-skillsCreate organized, visual study notes with folder structures, diagrams, and example-based learning from source materials (PDFs, lecture notes, documentation). Us332skills.sh installs
2jwynia avatarnon-fiction-revisionjwynia/agent-skillsDiagnose and guide revisions in non-fiction books. Use for non-fiction book revision, when arguments feel weak, evidence is outdated, readers report confusion, 331skills.sh installs
3octagonai avatarfinancial-analyst-masteroctagonai/skillsComprehensive equity research analyst skill that orchestrates all Octagon financial analysis skills. Use when conducting full company analysis, writing initiati330skills.sh installs
4pproenca avatarskill-authoringpproenca/dot-skillsDesign and development best practices for Claude Code skills, MCP tools, and AI agent capabilities. Use when creating skills, writing SKILL.md files, designing 330skills.sh installs
5gentleman-programming avatarjava-21gentleman-programming/gentleman-skillsJava 21 language and runtime patterns for modern, safe code. Trigger: When writing Java 21 code using records, sealed types, or virtual threads.328skills.sh installs
6pproenca avatarunix-clipproenca/dot-skillsUNIX command-line interface guidelines for building tools that follow POSIX conventions, proper exit codes, stream handling, and the UNIX philosophy. This skill326skills.sh installs