File Sorter by Extension for Openclaw

Automatically organizes files in a directory into extension-based folders to maintain clean and structured file systems.

albionaiinc-del
v1.0.0
Apr 14, 2026
0
728
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install file-sorter-by-ext

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 file-sorter-by-ext 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 File Sorter by Extension?

File Sorter by Extension is an automation utility designed to solve the problem of cluttered directories. By scanning a target folder, the tool identifies the file extension of every file present and systematically moves them into folders labeled by those extensions. As part of a professional suite of Openclaw Skills, it helps developers and power users maintain data hygiene without the need for manual sorting or complex file management software.

File Sorter by Extension Use Cases

  • Automatically cleaning up a bloated Downloads folder where various file types accumulate over time.
  • Organizing project assets like images, scripts, and documents into separate subdirectories for better project clarity.
  • Enhancing automated workflows within Openclaw Skills by ensuring files are correctly categorized for downstream processes.

How File Sorter by Extension Works

  1. The user triggers the script, optionally passing a directory path as an argument.
  2. The skill scans the specified directory to identify all files and their respective extensions.
  3. For each file, the script creates a folder corresponding to its extension if it doesn't already exist.
  4. Files are moved from the root directory into their respective extension-labeled folders, resulting in a tidy hierarchy.

File Sorter by Extension Setup

To deploy this tool within your Openclaw Skills environment, ensure Python is installed and execute the script via the command line:

# Standard usage in the current directory
python file_sorter_by_ext.py

# Targeting a specific path
python file_sorter_by_ext.py /path/to/downloads

File Sorter by Extension Data Schema & Taxonomy

The skill organizes files into a clear, hierarchical taxonomy based on file extensions:

Folder Name Description
/ext/ Each unique file extension found results in a new subdirectory named after that extension (e.g., .pdf files move to the /pdf/ folder).
Original Filename The skill preserves the original file name and metadata during the move process.
Target Path The root directory provided as input where sorting logic is applied.

File Sorter by Extension Advanced Features

  • Support for absolute and relative paths via CLI arguments for flexible automation.
  • Lightweight Python implementation ensures compatibility across different operating systems.
  • Easily integrates into more complex Openclaw Skills automation chains for server-side maintenance.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*