ast-grep-outline SKILL.md skillA

ast-grep-outline from ast-grep/agent-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ast-grep/agent-skill/ast-grep-outline@git:20261104.0613dc7

Pins git:20261104.0613dc7 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ast-grep/agent-skill
Path
ast-grep/skills/outline/SKILL.md
Versions recorded
3
Latest version
git:20261104.0613dc7, committed Nov 4, 2026
First version recorded
Jul 3, 2026
Size
3,436 bytes
Repository stars
901
License
none declared

Use when exploring or modifying a codebase and you need a cheap structural map of files, directories, imports, exports, or direct members before reading full source.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Use ast-grep outline

`ast-grep outline` prints a structural map of source code with line
numbers: top-level declarations (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
```
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ast-grep/agent-skill/ast-grep-outline@sha256:ebd4c3a7779d21b0

The line at the top of this page pins the label git:20261104.0613dc7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_gs5kbbloismixvbw.svg)](https://markdownregistry.com/a/art_gs5kbbloismixvbw)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Jul 3, 2026 and Nov 4, 2026, about one every 62 days.

versioncommittedcommitsizeaudit
git:20261104.0613dc7 latest2026-11-04 0613dc7 3,436 BA view · diff
git:20260706.086f8872026-07-06 086f887 3,210 BA view · diff
git:20260703.c2a9bc12026-07-03 c2a9bc1 3,215 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3436 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ast-grep/agent-skill · 901 stars · license none declared · pushed 2026-11-04 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_gs5kbbloismixvbw
GET https://markdownregistry.com/api/v1/resolve?ref=ast-grep/agent-skill/ast-grep-outline
GET https://markdownregistry.com/api/v1/blob/ebd4c3a7779d21b069a412c9d9b959ac874a1437e82e800ba1b42c5052292c91

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ast-grep/agent-skill

ast-grep SKILL.md skill
ast-grep/agent-skill · ast-grep/skills/ast-grep/SKILL.md · Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search…
git:20261104.c2cbe9b · audit A · 901 stars

Every file in ast-grep/agent-skill

Browse by kind, by grade A, or by owner.