ast-grep Code Search
Performs high-precision structural code searches and analysis using Abstract Syntax Tree patterns to identify complex programming constructs.
The ast-grep Code Search skill enables Claude to move beyond simple string-based text searches by utilizing Abstract Syntax Tree (AST) matching to identify specific code structures across various programming languages. This skill is essential for complex refactoring, identifying architectural patterns, and enforcing coding standards by allowing users to define precise rules for finding nested logic, specific function signatures, or missing error handling blocks within large codebases. It provides a structured workflow for drafting, testing, and executing rules that understand the syntax and hierarchy of your code rather than just its literal text.