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: Show more Installs 890 Repository ast-grep/agent-skill GitHub Stars 828 First Seen Jul 3, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass
ast-grep-outline
安装
npx skills add https://github.com/ast-grep/agent-skill --skill ast-grep-outline