tree-view
Display directory tree structure with customizable depth, using fd and Python3 for fast and beautiful tree visualization.
来源信息
- 仓库
- Dwsy/agent
- 最近来源活动
- 2026年2月11日 10:39
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 23
- 分支
- 3
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
文件资源管理器
2 个文件正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- tree-view
- description
- Display directory tree structure with customizable depth, using fd and Python3 for fast and beautiful tree visualization.
# 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 `tree` command is not available or too slow
- Need customizable depth limits
## Usage
```bash
# 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 `fd` for efficient file discovery
- **Depth control**: Environment variable `DEPTH` controls levels
- **Clean output**: Proper tree structure with branch characters
- **Smart truncation**: Long filenames are truncated for readability
## Requirements
- `bun` - Bun runtime
- `fd` - Fast alternative to `find`
- `python3` - 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`)
在 GitHub 查看