AST-Grep Structural Search & Refactor
Performs structural code searching and systematic refactoring using Abstract Syntax Tree patterns for precise code manipulation.
The ast-grep skill enhances Claude's ability to analyze and transform codebases by focusing on structural patterns rather than simple text matching. By leveraging Abstract Syntax Tree (AST) logic, it allows for highly accurate searches and refactors that respect the underlying syntax of languages like JavaScript, Python, and Nextflow. This skill is indispensable for finding deprecated patterns, enforcing architectural standards, and automating complex, repetitive code transformations that traditional regex tools cannot handle reliably.
주요 기능
01Advanced pattern debugging using AST and query inspection tools
02Deep support for Nextflow, JavaScript, Python, and other major languages
03Structural code searching using AST-based pattern matching
04Metavariable capturing for complex, multi-node code transformations
0542 GitHub stars
06Systematic refactoring with automated code rewriting capabilities
사용 사례
01Finding and fixing complex logic patterns like unhandled promises or improper closures
02Refactoring deprecated API signatures or library calls across large-scale repositories
03Enforcing custom project-specific linting rules and structural anti-patterns