Fähigkeiten ast-grep
📦

ast-grep

Inhaltsrevision r1 Sicher ⚡ Enthält Skripte⚙️ Externe Befehle🌐 Netzwerkzugriff

ast-grepでコードを検索して書き換える

大規模なコードベースでは、テキスト検索だけでは構造的なパターンを見逃します。このスキルは、Claude、Codex、Claude Codeがast-grepを使用して、構文を認識した検索、lint、書き換えを行えるようにガイドします。

Unterstützt: Claude Codex Code(CC)
🥉 78 Bronze

Mit meinem Agent installieren

Kopieren Sie diese Anfrage in Ihren Agent. Sie enthält die maßgebliche Skill-Seite und das Manifest.

Agent-Anfrage
Review the Skillstore skill "ast-grep" from https://skillstore.io/skills/dwsy-ast-grep.md and its manifest at https://skillstore.io/api/skills/dwsy-ast-grep/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

Ihr Agent sollte weiterhin seinen Plan anzeigen und alle von der Sicherheitsrichtlinie verlangten Bestätigungen anfordern.

Agent-lesbare Ressourcen

Verwenden Sie diese Links, wenn ein KI-Agent, Crawler oder Skript sauberen Kontext benötigt, statt die vollständige Seite zu lesen.

Testen

„ast-grep“ wird verwendet. TypeScriptコードベース内のすべてのデバッグログを見つける。

Erwartetes Ergebnis:

ast-grepの言語フラグ、パターン選択、レビュー指針を含む、構文を認識した検索計画。

„ast-grep“ wird verwendet. 古いヘルパーから新しいヘルパーへの一括リネームを準備する。

Erwartetes Ergebnis:

まずルールをテストし、変更を適用し、レビューが必要なファイルを明示する書き換えワークフロー。

„ast-grep“ wird verwendet. JavaScriptの動的実行を監査する。

Erwartetes Ergebnis:

eval形式の呼び出しを対象にし、検出結果を想定されるテストフィクスチャから分離する、絞り込まれた検索計画。

Sicherheitsaudit

Sicher
v7 • 5.7.2026 Versionsbericht öffnen

All static findings were adjudicated as false positives after reviewing SKILL.md. The flagged eval text, backticks, URLs, and matches keyword are documentation examples or reference links, not executable code or prompt injection.

1
Gescannte Dateien
493
Analysierte Zeilen
0
Prüfelemente
0
Falschmeldungen ignoriert

Risikofaktoren

⚡ Enthält Skripte (1)
⚙️ Externe Befehle (102)
SKILL.md:20-29 SKILL.md:29-37 SKILL.md:37-46 SKILL.md:46-52 SKILL.md:52-61 SKILL.md:61-67 SKILL.md:67-73 SKILL.md:73-79 SKILL.md:79-85 SKILL.md:85-94 SKILL.md:94-96 SKILL.md:96 SKILL.md:114-116 SKILL.md:116-125 SKILL.md:125-127 SKILL.md:127-129 SKILL.md:129-131 SKILL.md:131-133 SKILL.md:133-135 SKILL.md:135-137 SKILL.md:137-139 SKILL.md:139-141 SKILL.md:141-154 SKILL.md:154-156 SKILL.md:156-158 SKILL.md:158-166 SKILL.md:166-172 SKILL.md:172-174 SKILL.md:174-178 SKILL.md:178-180 SKILL.md:180-182 SKILL.md:182-186 SKILL.md:186-188 SKILL.md:188-190 SKILL.md:190-193 SKILL.md:193-195 SKILL.md:195-197 SKILL.md:197-200 SKILL.md:200-202 SKILL.md:202-204 SKILL.md:204-214 SKILL.md:214-216 SKILL.md:216-218 SKILL.md:218-222 SKILL.md:222-228 SKILL.md:228-230 SKILL.md:230-234 SKILL.md:234-236 SKILL.md:236-238 SKILL.md:238-243 SKILL.md:243-245 SKILL.md:245-247 SKILL.md:247-250 SKILL.md:250-252 SKILL.md:252-254 SKILL.md:254-256 SKILL.md:256-260 SKILL.md:260-262 SKILL.md:262-268 SKILL.md:268-270 SKILL.md:270-272 SKILL.md:272-279 SKILL.md:279-281 SKILL.md:281-283 SKILL.md:283-289 SKILL.md:289-291 SKILL.md:291-293 SKILL.md:293-300 SKILL.md:300-304 SKILL.md:304-306 SKILL.md:306-310 SKILL.md:310-314 SKILL.md:314-316 SKILL.md:316-320 SKILL.md:320-325 SKILL.md:325-329 SKILL.md:329-336 SKILL.md:336-340 SKILL.md:340-344 SKILL.md:344-350 SKILL.md:350-356 SKILL.md:356-360 SKILL.md:360-369 SKILL.md:369-373 SKILL.md:373-380 SKILL.md:380-384 SKILL.md:384-395 SKILL.md:395-401 SKILL.md:401-407 SKILL.md:407-411 SKILL.md:411-417 SKILL.md:417-421 SKILL.md:421-427 SKILL.md:427-431 SKILL.md:431-437 SKILL.md:437-463 SKILL.md:463-466 SKILL.md:466-472 SKILL.md:472-475 SKILL.md:475-481 SKILL.md:481-484 SKILL.md:484-492
🌐 Netzwerkzugriff (5)
Das letzte abgeschlossene statische und semantische Audit erkannte keine bestätigten Sicherheitsbefunde. Dies beweist nicht, dass der Skill keine Nebenwirkungen hat.
Geprüft von: codex Audit-Verlauf anzeigen →
Diesen Bericht teilen & zitieren

