Show the project folder tree, excluding noise (node_modules, .next, .git, worktrees, etc.).
Steps
- Parse arguments. If a path is provided, use it as the subtree root. If
--depth Nis provided, limit tree depth. Defaults: full project, depth 4.
- Run the script:
python .claude/scripts/tree.py [path] [--depth N]
- Show the output to the user as-is. Do not summarize or truncate.
Examples
/tree— full project structure/tree app— just the app/ directory/tree .claude— the operating system layout/tree lib --depth 2— lib/ with limited depth/tree content/en— English content files