What problem does it solve? Text-based search cannot reliably find code by structure, such as all async functions missing error handling or console calls inside class methods. This Skill translates natural language queries into ast-grep rules that match code by its Abstract Syntax Tree, enabling precise structural search across large codebases. ## Core Features & Use Cases - Rule Authoring Workflow: Guides you from a natural language query through example code, rule creation, testing, and full codebase search. - CLI Command Coverage: Documents pattern search with run, rule-based search with scan, inline rules, JSON output parsing, and AST inspection via --debug-query. - Debugging Guidance: Provides checklists for zero-match issues, metavariable escaping, stopBy: end usage, and correct node kind selection. - Use Case: Find every async JavaScript function that uses await but lacks a try-catch block by writing a composite YAML rule with all, has, and not clauses, then scanning the entire project. ## Quick Start Ask the assistant to write and test an ast-grep rule that finds a specific code pattern in your project, such as all console.log calls inside class methods.