dir-tree-index

Installation
SKILL.md

Dir Tree Index

Generate a STRUCTURE.md in every directory, listing its contents with one-line summaries. This helps LLMs orient themselves quickly, improves discovery in large codebases, and is especially effective for documentation-first or knowledge repository workflows.

Input

Optional argument: target directory (defaults to repo root).

Algorithm

Process directories bottom-up (deepest first) so child indexes exist before parents need them.

Step 1: Discover directories

Replace <target> with the resolved path (repo root if no argument given):

Related skills
Installs
8
Repository
apocohq/skills
GitHub Stars
4
First Seen
Mar 25, 2026