ast-grep
About ast-grep
Searches and rewrites code using AST patterns. Use when finding code patterns, refactoring at scale, or detecting anti-patterns across a codebase.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / knoopx/ pi --skill ast-grepAfter installing, type/ast-grepin Claude Code to confirm it loaded.
Bundled filesreferences/refactoring-examples.md
Comments
Markdown supported