AST-Grep Structural Code Search & Refactoring
Performs precise structural code searches and automated refactors using Abstract Syntax Tree (AST) patterns across multiple programming languages.
This skill integrates the power of ast-grep into Claude Code, enabling sophisticated code manipulation that transcends simple text-based search and replace. By matching code based on its underlying syntax tree rather than literal strings, it allows developers to perform complex tasks like finding specific function signatures, detecting structural anti-patterns, and executing project-wide refactors while safely preserving variable names. It is an essential tool for large-scale codebase migrations, API updates, and enforcing custom linting rules across diverse languages including JavaScript, TypeScript, Python, Rust, and Go.