What problem does it solve? Text-based search tools like grep cannot understand code structure, making it hard to find patterns such as async functions missing error handling or calls inside specific contexts. This Skill translates natural language queries into ast-grep rules that match code by its AST structure. ## Core Features & Use Cases - Structural Code Search: Write YAML rules using pattern, kind, relational (inside/has), and composite (all/any/not) rules to match code by structure rather than text. - Test-Driven Rule Development: Create example code, test rules with ast-grep scan --stdin or rule files, then run verified rules across the entire codebase. - AST Debugging: Use --debug-query=cst to inspect the concrete syntax tree and find correct node kind values when rules fail to match. - Use Case: Ask to find all async functions that use await but lack try-catch blocks, and the Skill builds, tests, and runs a composite ast-grep rule across your project. ## Quick Start Ask Claude to use ast-grep to find all async functions in this project that use await but do not have try-catch error handling.