Agent skill

Ast Grep Outline

by nodetool-ai in nodetool-ai/nodetool

Map file structure, imports, exports, and direct members with ast-grep before reading selected source.

AGPL-3.0Auto-check passed

Install Ast Grep Outline

skills CLI
$ npx skills add nodetool-ai/nodetool --skill ast-grep-outline -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nodetool-ai/nodetool ast-grep-outline --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nodetool-ai/nodetool.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ast-grep-outline .claude/skills/ast-grep-outline && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ast-grep-outline
GitHub stars
560
Used in
1 other repo
Token cost
~845 tokens
SKILL.md length
393 words
Files
1
Skills in repo
127
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Map file structure, imports, exports, and direct members with ast-grep before reading selected source.

  • SKILL.md covers When To Use It, Argument Guide, Limits and NodeTool notes
  • Calls npx and git

What it does

Ast Grep Outline is an agent skill from nodetool-ai/nodetool. Map file structure, imports, exports, and direct members with ast-grep before reading selected source.

Its SKILL.md is about 850 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Agent-first Creative Workspace. The licence is AGPL-3.0.

Example prompts

  • “/ast-grep-outline”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 339f069. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ast Grep Outline loads about 845 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 393 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~845

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nodetool-ai/nodetool at commit 339f069, republished under its AGPL-3.0 licence (© nodetool-ai). 393 words, ~845 tokens.

