← 返回 Skills 市场
wanng-ide

Folder Tree Generator

作者 WANGJUNJIE · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
971
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install folder-tree-generator
功能描述
Generates an ASCII tree or JSON representation of a directory structure. Use when you need to visualize file hierarchies, document folder contents, or debug...
使用说明 (SKILL.md)

Folder Tree Generator

A utility skill to visualize directory structures in ASCII tree format or JSON.

Usage

# Generate ASCII tree for current directory
node skills/folder-tree-generator/index.js

# Generate ASCII tree for specific directory
node skills/folder-tree-generator/index.js /path/to/dir

# Generate JSON output
node skills/folder-tree-generator/index.js --json

# Limit depth
node skills/folder-tree-generator/index.js --depth 2

Options

  • --json: Output as JSON.
  • --depth \x3Cn>: Limit recursion depth.
  • [dir]: Directory to scan (default: .).

Examples

ASCII Output:

.
├── file1.txt
└── dir1
    ├── file2.txt
    └── file3.txt

JSON Output:

{
  "name": ".",
  "type": "directory",
  "children": [
    { "name": "file1.txt", "type": "file" },
    { "name": "dir1", "type": "directory", "children": [...] }
  ]
}
安全使用建议
This skill appears to do exactly what it says. Before running: (1) review the index.js if you want to confirm path handling; (2) avoid running it on sensitive directories (home, /, mounted secrets) because it will list filenames and paths; (3) run tests in a sandbox or container if you want to exercise the skill (the test script creates/removes scripts/tmp-test inside the skill); and (4) no credentials or network access are required by the skill, so it's low risk to install, but treat its ability to read arbitrary filesystem paths as the primary caution.
功能分析
Type: OpenClaw Skill Name: folder-tree-generator Version: 1.0.0 The OpenClaw skill 'folder-tree-generator' is benign. Its `index.js` uses standard Node.js `fs` and `path` modules to read directory structures and file metadata, generating either an ASCII tree or JSON output, which aligns perfectly with its stated purpose. There are no network calls, arbitrary command executions, data exfiltration attempts, or persistence mechanisms. The `SKILL.md` provides clear, non-malicious instructions, and `scripts/test.js` is a standard unit test. Input validation for the target directory is present, and file system operations are limited to reading, posing no inherent malicious risk.
能力评估
Purpose & Capability
Name/description align with the included code: index.js reads the filesystem and produces ASCII or JSON trees. No unrelated binaries, env vars, or services are requested.
Instruction Scope
SKILL.md instructs running the bundled Node script with path/depth/json flags, which is consistent. Note: the tool will enumerate any directory you point it at and includes a path field in its JSON output (which can reveal absolute/relative paths). This is expected for a directory-visualization tool but is sensitive if run against home, root, or other private directories.
Install Mechanism
No install spec and no external downloads. The skill is instruction-only with bundled JS files — nothing will be fetched from external URLs during install.
Credentials
The skill declares no required environment variables, credentials, or config paths and the code does not access environment secrets. It only uses filesystem APIs.
Persistence & Privilege
always is false and the skill does not modify other skills or global agent settings. The included test script creates and removes a local tmp-test directory inside the skill's scripts folder; aside from that, the skill does not write persistent data.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install folder-tree-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /folder-tree-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of folder-tree-generator. - Generates ASCII tree or JSON representations of directory structures. - Supports output to standard output or JSON format with --json flag. - Allows limiting recursion depth using --depth. - Accepts target directory as optional argument (defaults to current directory). - Useful for visualizing, documenting, or debugging file hierarchies.
元数据
Slug folder-tree-generator
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Folder Tree Generator 是什么?

Generates an ASCII tree or JSON representation of a directory structure. Use when you need to visualize file hierarchies, document folder contents, or debug... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 971 次。

如何安装 Folder Tree Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install folder-tree-generator」即可一键安装,无需额外配置。

Folder Tree Generator 是免费的吗?

是的,Folder Tree Generator 完全免费(开源免费),可自由下载、安装和使用。

Folder Tree Generator 支持哪些平台?

Folder Tree Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Folder Tree Generator?

由 WANGJUNJIE(@wanng-ide)开发并维护,当前版本 v1.0.0。

💬 留言讨论