Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
dwsy avatar

Tree View

  • 12 installs
  • 17 repo stars
  • Updated July 25, 2026
  • dwsy/agent

Displays a directory tree structure with customizable depth using fd and Python3 for fast, readable visualization, useful when the standard tree command is missing or too slow.

About

tree-view is a Claude Code skill that renders a directory tree with customizable depth using fd and Python3 for fast, clean visualization. A solo builder reaches for it to get a quick hierarchical overview of a project's files when the default tree command is unavailable or too slow.

  • Fast directory tree via fd + Python3
  • Customizable depth limits
  • Works when tree is unavailable
  • Readable hierarchical output

Tree View by the numbers

  • 12 all-time installs (skills.sh)
  • Ranked #383 of 550 CLI & Terminal skills by installs in the Skillselion catalog
  • Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/dwsy/agent --skill tree-view

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs12
repo stars17
Last updatedJuly 25, 2026
Repositorydwsy/agent

What it does

Displays a directory tree structure with customizable depth using fd and Python3 for fast, readable visualization, useful when the standard tree command is missing or too slow.

Who is it for?

Builders wanting a quick project structure overview

Skip if: Users needing rich file-manager GUIs

Files

SKILL.mdMarkdownGitHub ↗

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

# 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)

Related skills

CLI & Terminaldevopsdocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.