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.
O que a skill ensina
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.
O que faz
- 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
Sobre
- Publicador
- OmAgents
Instalação
O projeto não documenta passos de instalação que tenhamos conseguido confirmar. Veja as instruções do próprio projeto
O que tem dentro
- agents/openai.yaml
Servidores MCP e skills podem executar código no seu computador e agir sobre os seus dados. Revise o código-fonte antes de instalar.
Detalhes
| Fato | Valor | Fonte |
|---|---|---|
| Tipo | Skill | |
| Ferramenta | Não informado na documentação | |
| Publicador | OmAgents | fonte |
| Status oficial | Não informado na documentação | |
| Exige chave de API ou login | Não informado na documentação | |
| Inclui scripts | Não | fonte |
| Plataformas | Não informado na documentação | |
| Clientes de IA | Não informado na documentação | |
| Licença | MIT | fonte |
| Preço | Não informado na documentação | |
| Atividade | Último commit em 16 de nov. de 2026360 estrelas no GitHubDados de download indisponíveis (não está no npm nem no PyPI) | fonte |
| Links | Repositório |
Mais de OmAgents
1 servidor · 10 skills
- omagents (Servidor MCP)
- github-triage (Skill)
- agents-python-tools (Skill)
- deep-research (Skill)
- doctor (Skill)
- hyperplan (Skill)
Fontes
- Arquivo da skill (SKILL.md)github.com/omagents/omagents17 de nov. de 2026
- Repositório no GitHubgithub.com/omagents/omagents · Comprova: Licença, Publicador, Atividade17 de nov. de 2026
- Pasta no repositório (ast-grep)github.com/omagents/omagents · Comprova: Inclui scripts17 de nov. de 2026