Teile den versionierten Bewertungsbericht, das neutrale Badge, die Einbettungskarte und Zitate. Skillstore berichtet Nachweise, ohne zu entscheiden, ob dieser Skill sicher ist.

Versionsbericht öffnen
Sicherheitsbewertung

Berichtslink kopieren

https://skillstore.io/skills/dwsy-ast-grep/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown-Badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/dwsy-ast-grep/security.svg)](https://skillstore.io/skills/dwsy-ast-grep?utm_source=security_passport_badge)

HTML-Badge

<a href="https://skillstore.io/skills/dwsy-ast-grep?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dwsy-ast-grep/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Einbettungskarte

<iframe src="https://skillstore.io/embed/skills/dwsy-ast-grep.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Wissenschaftliche Zitate (APA · BibTeX · CFF)

APA-Zitat

Dwsy. (2026). ast-grep security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dwsy-ast-grep/audits/7

BibTeX-Zitat

@techreport{dwsy-dwsy-ast-grep-2026, author = {Dwsy}, title = {ast-grep security audit report (audit version 7)}, institution = {Skillstore}, year = {2026}, number = {7}, url = {https://skillstore.io/skills/dwsy-ast-grep/audits/7}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "ast-grep security audit report (audit version 7)" version: "unspecified" type: report authors: - name: "Dwsy" date-released: "2026-07-05" url: "https://skillstore.io/skills/dwsy-ast-grep/audits/7" identifiers: - type: other value: "skillstore:dwsy-ast-grep:audit:7" description: "Skillstore immutable audit report identifier"

Skillstore-Score

Warum dieser Score Evidenzvertrauen: Hoch
55
Architektur
85
Wartbarkeit
87
Inhalt
72
Gemeinschaft
83
Spezifikationskonformität

Was Sie erstellen können

構造的なコードパターンを見つける

生のテキストではなく構文に基づいて、関数、呼び出し、import、制御フローを特定します。

リポジトリ全体のリファクタリングを実行する

ast-grepルールを作成して、APIの置き換え、importの更新、多数のファイルにまたがるコードパターンの移行を行います。

リスクのある構文を検索する

構文を認識したクエリを使って、eval呼び出し、SQLクエリパターン、その他の監査対象を見つけます。

Diese Prompts ausprobieren

単純なパターンを見つける
このTypeScriptプロジェクト内のすべてのconsole.log呼び出しをast-grepで見つけてください。コマンドを示し、パターンを説明してください。
Lintルールを書く
awaitを含まないasync関数にマッチするast-grep YAMLルールを作成してください。短いテスト計画も含めてください。
書き換えを計画する
TypeScriptファイル全体で古いAPI呼び出しを新しいAPI呼び出しに置き換えるast-grep rewriteを設計してください。レビュー手順も含めてください。
移行ワークフローを構築する
API移行のための複数ルールのast-grepワークフローを構築してください。検索、test、rewrite、変更後の検証を含めてください。

Bewährte Praktiken

  • リポジトリ全体をscanする前に、各ルールを小さなサンプルでテストします。
  • サブツリー全体を検索する必要があるrelationship rulesにはstopBy: endを使用します。
  • 生成された書き換えは、通常のテストとバージョン管理のdiffでレビューします。

Vermeiden

  • クリーンな作業ツリーとロールバック計画なしに、広範囲の書き換えを実行しないでください。
  • 構文構造が必要な場合に、テキストのみのパターンを使用しないでください。
  • 既知の例に対してテストする前に、ルールが正しいと仮定しないでください。

Häufig gestellte Fragen

このスキルはast-grepをインストールしますか?
いいえ。インストール方法の選択肢は説明しますが、ユーザーがast-grepを別途インストールする必要があります。
コードを自動的に書き換えられますか?
ast-grep rewriteコマンドをガイドできます。ユーザーはすべての書き換え後にdiffをレビューし、テストを実行する必要があります。
どの言語をサポートできますか?
ast-grepの言語サポートに従います。正しい言語フラグまたはルール言語を選択する必要があります。
grepとは何が違いますか?
ast-grepは構文木の構造にマッチするため、テキスト検索では見逃すコードパターンを見つけることができます。
セキュリティ監査に役立ちますか?
はい。リスクのある構文パターンの検索をガイドできますが、各結果は人間が検証する必要があります。
カスタムスクリプトは含まれていますか?
いいえ。このスキルは、外部のast-grep CLIを使用するための例付きMarkdownガイダンスです。

Entwicklerdetails

Autor

Dwsy

Lizenz

MIT

Skillstore-Revision

r1

Versionshinweis

Der Autor hat keine Version angegeben.

Ref.

c579efd02184f1128d6741d16e6c8d951d7d4208

Aktualität der Wartung

18.7.2026

Nutzung

7 Downloads · 334 Aufrufe

Dateistruktur

📄 SKILL.md

Mehr von Dwsy

Alle anzeigen
Alle anzeigen