Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.
$npx -y skills add mishahanin/heading-os --skill ast-grepInstalls into the current project.
Run `npx skills use "https://github.com/mishahanin/heading-os" --skill "mishahanin/heading-os/ast-grep"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/mishahanin/heading-os" that are relevant to the current task. Run `npx skills add "https://github.com/mishahanin/heading-os"` and select the relevant skills, then follow their instructions.