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.
スキルの内容
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.
できること
- Search code by syntax pattern
- Preview and apply structural rewrites
- Run and test YAML lint rules
- Install ast-grep on any operating system
概要
- 公開元
- code-yeongyu
- ツール
- コードレビュー
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- .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サーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
このスキルには、エージェントが実行する可能性のあるスクリプトが含まれています。
詳細
出典
- スキルファイル(SKILL.md)github.com/code-yeongyu/oh-my-openagent · 根拠となる項目:公式かどうか, ライセンス2026年11月10日
- リポジトリ内のファイル(SOURCE)github.com/code-yeongyu/oh-my-openagent2026年11月16日
- GitHubリポジトリgithub.com/code-yeongyu/oh-my-openagent · 根拠となる項目:公開元, 活動状況2026年11月11日
- GitHub APIのレコードgithub.com/code-yeongyu/oh-my-openagent · 根拠となる項目:スクリプトを含む2026年11月16日
- リポジトリ内のフォルダ(ast-grep)github.com/code-yeongyu/oh-my-openagent · 根拠となる項目:スクリプトを含む2026年11月10日