ast-grep
A skill from the OmAgents toolkit for searching and rewriting code by its syntax tree with the ast-grep command-line tool, so matches inside strings and comments are not picked up as they would be with plain text search.
What the skill teaches
A skill from the OmAgents toolkit for searching and rewriting code by its syntax tree with the ast-grep command-line tool, so matches inside strings and comments are not picked up as they would be with plain text search. It checks whether sg is installed or can run through npx, explains pattern syntax with metavariables that bind one node or many, and lets the language be detected from file extensions or set explicitly. Rewrites are always previewed before being applied to all files. A refactor mode works one file at a time through a task queue kept by a loop_engine.py script, running tests after each change, and grep equivalents are given when ast-grep is missing.
Capabilities
- Search code by syntax pattern
- Preview and apply structural rewrites
- Refactor file by file with tests after each
- Fall back to grep when ast-grep is missing
About
- Publisher
- OmAgents
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- agents/openai.yaml
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Not stated in its documentation | |
| Publisher | OmAgents | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 16, 2026360 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
More from OmAgents
1 server · 10 skills
- omagents (MCP server)
- github-triage (Skill)
- agents-python-tools (Skill)
- deep-research (Skill)
- doctor (Skill)
- hyperplan (Skill)
Sources
- Skill file (SKILL.md)github.com/omagents/omagentsNov 17, 2026
- GitHub repositorygithub.com/omagents/omagents · Backs: Licence, Publisher, ActivityNov 17, 2026
- Folder in the repository (ast-grep)github.com/omagents/omagents · Backs: Includes scriptsNov 17, 2026