ast-grep
SKILLAST-aware structural code search and rewrite via ast-grep.
What it does
AST-aware structural code search and rewrite via ast-grep. It treats your pattern as code, parses it the same way it parses your project, and matches structurally.
It is the right tool whenever your question depends on code shape rather than text bytes.
How to set it up
(binary also named ) is an AST-aware search and rewrite tool across 25 languages.
ast-grepsg