Agent skill
tree-view
Display directory tree structure with customizable depth, using fd and Python3 for fast and beautiful tree visualization.
Install this agent skill to your Project
npx add-skill https://github.com/Dwsy/agent/tree/main/skills/tree-view
SKILL.md
Tree View
Fast directory tree visualization using fd + Python3.
When to Use
- Need a quick overview of directory structure
- Want to see files organized hierarchically
- Default
treecommand is not available or too slow - Need customizable depth limits
Usage
# Show directory tree (default 2 levels)
bun ~/.pi/agent/skills/tree-view/cli.ts
# Show 3 levels deep
DEPTH=3 bun ~/.pi/agent/skills/tree-view/cli.ts
# Show 4 levels deep
DEPTH=4 bun ~/.pi/agent/skills/tree-view/cli.ts
Features
- Fast: Uses
fdfor efficient file discovery - Depth control: Environment variable
DEPTHcontrols levels - Clean output: Proper tree structure with branch characters
- Smart truncation: Long filenames are truncated for readability
Requirements
bun- Bun runtimefd- Fast alternative tofindpython3- For tree formatting
Output Format
docs/
├── adr/
│ └── 20240210-decision.md
├── issues/
│ ├── frontend/
│ │ └── 20240210-task.md
│ └── backend/
└── guides/
Notes
- Directories are shown with trailing
/ - Files are shown without trailing slash
- Names longer than 30 characters are truncated (
prefix...suffix)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
uloop-focus-window
Bring Unity Editor window to front via uloop CLI. Use when you need to: (1) Focus Unity Editor before capturing screenshots, (2) Ensure Unity window is visible for visual checks, (3) Bring Unity to foreground for user interaction.
uloop-launch
Launch Unity project with matching Editor version via uloop CLI. Use when you need to: (1) Open a Unity project with the correct Editor version, (2) Restart Unity to apply changes, (3) Switch build target when launching.
insight-miner
Only invoke when explicitly requested via "洞见"、"@insight-miner" or "insight". Do NOT auto-trigger.
ui-ux-auditor
Only invoke when explicitly requested via "UI审查"、"设计审计"、"@ui-ux-auditor" or "design audit". Do NOT auto-trigger.
xiaohongshu
生成小红书文案和配图。当用户需要写小红书、生成社交媒体文案、小红书运营内容时使用
direnv-pattern
Implements the b00t environment management pattern: direnv → .envrc → dotenv → .env where datums specify WHICH environment variables are required and .env contains the actual secret VALUES. Ensures automatic environment loading per-project.
Didn't find tool you were looking for?