code-yeongyu/oh-my-openagent/ast-grep
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.
Agent skill · version 5.1.70-dev.1794409777.g04e22c0 · from code-yeongyu/oh-my-openagent
Install
npx yarkr-cli add skill:code-yeongyu/oh-my-openagent/ast-grepWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:code-yeongyu/oh-my-openagent/ast-grep
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:code-yeongyu/oh-my-openagent/ast-grepOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:code-yeongyu/oh-my-openagent/ast-grepWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.