概要
The ast-grep skill empowers Claude to perform advanced code discovery by leveraging structural matching rather than simple text-based searching. By understanding the Abstract Syntax Tree (AST) of a codebase, it allows for highly specific queries such as finding functions missing error handling or identifying specific API call patterns within nested contexts. This skill provides a comprehensive workflow for translating natural language into ast-grep rules, testing them against code samples, and executing searches across large-scale repositories to facilitate deep code auditing and refactoring.