Folder Tree Generator for Openclaw

A streamlined utility for visualizing directory hierarchies in both human-readable ASCII and machine-readable JSON formats.

wanng-ide
v1.0.0
Feb 16, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install folder-tree-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install folder-tree-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Folder Tree Generator?

The Folder Tree Generator is a specialized utility within the Openclaw Skills library designed to provide instant visibility into file system structures. Whether you are documenting a complex project or debugging nested directory layouts, this tool converts raw file paths into a structured visual format.

By integrating this skill into your workflow, you enhance the context-awareness of your environment. It is particularly useful for providing AI agents with a clear map of a workspace, ensuring that Openclaw Skills can interact with your file system more effectively through well-defined structural data.

Folder Tree Generator Use Cases

  • Creating directory maps for README files and technical documentation.
  • Debugging folder structures in automated build pipelines or CI/CD environments.
  • Generating JSON snapshots of file systems for programmatic analysis.
  • Providing visual context for AI coding assistants to better understand project architecture.

How Folder Tree Generator Works

  1. The user triggers the script via the command line, pointing it toward a specific directory.
  2. The skill traverses the file system recursively, identifying all files and subdirectories.
  3. If a depth limit is specified, the scan terminates at the designated level to prevent performance lag on large drives.
  4. The gathered metadata is processed into either a visual ASCII tree or a hierarchical JSON object.
  5. The final structure is output to the terminal, where it can be copied or piped into other Openclaw Skills for further processing.

Folder Tree Generator Setup

To use this tool within your environment, ensure you have Node.js installed and navigate to your local skills directory:

# General usage
node skills/folder-tree-generator/index.js [directory]

# Example: Generate tree for current directory with depth limit
node skills/folder-tree-generator/index.js . --depth 2

Folder Tree Generator Data Schema & Taxonomy

The Folder Tree Generator supports two primary data formats to ensure compatibility across various Openclaw Skills workflows:

Format Output Type Primary Use Case
ASCII Tree Text/Visual Human-readable documentation and terminal debugging.
JSON Structured Data Programmatic integration and metadata analysis.

JSON Structure Example:

  • name: The name of the file or directory.
  • type: Classified as either "file" or "directory".
  • children: A recursive array containing the contents of a directory.

Folder Tree Generator Advanced Features

  • Depth recursion control to safely map large-scale repositories without memory overhead.
  • Toggleable JSON output mode for seamless integration with external data pipelines.
  • Support for absolute and relative paths, allowing for flexible execution across different drive locations.
  • Lightweight footprint optimized for high-speed execution within the broader suite of Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*