skills/dir-tree-index/SKILL.md
Generate or update distributed STRUCTURE.md index files across a repo to help LLMs orient quickly in project structure and to make large knowledge repositories easier to navigate and summarize.
npx skillsauth add apocohq/skills dir-tree-indexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
Optional argument: target directory (defaults to repo root).
Process directories bottom-up (deepest first) so child indexes exist before parents need them.
Replace <target> with the resolved path (repo root if no argument given):
find <target> -type d -not -path '*/.*' | sort -r
Process the output in order (deepest first).
List immediate children. Replace <dir> with the directory being processed.
Subdirectories (excluding hidden):
find <dir> -mindepth 1 -maxdepth 1 -type d -not -name '.*' | sort
Files (excluding hidden and STRUCTURE.md):
find <dir> -mindepth 1 -maxdepth 1 -type f -not -name '.*' -not -name 'STRUCTURE.md' | sort
Skip binary files, images, and other non-text files silently.
The files and folders from Step 2 are authoritative. If a STRUCTURE.md already exists, parse it as a summary cache (entry name to summary), but only to avoid re-summarizing unchanged items.
For each child found in Step 2:
STRUCTURE.md (already generated in this pass). If none exists, summarize from folder name.Remove any entry from the cache that no longer exists on disk.
Write using the format below. Skip the write if content is identical to the existing file (avoid unnecessary git diffs).
After completion, report which directories were created or updated.
# {directory name, or "Structure" for root}
*Auto-generated by the `dir-tree-index` skill. Do not edit manually.*
## Folders
- [`subfolder/`](subfolder/) - One-line summary
## Files
- [`README.md`](README.md) - One-line summary
- [`other.md`](other.md) - One-line summary
## Folders or ## Files if that category is empty.README.md first among files.testing
Tracks Architecture Decision Records (ADRs) in docs/adrs/. Creates, lists, and updates ADRs following project conventions. TRIGGER when: user wants to record, review, or update an architectural decision.
development
Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue after user approval. Use when user wants to write a PRD, create a product requirements document, or plan a new feature. Always present the PRD for user approval before submitting.
development
Morning review and prioritization of Things todos. Use this skill every morning, or whenever the user asks to review, triage, categorize, or prioritize their Things tasks. Also trigger when the user says things like 'what should I work on today', 'organize my todos', 'morning routine', or 'daily review'.
testing
Use when completing tasks, implementing major features, or before merging to verify work meets requirements