Ast Grep

Use this skill for structural code search, analysis, and automated refactoring using AST patterns (via sg/ast-grep). Trigger this whenever the user asks to "find all usages of", "rename this pattern", "refactor all X to Y", "extract all functions that", or "lint for pattern". Prefer this over standard text search (grep) when the task requires understanding code structure, extracting function names/imports, or performing complex codebase-wide migrations.

shalomb 976da9f 2 files · 8.2 KB Updated

File contents

shalomb/agent-skills/tree/main/skills/ast-grep commit 976da9f025

Frequently asked questions

npx skillmds@latest add shalomb/ast-grep