ast-grep
Agent skill fromcode-yeongyu/oh-my-openagent
Searches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.
How to install ast-grep
install ast-grep
# install the oh-my-openagent pack with the skills CLI
npx skills add code-yeongyu/oh-my-openagent# or add only this skill to Claude Code: copy the folder
packages/shared-skills/skills/ast-grep/
# into
~/.claude/skills/ast-grep/ (all projects)
.claude/skills/ast-grep/ (one project)
