This skill provides fast, token-budgeted views of a repo’s architecture to help navigate unfamiliar codebases under tight contexts.
npx playbooks add skill evil-skills/project-understanding --skill project-understanding
Automated repository intelligence via Tree-sitter indexing and PUI commands. Core principle: index once, then use focused packs (repomap/find/zoom/impact) instead of manual grep.
When NOT to Use
skills/project-understanding/references/LANG_SUPPORT.md)zoom/graph may show "Symbol not found"skills/project-understanding/references/LANG_SUPPORT.md--repo flag."$PUI" from the target repo. Do not run ./scripts/pui.sh inside the target repo.zoom target is positional. There is no --target or --file flag.zoom does not accept file paths. Use a symbol id/name or file:line.PUI="/path/to/skills/project-understanding/scripts/pui.sh" (use pui.ps1 on Windows). Do NOT run ./scripts/pui.sh from the target repo.--repo flag):"$PUI" index (or "$PUI" index build after big changes)"$PUI" repomap --depth 2 --max-tokens auto"$PUI" find "SymbolName" to get a symbol id (avoid guessing generic names)"$PUI" zoom <symbol-id|name|file:line> (file paths alone will fail)"$PUI" graph --symbol <symbol-id|name> --depth 2"$PUI" impact --files path/to/file --include-tests"$PUI" impact --git-diff HEAD~1..HEADFrom the project-understanding-skill repo root:
PUI="$(pwd)/skills/project-understanding/scripts/pui.sh"
cd ./codebases/lean-boost
"$PUI" index
"$PUI" repomap --depth 3 --max-tokens 1200
"$PUI" find "services_manager"
"$PUI" graph --symbol 70 --depth 1 --format mermaid
"$PUI" impact --files src/uninstall/leftovers_scanner.cpp --max-tokens 800
The skill works out of the box. On first run it bootstraps a shared virtual environment in ~/.local/share/pui/venv (or a local fallback). Repository indexes are stored in .pui/ under the project root.
| Command | Purpose | Key Flag |
|---------|---------|----------|
| index | Build/update index | build, --force |
| repomap | Directory + top files | --depth, --max-tokens |
| find | Symbol search | --limit, --format |
| zoom | Symbol detail | --max-tokens |
| graph | Call/dependency graph | --symbol, --depth |
| impact | Blast radius analysis | --files, --git-diff, --include-tests |
| architecture | High-level architecture summary | --format |
| depgraph | Module dependency graph | --scope, --format |
Usage notes:
zoom target is positional; there is no --target flag.zoom does not accept file paths; use a symbol id/name or file:line.find first if you are unsure of symbol ids.| Score | Meaning | Action |
|-------|---------|--------|
| 0.9+ | Definite match | Trust & proceed |
| 0.7-0.9 | Likely (imports) | Verify manually |
| <0.7 | Heuristic/dynamic | Treat as hints |
Confidence signals are meaningful only for supported languages with symbol extraction.
./scripts/pui.sh from the repo root fails. Use an absolute path or PUI=....index regularly; use index build for full rebuilds.zoom needs a symbol id/name or file:line. There is no --target flag.find before zoom/graph, especially in large repos.--repo flag; set the repo by cd into it.skills/project-understanding/references/LANG_SUPPORT.md first.--depth or --max-tokens.| Excuse | Reality |
|--------|---------|
| "I can just grep for imports" | Grep misses indirect dependencies. impact is more accurate after indexing. |
| "Structure is obvious from folder names" | Folder names are not dependency graphs. Use repomap and graph. |
| "Indexing takes too long" | Indexing is incremental; manual tracing is slower and riskier. |
| "I haven't used the tool, so I'll skip it" | First run cost is one-time; find + impact save time after. |
| "I'll just read the big files" | Reading 600+ line files burns tokens and focus. zoom isolates the essential logic. |
| "The tool should be in ./scripts here" | The script lives in the skill directory. Set PUI first. |
| "I can zoom a file path" | zoom needs a symbol id/name or file:line. File paths alone fail. |
find../scripts/pui.sh inside the target repo.zoom.All of these mean: run index, use repomap/find/impact, or verify language support first.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.