What problem does it solve? Text-based search cannot express structural code queries like "find async functions without try-catch" or "locate console.log calls inside class methods". This Skill translates natural language queries into ast-grep YAML rules that match code by its Abstract Syntax Tree structure rather than raw text. ## Core Features & Use Cases - Rule Authoring Workflow: Guides you through understanding the query, writing example code, drafting a YAML rule, testing it with the ast-grep CLI, and then scanning the full codebase. - Structural Search Patterns: Covers atomic rules (pattern, kind, regex), relational rules (inside, has, precedes, follows), composite rules (all, any, not), and metavariables ($VAR, $$VAR, $$$MULTI). - Debugging Support: Uses --debug-query to inspect the CST/AST when rules fail to match, with guidance on stopBy: end and correct kind values. - Use Case: Ask to find all async JavaScript functions that use await but lack error handling, and get a tested ast-grep rule plus the exact scan command to run against your project. ## Quick Start Ask the assistant to write and test an ast-grep rule that finds a specific code pattern in your project, for example all console.log calls inside class methods.