← Back to Skills Marketplace
wanng-ide

Folder Tree Generator

by WANGJUNJIE · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
971
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install folder-tree-generator
Description
Generates an ASCII tree or JSON representation of a directory structure. Use when you need to visualize file hierarchies, document folder contents, or debug...
README (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": [...] }
  ]
}
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install folder-tree-generator
  3. After installation, invoke the skill by name or use /folder-tree-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug folder-tree-generator
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 971 downloads so far.

How do I install Folder Tree Generator?

Run "/install folder-tree-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Folder Tree Generator free?

Yes, Folder Tree Generator is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Folder Tree Generator support?

Folder Tree Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Folder Tree Generator?

It is built and maintained by WANGJUNJIE (@wanng-ide); the current version is v1.0.0.

💬 Comments