File Organizer by Extension for Openclaw

A lightweight CLI tool that automatically sorts files into subdirectories based on their file extensions.

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

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install file-organizer-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-organizer-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 Organizer by Extension?

File Organizer by Extension is a streamlined utility designed to handle directory clutter by automatically categorizing files. By identifying the specific extension of every file in a target path, it moves them into logically named subfolders—such as placing all .pdf files into a pdf/ folder and all .jpg files into a jpg/ folder. This skill is a core addition to the Openclaw Skills ecosystem for users seeking to automate file management and improve local data discovery.

Built for speed and simplicity, this tool eliminates the manual effort of dragging and dropping files. Whether you are managing a bloated Downloads folder or organizing project assets, this skill ensures a consistent and clean directory structure every time it is executed.

File Organizer by Extension Use Cases

  • Automating the cleanup of high-traffic folders like Downloads or Desktop.
  • Standardizing directory structures for large datasets or media collections.
  • Preparing raw project files for archival by grouping similar file types.
  • Reducing visual clutter in workspaces to improve overall focus and productivity.

How File Organizer by Extension Works

  1. The user triggers the script via the CLI, optionally providing a specific target directory path.
  2. The skill scans the specified directory to identify all individual files and their respective extensions.
  3. For each unique extension found, the skill checks if a corresponding directory already exists (e.g., /png/); if not, it creates it.
  4. Files are safely moved from the root of the directory into their new extension-specific subfolders.
  5. If verbose mode is enabled, the tool outputs a detailed log of every file movement for user verification.

File Organizer by Extension Setup

To get started with this Openclaw Skills utility, ensure you have Python installed and follow these steps:

  1. Download the skill script to your local environment.
  2. Open your terminal and navigate to the directory containing the script.
  3. Run the following command to organize your current folder:
python file_organizer_by_ext.py
  1. To target a specific folder, provide the path as an argument:
python file_organizer_by_ext.py ~/Downloads

File Organizer by Extension Data Schema & Taxonomy

The skill follows a simple and predictable taxonomy for organizing data. It does not modify file contents, only their location within the file system.

Item Type Logic
Source File Input Any file with a valid extension (e.g., report.pdf)
Destination Folder Output Named exactly after the extension (e.g., /pdf/)
Metadata Internal Uses standard OS-level file system metadata during the move process
Verbose Log Output CLI stdout stream detailing source and destination paths

File Organizer by Extension Advanced Features

  • Path targeting: Supports absolute and relative paths for organizing remote or specific local directories.
  • Verbose reporting: Includes a -v flag to provide real-time feedback on every file operation performed.
  • Silent execution: Defaults to a clean output mode suitable for use in larger automation pipelines or cron jobs.
  • Non-destructive creation: Automatically handles folder creation without overwriting existing directories or data.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*