nodetool: Skill for Claude Code

.claude/skills/ast-grep/SKILL.md

ast-grep is a skill for Claude Code from nodetool-ai/nodetool. It costs 80 tokens per session (2,435 once invoked), scanned A, original, AGPL-3.0.

A guide for using ast-grep, a tool that searches source code by its programming structure rather than only by matching text.

In plain words
What is it for?
Use it to write structural search rules and analyze code patterns across a codebase.
Why use it?
It helps find repeated code patterns and language constructs that ordinary text searches can miss or match incorrectly.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is nodetool-ai/nodetool's own configuration. It tells Claude Code how to work on nodetool itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nodetool configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nodetool-ai/nodetool. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nodetool-ai/nodetool/main/.claude/skills/ast-grep/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nodetool-ai/nodetool

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ast-grep

README.md
[![agentmods](https://agentmods.dev/badge/skills/nodetool-ai/nodetool/ast-grep/github.svg)](https://agentmods.dev/skills/nodetool-ai/nodetool/ast-grep)
Your own site
<a href="https://agentmods.dev/skills/nodetool-ai/nodetool/ast-grep"><img src="https://agentmods.dev/badge/skills/nodetool-ai/nodetool/ast-grep/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ast-grep

Your own site · 80×15
<a href="https://agentmods.dev/skills/nodetool-ai/nodetool/ast-grep"><img src="https://agentmods.dev/badge/skills/nodetool-ai/nodetool/ast-grep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 336
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • medium MCP Rug Pull · line 331
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 334
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.02435
Opus 5 $0.00040 $0.01218
Sonnet 5 $0.00016 $0.00487
Haiku 4.5 $0.00008 $0.00244

Measured 9d ago against content hash 90f4514f020a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ast-grep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/ast-grep/SKILL.md · 338 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 338 lines · 80 tokens per session scan A 90f4514f020a

Subscribe to this mod's changes

ast-grep is a skill published in the GitHub repository nodetool-ai/nodetool (515 stars, last pushed today), licensed AGPL-3.0. It adds 80 tokens to every session and 2,435 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories