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...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 668 · 2 current installs · 2 all-time installs
byWANGJUNJIE@wanng-ide
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97depwrj9av2y07cm1grn4hvn816rny

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

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 <n>: 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": [...] }
  ]
}

Files

4 total
Select a file
Select a file to preview.

Comments

Loading comments…