本文へ移動
cccskills
無料GitHub で公開

ast-grep

Use this skill when the user wants to search code structurally using AST patterns, perform linting, or rewrite code automatically across multiple files.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercliスター 56(GitHub 56 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

ast-grep Plugin

AST-based code structural search, lint, and rewriting.

Commands

Search

  • ast-grep search run — Search using AST pattern

Rewrite

  • ast-grep rewrite run — Rewrite code using pattern and replacement

Lint

  • ast-grep lint run — Run linting rules
  • ast-grep scan run — Scan directory with rules

Usage Examples

  • "Find all usages of $A && $A() pattern in TypeScript"
  • "Replace null coalescing patterns"
  • "Lint the codebase for specific patterns"
  • "Scan src directory for violations"

Installation

npm install --global @ast-grep/cli
# or
cargo install ast-grep
# or
brew install ast-grep

Examples

# Search for AST pattern
ast-grep --pattern 'const $X = $Y' --lang ts

# Rewrite code
ast-grep --pattern '$A && $A()' --lang ts --rewrite '$A?.()'

# Run lint
ast-grep lint

# Scan directory
ast-grep scan src/

Key Features

  • Pattern looks like real code
  • Supports JS, TS, Python, Rust, Go, Java, etc.
  • Use $VAR as wildcard for AST nodes
  • YAML-based lint rules -批量 code rewriting

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Use this skill when the user wants to use 100-exercises-to-learn-rust.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

2to3

無料

Use this skill when the user wants to use 2to3, cli tool: 2to3.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

2to3-2.7

無料

Use this skill when the user wants to use 2to3-2.7, cli tool: 2to3-2.7.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

2to3-3.11

無料

Use this skill when the user wants to use 2to3-3.11, cli tool: 2to3-3.11.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

411toppm

無料

Use this skill when the user wants to use 411toppm, cli tool: 411toppm.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

53AIHub

無料

Use this skill when the user wants to use 53AIHub.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

javimosch のスキルをすべて見る

このスキルの問題を報告する