Folder Tree Generator OpenClaw Plugin & Skill | ClawHub
Looking to integrate Folder Tree Generator into your AI workflows? This free OpenClaw plugin from ClawHub helps you automate coding agents & ides tasks instantly, without having to write custom tools from scratch.
What this skill does
Generates an ASCII tree or JSON representation of a directory structure. Use when you need to visualize file hierarchies, document folder contents, or debug directory layouts.
Install
openclaw skills install @wanng-ide/folder-tree-generatornpx clawhub@latest install folder-tree-generatorFull SKILL.md
Open original| name | description |
|---|---|
| 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 directory layouts. |
SKILL.md content below is scrollable.
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": [...] }
]
}