Ast Grep

Search and rewrite code structurally with ast-grep instead of grep — AST pattern matching with metavariables, YAML rules, and safe codemods. Use when searching code for syntactic constructs (calls, declarations, imports, loops), when grep/regex gives false positives from strings, comments, or formatting differences, or when doing find-and-replace refactors across a codebase.

hughdbrown Updated 1 repo stars

File contents

hughdbrown/claude-skills commit d62f19c164

Frequently asked questions

npx get-skill add hughdbrown/ast-grep