Ast Outline — AI skill for Claude Code
ast-outline lets AI coding agents pull exactly the code context they need — a repo skeleton, a file outline, or one symbol — instead of reading whole files.
How to install Ast Outline
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dim-s/code-outline and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ast Outline does
ast-outline lets AI coding agents pull exactly the code context they need — a repo skeleton, a file outline, or one symbol — instead of reading whole files. A stateless, tree-sitter-based CLI.
Alternatives in AI
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
- Humanize Ppt — AST-based outline director for human-centered AI presentation workflows 934 ★
README
ast-outline
**English** · [Русский](./README.ru.md) · [简体中文](./README.zh-CN.md)
Your AI coding agent reads whole files to understand code. **`ast-outline` lets it pull exactly what it needs** — a whole-repo skeleton, a single file's outline, or one symbol's body — instead of reading files in full. One stateless, tree-sitter-based CLI: map a repo, outline a file, show a symbol, structural-grep for usages, trace imports. Cheaper, faster agent runs that don't drown in large codebases.
[](https://github.com/ast-outline/ast-outline/actions/workflows/tests.yml) [](./LICENSE) [](./LICENSE-DOCS) [](https://pypi.org/project/ast-outline/) 
📖 **Full documentation:**
Why
LLM coding agents (Claude Code, Cursor agent mode, Aider, Codex CLI, Gemini CLI, Copilot Chat) explore codebases by **reading files directly**. Reliable, but wasteful in two ways: a 1200-line file costs 1200 lines of context just to answer *"what methods are in here?"* — and once the noise is in context, the agent has to wade through it to find the part that actually matters. Token cost goes up, comprehension goes down.
`ast-outline` is a pre-reading layer. The agent calls it first, gets the file's shape in 60–100 lines, and only opens the bodies it actually needs. The win is double: **fewer tokens** in context, and **sharper comprehension** — less noise to filter through means the agent locks onto the relevant code faster and answers with less drift.
**Before:**
Agent: Read Player.cs # 1200 lines, just to see what's here
Agent: Read Enemy.cs # 800 lines
Related Skills
Fast File Search
Ultra-fast file search toolkit for AI agents, Neovim, and code editors. MCP server for Claude Code/Cursor/Code
Semble Rs
Fast, AI-agent-native code search in Rust — hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & imp
Reporecall
Local codebase memory for Claude Code. Tree-sitter AST indexing (22 languages), hybrid keyword + vector search
Codesift
Token-efficient code intelligence for AI agents — 66 MCP tools via tree-sitter AST, BM25F search, semantic sea
CtxGuard
面向 AI Agent 的高并发、低延迟上下文治理与 Prompt Cache 守护网关 (Tree-sitter AST / Tool Delta / 50%~80% Token 削减)
Anyindex MCP
Local MCP server for semantic code search. AST-aware chunking with tree-sitter, offline ONNX embeddings, hybri
Related Agents
Web Novel Outline Agent
Outline agent for the Web Novel project type. Produces a three-layer outline (skeleton, volume, chapter) using
Tp Debugger
PROACTIVELY use this when the user reports a bug, stack trace, error message, failing behaviour, or asks "why
Ast Parser Specialist
AST-parser specialist owning shell grammars (mvdan-sh), bash parser quirks, and AST-walker patterns. The agent