/ast-grep-practice:ast-grep-practicefrom ast-grep-practice
ast-grep の構造検索、プロジェクト固有 lint、安全な rewrite、ルールテストと CI 組み込みに使う。既存 linter で表現できない構文パターンや API 移行を扱う。
Ships in ast-grep-practice. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Codex / Claude Code のどちらでも、実際の AST とテストで構造ルールを作る。既存の ESLint / Biome / コンパイラで表現できるルールは既存機能を優先する。
sgconfig.yml / rules / rule-tests を読むnpm ci --ignore-scripts で固定の @ast-grep/[email protected] を導入し、npm exec -- ast-grep --version で確認するsg という名前は Unix の別コマンドと衝突することがある。常にプロジェクトの ast-grep を使うrun / scan は rewrite 候補を表示できる。--interactive は実際に書き換えるモードで、dry-run ではない--update-all は承認済み対象のみ。ルール外のファイルを一括更新しないJSON は --json=compact。--error=<id> の値は severity ではなくルール ID。例を実プロジェクトへ適用する前に、インストール済みバージョンの --help と対象 AST で確認する。
Source: mizchi/skills, MIT. ローカルで確認した修正は repository の upstream 記録に保存。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub g-kari/g-kari-plugins --plugin ast-grep-practice