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.
Was der Skill vermittelt
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.
Funktionen
- 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
Überblick
- Herausgeber
- OmAgents
Installation
Das Projekt dokumentiert keine Installationsschritte, die wir bestätigen konnten. Zur Anleitung des Projekts
Was enthalten ist
- agents/openai.yaml
MCP-Server und Skills können Code auf deinem Rechner ausführen und auf deine Daten zugreifen. Prüfe den Quellcode, bevor du etwas installierst.
Details
| Angabe | Wert | Quelle |
|---|---|---|
| Typ | Skill | |
| Tool | In der Dokumentation nicht angegeben | |
| Herausgeber | OmAgents | Quelle |
| Offizieller Status | In der Dokumentation nicht angegeben | |
| Braucht API-Key oder Anmeldung | In der Dokumentation nicht angegeben | |
| Enthält Skripte | Nein | Quelle |
| Plattformen | In der Dokumentation nicht angegeben | |
| KI-Clients | In der Dokumentation nicht angegeben | |
| Lizenz | MIT | Quelle |
| Preis | In der Dokumentation nicht angegeben | |
| Aktivität | Letzter Commit am 16. Nov. 2026360 GitHub-SterneKeine Download-Daten verfügbar (nicht auf npm oder PyPI) | Quelle |
| Links | Repository |
Mehr von OmAgents
1 Server · 10 Skills
- omagents (MCP-Server)
- github-triage (Skill)
- agents-python-tools (Skill)
- deep-research (Skill)
- doctor (Skill)
- hyperplan (Skill)
Quellen
- Skill-Datei (SKILL.md)github.com/omagents/omagents17. Nov. 2026
- GitHub-Repositorygithub.com/omagents/omagents · Belegt: Lizenz, Herausgeber, Aktivität17. Nov. 2026
- Ordner im Repository (ast-grep)github.com/omagents/omagents · Belegt: Enthält Skripte17. Nov. 2026