← All skills
ast-grep
74 / 100 · Review before installing
Check before installing. Some of what it can do is expected: a coding skill usually runs build and test commands.
By code-yeongyu/oh-my-openagent (GitHub) · coding · 70,906 stars · scanned at commit 83373dc
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.
Works with any agent that supports SKILL.md skills.
What this skill can do
Downloads and installs other software
This is disclosed by the author in the skill's SKILL.md or README.
Found in 46 places.
Show 17 more
- packages/shared-skills/skills/ast-grep/README.md, line 112
- `cargo install ast-grep --locked` (any OS with Rust) - packages/shared-skills/skills/ast-grep/README.md, line 113
- `pip install ast-grep-cli` (any OS with Python) - packages/shared-skills/skills/ast-grep/install.ps1, line 17
6. cargo binstall / cargo install - packages/shared-skills/skills/ast-grep/install.ps1, line 112
Log "trying: npm install -g @ast-grep/cli" - packages/shared-skills/skills/ast-grep/install.ps1, line 113
try { npm install -g '@ast-grep/cli'; return $LASTEXITCODE -eq 0 } - packages/shared-skills/skills/ast-grep/install.ps1, line 123
Log "trying: cargo install ast-grep --locked" - packages/shared-skills/skills/ast-grep/install.ps1, line 124
try { cargo install ast-grep --locked; return $LASTEXITCODE -eq 0 } - packages/shared-skills/skills/ast-grep/install.ps1, line 134
Log "trying: $pip install --user ast-grep-cli" - packages/shared-skills/skills/ast-grep/install.ps1, line 136
if ($pip -eq 'py') { py -m pip install --user ast-grep-cli } - packages/shared-skills/skills/ast-grep/install.ps1, line 137
else { & $pip install --user ast-grep-cli } - packages/shared-skills/skills/ast-grep/install.ps1, line 233
Err " npm install -g @ast-grep/cli # any OS with Node" - packages/shared-skills/skills/ast-grep/install.ps1, line 234
Err " cargo install ast-grep --locked # any OS with Rust" - packages/shared-skills/skills/ast-grep/install.ps1, line 235
Err " pip install ast-grep-cli # any OS with Python" - packages/shared-skills/skills/ast-grep/install.sh, line 119
log "trying: brew install ast-grep" - packages/shared-skills/skills/ast-grep/install.sh, line 120
brew install ast-grep && return 0 || return 1 - packages/shared-skills/skills/ast-grep/install.sh, line 125
log "trying: npm install -g @ast-grep/cli" - packages/shared-skills/skills/ast-grep/install.sh, line 126
npm install -g @ast-grep/cli && return 0 || return 1
and 26 more places
Changes files outside its own folder
The author does not mention this.
Found in 5 places.
Show 2 more
Runs commands on your computer
This is disclosed by the author in the skill's SKILL.md or README. Expected for a coding skill.
Found in 12 places.
Show 9 more
Sends data to these websites: github.com
The author does not mention this.
Found in 4 places.
Show 1 more
Safer alternatives
Low-risk skills in the same category (coding) that look related. Check that one does what you need.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'ast-grep' ] || [ -L ~/.agents/skills/'ast-grep' ]; then echo 'A skill folder named ast-grep already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/code-yeongyu/oh-my-openagent' "$d" && git -C "$d" checkout --quiet '83373dcbb545ae2336e58abb46af028e9ad29a9e' -- 'packages/shared-skills/skills/ast-grep' && mkdir -p ~/.agents/skills && cp -R "$d"/'packages/shared-skills/skills/ast-grep' ~/.agents/skills/'ast-grep' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'ast-grep' ~/.claude/skills/'ast-grep' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for code-yeongyu/oh-my-openagent shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/code-yeongyu/oh-my-openagent/)
Score history
| Date | Version | Score |
|---|
| 2026-11-14 | 83373dc | 74 |
| 2026-11-10 | f922d6a | 74 |
| 2026-11-08 | 79d6a05 | 74 |
| 2026-11-07 | a815fdf | 74 |