Download SKILL.mdSave it as .claude/skills/ast-grep-outline/SKILL.md (or your agent's skills folder).
name
ast-grep-outline
description
Map file structure, imports, exports, and direct members with ast-grep before reading selected source.

Use ast-grep outline

ast-grep outline prints a compact structural map of source code with line numbers: top-level items (imports, functions, classes, structs, interfaces, modules, enums) and their direct members (fields, methods, constructors, enum variants). It is a local, syntax-only view — cheap enough to run before any full file read.

Read code in stages: find candidate files with search or file names, outline them, then open only the source range the outline points to. Defaults adapt to input: a file shows its local structure with member digests; a directory shows only its exported surface as grouped names.

When To Use It

Understand a file before editing. Get a table of contents, dependencies, and public entry points before reading implementation details:

shell
ast-grep outline <file>
ast-grep outline <file> --items imports
ast-grep outline <file> --items exports

Map an unfamiliar directory. Scan the public surface of a subtree, then narrow by symbol type when you know what you are looking for:

shell
ast-grep outline <dir> --items exports
ast-grep outline <dir> --type struct,enum,function

Zoom into a known symbol. After search finds a likely name, list its members with line numbers instead of reading the whole body:

shell
ast-grep outline <file> --match <symbol> --type class --view expanded

Trace dependency direction. Find which files import a package or module to decide where a change belongs:

shell
ast-grep outline <dir> --items imports --view signatures

Review changed files after editing. Git tells you what changed; outline summarizes the resulting structure and public surface:

shell
ast-grep outline $(git diff --name-only HEAD) --items exports
Show full SKILL.md (192 more words)Show less

Argument Guide

  • --items <KIND> selects top-level items: structure for local declarations (file default), exports for public API (directory default), imports for dependencies, all when import/export edges matter together.
  • --view <VIEW> controls detail, from least to most: names for directory scans, signatures for one line per item, digest for signatures plus member names, expanded for one line per member with its line number.
  • --match <REGEX> filters top-level items by name or signature. Rust regex, case-sensitive; it never matches members.
  • --type <TYPE[,TYPE...]> keeps only some top-level symbol types, such as --type class,function. Member types like method,field never match top-level items.
  • --pub-members hides private members when the view prints members.
  • --json=stream emits one JSON object per file with precise ranges. Use it only to pipe or post-process entries; prefer text for navigation.

Limits

outline shows local syntax structure. It does not resolve references, infer types, follow re-export chains, or build a call graph. Use ast-grep run, rg, or compiler-backed tools for those questions, then outline the candidate files they surface.

NodeTool notes

Vendored from https://github.com/ast-grep/agent-skill @ c2a9bc1 (2026-07-03). Run via npx --yes --package @ast-grep/cli ast-grep outline <args> (bare npx @ast-grep/cli fails — the binary is named ast-grep).

© nodetool-ai, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/ast-grep-outline of nodetool-ai/nodetool.

Open the folder on GitHubat commit 339f069

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in nodetool-ai/nodetool, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Ast Grep Outline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ast Grep Outline compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ast Grep Outline this skillnodetool-ai/nodetool5601 repos~845Automated safety check: PassAGPL-3.0
ast-grep Structural Searchcode-yeongyu/oh-my-openagent70k—~3.3kAutomated safety check: PassMIT
Ast Grepccusage/ccusage19k—~296Automated safety check: PassCustom licence
Ast Grep Findparcadei/Continuous-Claude-v33.9k1 repos~677Automated safety check: NotesMIT
Importasgeirtj/system_prompts_leaks69k—~3.5kAutomated safety check: PassCC0-1.0
Structural Code Search with ast-grepwarp-drive-data/warp-drive3.2k6 repos~2.4kAutomated safety check: PassMIT

Similar skills

  • ast-grep Structural Search

    code-yeongyu/oh-my-openagent

    Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.

    70k GitHub stars~3.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Ast Grep

    ccusage/ccusage

    Guides ccusage structural code searches with ast-grep. An agent skill from ccusage/ccusage.

    19k GitHub stars~296 tokensUpdated today
    DevelopmentAuto-check passed
  • Ast Grep Find

    parcadei/Continuous-Claude-v3

    AST-based code search and refactoring via ast-grep MCP. An agent skill from parcadei/Continuous-Claude-v3.

    3.9k GitHub starsUsed in 1 repo~677 tokens
    DevelopmentAuto-check: notes
  • Import

    asgeirtj/system_prompts_leaks

    Handle explicit /import requests for read-only transcript recovery and a resume checkpoint, or continue work from other coding agents and unnamed artifacts.

    69k GitHub stars~3.5k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Structural Code Search with ast-grep

    warp-drive-data/warp-drive

    Turns natural-language code queries into ast-grep rules for structural search, testing each rule against an example file before running it on a codebase.

    3.2k GitHub starsUsed in 6 repos~2.4k tokens
    DevelopmentAuto-check passed
  • Ast Grep

    BiFangKNT/mtga

    Write and debug ast-grep rules for structural code search and rewrite.

    1.2k GitHub stars~802 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed

More from nodetool-ai/nodetool

All 127 skills in this repo
  • Beat Sync Editing

    nodetool-ai/nodetool

    Cut a NodeTool timeline to music and shape its pacing — detect the beat grid, place cuts on phrases, pick a cut type, build speed ramps with time remap, and give the piece an arc.

    560 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Caption Titles

    nodetool-ai/nodetool

    Add and animate a consistent text layer on an existing NodeTool timeline.

    560 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Color Motion

    nodetool-ai/nodetool

    Choose and animate colour on a NodeTool timeline, including shape and text gradients, colour grades, 3D LUTs, and dither.

    560 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Commercial Beat Sheet

    nodetool-ai/nodetool

    Write a shootable, precisely timed commercial beat sheet and store it as a NodeTool storyboard, with a consistent entity roster behind every shot.

    560 GitHub stars~4.6k tokensUpdated today
    Auto-check passed
  • Elevenlabs Audio Prompting

    nodetool-ai/nodetool

    Direct ElevenLabs speech, dialogue, sound effects and music — the bracketed audio tags v3 acts on and why the voice decides whether a tag lands, stability as the delivery dial, punctuation instead…

    560 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Frame Composition

    nodetool-ai/nodetool

    Stage the frame on a NodeTool timeline — grids, focal placement, safe areas per aspect ratio, depth layers and parallax, camera moves, and where elements enter and leave.

    560 GitHub stars~3.5k tokensUpdated today
    Auto-check passed

Questions about Ast Grep Outline

What does Ast Grep Outline do?

Map file structure, imports, exports, and direct members with ast-grep before reading selected source. Ast Grep Outline is an agent skill from nodetool-ai/nodetool. Map file structure, imports, exports, and direct members with ast-grep before reading selected source.

How do I install Ast Grep Outline in Claude Code?

Run `npx skills add nodetool-ai/nodetool --skill ast-grep-outline -a claude-code`. Or copy the skill folder (.agents/skills/ast-grep-outline in nodetool-ai/nodetool) into .claude/skills/ast-grep-outline in your project. Claude Code loads it when a task matches its description.

How do I install Ast Grep Outline in Codex?

Run `npx skills add nodetool-ai/nodetool --skill ast-grep-outline -a codex`. Or copy the skill folder (.agents/skills/ast-grep-outline in nodetool-ai/nodetool) into .agents/skills/ast-grep-outline in your project. Codex loads it when a task matches its description.

Can I use Ast Grep Outline in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nodetool-ai/nodetool --skill ast-grep-outline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ast-grep-outline, .gemini/skills/ast-grep-outline, .github/skills/ast-grep-outline and .opencode/skills/ast-grep-outline in your project.

What does Ast Grep Outline need to run?

Going by SKILL.md and its folder, Ast Grep Outline needs the command-line tools its instructions call (npx and git). Our summary lists: Node.js.

Does Ast Grep Outline access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Ast Grep Outline safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ast Grep Outline use?

Ast Grep Outline is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ast Grep Outline use?

About 845 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ast Grep Outline?

Skills that share tags, products or a category with Ast Grep Outline: ast-grep Structural Search (code-yeongyu/oh-my-openagent, 70k stars), Ast Grep (ccusage/ccusage, 19k stars), Ast Grep Find (parcadei/Continuous-Claude-v3, 3.9k stars) and Import (asgeirtj/system_prompts_leaks, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ast Grep Outline?

nodetool-ai (a GitHub organization) maintains it in nodetool-ai/nodetool, which has 560 GitHub stars. The repository holds 127 skills in this directory. The repository was last updated on October 10, 2026.

Source: nodetool-ai/nodetool on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.