ast-grep
A shared skill in the oh-my-openagent repository for searching and rewriting code by syntax tree with ast-grep, across about 25 languages.
What the skill teaches
A shared skill in the oh-my-openagent repository for searching and rewriting code by syntax tree with ast-grep, across about 25 languages. It tells the agent to use ast-grep for structural questions, such as calls to a function or empty catch blocks, and to leave text searches to ripgrep and meaning questions to language servers. Patterns are written as code with metavariables, checked before searching, and every rewrite is run as a dry run first. A bundled standard-library Python helper wraps search, replace, YAML rule scans, pattern checks and installation, with install scripts for POSIX and Windows. A source note says the folder is a synced copy of the author's separate ast-grep-skill repository.
Capabilities
- Search code by syntax pattern
- Preview and apply structural rewrites
- Run and test YAML lint rules
- Install ast-grep on any operating system
About
- Publisher
- code-yeongyu
- Tool
- Code review
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- .gitignore
- AGENTS.md
- LICENSE
- README.md
- SOURCE
- install.ps1
- install.sh
- references/cli.md
- references/install.md
- references/patterns.md
- references/pitfalls.md
- references/recipes.md
- references/sgconfig.md
- references/yaml-rules.md
- scripts/ast_grep_helper.py
- tests/smoke.ps1
- tests/smoke.sh
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
This skill includes scripts that your agent may run.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Code review | |
| Publisher | code-yeongyu | source |
| Official status | Community (not published by the tool's vendor) | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 202670,828 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from code-yeongyu
10 skills
- github-triage (Skill)
- codex-qa (Skill)
- opencode-qa (Skill)
- browser (Skill)
- coding-agent-sessions (Skill)
- debugging (Skill)
Also listed under: Code review
Sources
- Skill file (SKILL.md)github.com/code-yeongyu/oh-my-openagent · Backs: Official status, LicenceNov 10, 2026
- File in the repository (SOURCE)github.com/code-yeongyu/oh-my-openagentNov 16, 2026
- GitHub repositorygithub.com/code-yeongyu/oh-my-openagent · Backs: Publisher, ActivityNov 11, 2026
- GitHub API recordgithub.com/code-yeongyu/oh-my-openagent · Backs: Includes scriptsNov 16, 2026
- Folder in the repository (ast-grep)github.com/code-yeongyu/oh-my-openagent · Backs: Includes scriptsNov 10, 2026