360 Secure SkillHub
360 安全技能中心

Tree Tool

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

dinghaibin
dinghaibin
热度 30.73
最近更新 2026-05-11 17:47:34
分类:效率依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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