list_dir

List directory contents with optional recursive traversal and relative paths.

8|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/OpenAuthority/clawthority --skill list-dir-openauthority
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: list_dir
Source: https://github.com/OpenAuthority/clawthority/tree/main/examples/skills/list_dir
Command: npx skills add https://github.com/OpenAuthority/clawthority --skill list-dir-openauthority

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Determine directory structure quickly by listing immediate entries or all nested items, helping you understand project layout and locate files fast.

Core Features & Use Cases

  • Flat listing returns the immediate files and subdirectories under the specified path.
  • Recursive listing returns all descendant paths as relative names, enabling full-tree inspection.
  • Accepts a required path and an optional recursive flag; handles missing paths and non-directories gracefully.

Quick Start

List the contents of a directory to see its immediate entries.

Frequently Asked Questions about list_dir

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list directory contents recursively to inspect a project layout?

To list directory contents recursively, provide the target path and enable the recursive flag. This returns all descendant files and subdirectories as relative paths, enabling full-tree inspection of your project structure.

What is the best way to enumerate immediate files and subdirectories in a folder?

The best way to enumerate immediate files and subdirectories is by performing a flat listing on the target path. This returns only the direct children of the specified directory without traversing nested folders.

Can I generate a manifest of files from a target directory path?

Yes, you can generate a manifest of files by enumerating the target directory. By enabling recursive traversal, you capture all descendant paths as relative names to document the complete file structure.

How does directory traversal handle missing paths or non-directory inputs?

Directory traversal handles missing paths and non-directory inputs gracefully by managing common filesystem errors. This ensures the enumeration process stops safely without crashing when encountering invalid targets.

Do I need any external dependencies to audit a codebase folder structure?

No external dependencies are required to audit a codebase folder structure. The enumeration operates directly on the filesystem using a required path and an optional recursive flag to return the contents.