Ast Grep

Search code by SYNTAX SHAPE, not by text — matching structures grep and regex can't reliably express — with the `ast-grep` CLI: parse to an AST and match with patterns, node kinds, relational rules (`inside`/`has`), and metavariables, inspecting the tree via `--debug-query` and proving the rule on a minimal example before it runs repo-wide. Requires the `ast-grep` CLI; results are spot-checked, not returned as unverified noise. Use when the target is a code structure rather than a literal string.

ulpi-io 349a7c8 3 files · 18.6 KB Updated

File contents

ulpi-io/skills/tree/main/ast-grep commit 349a7c893b

Frequently asked questions

npx skillmds add ulpi-io/ast-grep