Folder Counter for Openclaw

A high-performance utility for counting files and analyzing extension distribution within any specified directory.

xjkvbnwe
v1.0.0
Apr 5, 2026
0
611
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install folder-counter

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-counter 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 Counter?

Folder Counter is a specialized utility designed for Openclaw Skills users who need to assess the scale and composition of a directory. Whether you are preparing to build a GNO index or simply need to audit storage, this tool provides instant visibility into the total number of files and a breakdown of the top 20 file types.

By providing clear metrics on directory volume, it empowers developers and AI agents to make informed decisions about processing strategies. It bridges the gap between raw file storage and actionable data insights, ensuring that large-scale operations are handled with the appropriate level of background processing or filtering.

Folder Counter Use Cases

  • Evaluating directory size before initiating complex GNO indexing tasks.
  • Auditing file type distribution to identify dominant data formats in a project.
  • Estimating processing time for data migration or backup workflows.
  • Quick health checks of workspace directories to ensure they stay within manageable limits.

How Folder Counter Works

  1. The user provides a target directory path to the script.
  2. The tool recursively traverses the directory structure to identify every individual file.
  3. If the Fast flag is enabled, it returns a total count immediately without deep analysis.
  4. In full mode, the tool parses file extensions and aggregates them into a sorted distribution list.
  5. The results are formatted into a clean report showing the total count and a ranked list of file types.

Folder Counter Setup

To use Folder Counter within your Openclaw Skills environment, ensure the script is located in your workspace and accessible via PowerShell:

# No additional installation required beyond Openclaw setup.
# Ensure execution policy allows running local scripts:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Folder Counter Data Schema & Taxonomy

The skill provides a structured output report containing the following metadata:

Attribute Description
Path The absolute directory path being analyzed.
Total Files The aggregate count of all files found in the directory.
Type Distribution A ranked list (Top 20) of file extensions and their respective counts.
Scaling Advice Recommended indexing strategy based on file volume thresholds.

Folder Counter Advanced Features

  • Fast Mode: Use the -Fast parameter to bypass extension analysis and retrieve only the total file count for maximum speed.
  • Threshold Intelligence: Provides built-in decision support for GNO indexing based on volume (e.g., suggesting background daemons for counts over 100,000).
  • Extension Grouping: Automatically identifies files without extensions for cleaner reporting.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*