Jump to related tools in the same category or review the original source on GitHub.

Coding Agents & IDEs @wanng-ide Updated 6/28/2026 1,420 downloads 0 stars Security: Pass

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

ClawHub CLI
openclaw skills install @wanng-ide/folder-tree-generator
Node.js (npx)
npx clawhub@latest install folder-tree-generator

Full SKILL.md

Open original
Metadata table.
namedescription
folder-tree-generatorGenerates 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": [...] }
  ]
}
ClawHub Registry URL: https://clawhub.ai/wanng-ide/skills/folder-tree-generator

Related skills

If this matches your use case, these are close alternatives in the same category.