ast-grep とは?
ast-grep による構造コード検索 — テキストだけでなく、コードの形状と要素の関係が重要な場合に使用します。例: 「エラー処理を行わない非同期関数を見つける」、「foo(a, b) を foo({ a, b }) にリファクタリングする」。単純な名前検索には Grep を使用します。 ソース: poteto/noodle。
ast-grep による構造コード検索 — テキストだけでなく、コードの形状と要素の関係が重要な場合に使用します。例: 「エラー処理を行わない非同期関数を見つける」、「foo(a, b) を foo({ a, b }) にリファクタリングする」。単純な名前検索には Grep を使用します。
コマンドラインで ast-grep AI スキルを開発環境にすばやくインストール
ソース: poteto/noodle。
Use Tasks to track progress. Create a task for each step below (TaskCreate), mark each inprogress when starting and completed when done (TaskUpdate). Check TaskList after each step.
Without it, has/inside stop at the first non-matching node instead of traversing the full subtree:
$VAR gets interpreted by the shell. Either escape or single-quote:
ast-grep による構造コード検索 — テキストだけでなく、コードの形状と要素の関係が重要な場合に使用します。例: 「エラー処理を行わない非同期関数を見つける」、「foo(a, b) を foo({ a, b }) にリファクタリングする」。単純な名前検索には Grep を使用します。 ソース: poteto/noodle。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/poteto/noodle --skill ast-grepast-grep による構造コード検索 — テキストだけでなく、コードの形状と要素の関係が重要な場合に使用します。例: 「エラー処理を行わない非同期関数を見つける」、「foo(a, b) を foo({ a, b }) にリファクタリングする」。単純な名前検索には Grep を使用します。 ソース: poteto/noodle。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/poteto/noodle --skill ast-grep インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/poteto/noodle