If you've ever tried to find code patterns with grep and gotten frustrated by false matches, this is what you need. It searches code using Abstract Syntax Trees instead of text, so you can find things like "async functions without error handling" or "React components that use deprecated lifecycle methods" with precision. The skill walks you through writing ast-grep rules step by step, from understanding what nodes to target to debugging with AST inspection when patterns don't match. It covers both simple pattern searches and complex structural queries that understand your code's actual meaning, not just its text.
npx skills add https://github.com/ast-grep/agent-skill --skill ast-grep