360 Secure SkillHub
360 安全技能中心

Tree Tool

该 Skill 以树形缩进格式递归列出目录内容,展示文件和文件夹层级,支持限制深度、仅显示目录、显示隐藏文件、显示文件大小以及按模式排除等选项,适合快速查看项目或文件夹结构。

分类:效率
dinghaibin
dinghaibin
热度 24.46
最近更新 2026-05-11 17:47:34

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/tree-tool
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
tree-tool
description
Display directory structure as an indented tree. Use for visualizing folder hierarchies and project structure.

Tree - Directory Listing Tree

Recursively list directory contents in a tree-like format. Shows files and folders with indentation to visualize the complete directory structure.

Usage

tree-tool [options] [path]

Options

  • -L N: Limit depth to N levels
  • -d: Show directories only
  • -a: Show hidden files
  • -h: Print file sizes
  • -I pattern: Exclude files matching pattern

Examples

tree-tool
tree-tool -L 2 /home/user
tree-tool -d -L 1