Skip to main content

ast-grep-outline

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.

ast-grep

When ast-grep-outline runs

Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /ast-grep-outline in Claude Code or $ast-grep-outline in Codex.

The description says when to use it:

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.

Install ast-grep-outline

Claude Code

Copy the outline folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.

git clone --depth 1 https://github.com/ast-grep/agent-skill.git /tmp/ast-grep-agent-skill
mkdir -p .claude/skills
cp -r /tmp/ast-grep-agent-skill/ast-grep/skills/outline .claude/skills/

Codex

Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if ast-grep-outline does not appear.

git clone --depth 1 https://github.com/ast-grep/agent-skill.git /tmp/ast-grep-agent-skill
mkdir -p .agents/skills
cp -r /tmp/ast-grep-agent-skill/ast-grep/skills/outline .agents/skills/

Treq

Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for ast-grep-outline and choose Install….

Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.

Files

ast-grep-outline ships 1 file, 3.4 KB in total. Select a file to load it from GitHub.

SKILL.md3.4 KBView on GitHub ↗

All skills by ast-grep