·ast-grep
</>

ast-grep

knoopx/pi

AST パターンによってコードを検索し、ファイル全体の構造リファクタリングを実行します。正規表現では確実に一致できない関数呼び出しの検索、コード パターンの置換、または構文のリファクタリングを行う場合に使用します。

10インストール·1トレンド·@knoopx

インストール

$npx skills add https://github.com/knoopx/pi --skill ast-grep

SKILL.md

| $VAR | Match a single AST node and capture it as VAR | | $$$VAR | Match zero or more AST nodes (spread) and capture as VAR | | $ | Anonymous placeholder (matches any single node, no capture) | | $$$ | Anonymous spread placeholder (matches any number of nodes) |

Shell quoting: Escape $ as \$VAR or wrap in single quotes.

javascript, typescript, tsx, html, css, python, go, rust, java, c, cpp, csharp, ruby, php, yaml

AST パターンによってコードを検索し、ファイル全体の構造リファクタリングを実行します。正規表現では確実に一致できない関数呼び出しの検索、コード パターンの置換、または構文のリファクタリングを行う場合に使用します。 ソース: knoopx/pi。

原文を見る

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/knoopx/pi --skill ast-grep
ソース
knoopx/pi
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-15
更新日
2026-02-18

クイックアンサー

ast-grep とは?

AST パターンによってコードを検索し、ファイル全体の構造リファクタリングを実行します。正規表現では確実に一致できない関数呼び出しの検索、コード パターンの置換、または構文のリファクタリングを行う場合に使用します。 ソース: knoopx/pi。

ast-grep のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/knoopx/pi --skill ast-grep インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/knoopx/pi