file-organizer: An Agent Skill for Batch Organizing Folders by Type and Date

Introduction

When your Downloads, Desktop, or project root directory gets cluttered with documents, screenshots, archives, and installers, manually dragging and dropping files is slow and prone to omissions. While scripts can handle batch moves, they require you to maintain extension lists and directory structures yourself, and modifying rules often means changing the code. Here, we introduce a community Skill from SkillHub: file-organizer (ID @user_e4ae361c/file-organizer, current version 1.0.1). It allows you to specify a target folder using natural language within an Agent. The Skill handles the archiving based on built-in categories, modification dates, or custom mappings, and supports a “trial run” mode to preview changes before actually moving files.

What is this

file-organizer is designed for “whole-folder organizing” scenarios: it classifies and archives files within a specified directory by moving them into corresponding subfolders. It is not intended for scattered operations like copying or renaming individual files.

  • Source: SkillHub Community (community), Publisher user_e4ae361c
  • Category: office-efficiency
  • Dependencies: Tagged as requires_api_key=false, no additional API Key required.

Official Page: SkillHub - file-organizer; Skill Metadata API: https://api.skillhub.cn/user_e4ae361c/file-organizer

Core Features

The following capabilities are derived from the official description. After installation, the Agent executes them according to the instructions in the Skill’s SKILL.md.

Smart Classification by Extension

Supports classification for 30+ common extensions, covering types such as documents, images, code, archives, videos, audio, e-books, fonts, design files, configuration files, executables, and data files, archiving them into corresponding subdirectories.

Archive by Modification Date

Can create Year / Month / Day hierarchical directories based on file modification times, suitable for scenarios requiring time-based retrieval of photos, logs, or daily downloads.

Custom Classification Mapping

In addition to default type classification, users can configure custom mappings of “Extension or Rule → Target Folder” to adapt to team or personal naming habits.

Trial Run Preview

Provides a preview mode: only displays the paths to be moved and the classification results without actually modifying files on the disk. This is ideal for confirming rules before execution.

Empty Folder Cleanup and Statistical Reports

Can clean up empty directories after organizing and output processing statistics, facilitating the verification of move counts and classification distribution.

Trigger Boundaries (Official Description)

Suitable for triggering: When a folder is too messy and needs organizing, classifying by type, batch moving to different subfolders, tidying up the download directory, or categorizing documents/photos/code.

Not suitable for triggering: Operations involving only a single file, or scenarios where classification and archiving are not required.

Installation and Activation

SkillHub recommends installing via CLI to the skills directory recognized by the current Agent; alternatively, you can use natural language to ask the AI to complete the installation based on the official installation documentation.

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is already present:

command -v skillhub && skillhub --version

If not installed, use the official one-click script (full installation includes CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install file-organizer

When installing, you must use --dir to point to the skills directory of your current environment. Otherwise, it defaults to ./skills/, which the Agent may not be able to load.

skillhub install @user_e4ae361c/file-organizer --dir <your skills directory>

Common client skills paths (subject to the SkillHub Installation Documentation):

Environment Skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Windsurf ~/.codeium/windsurf/skills/ or .windsurf/skills/ under the project

You can also send the installation prompt provided on the official page to the Agent, asking it to install @user_e4ae361c/file-organizer based on https://skillhub.cn/install/skillhub.md.

After installation, restart or refresh the Agent as required by your client to enable the Skill.

Typical Usage

The official page does not list fixed CLI subcommands; actual usage involves stating the target path and organizing strategy in the conversation, and the Agent calls this Skill to execute. The examples below correspond to the capabilities described officially; wording can be adjusted as needed.

Organize Downloads directory by type (Preview recommended first)

  1. Specify the directory, e.g., ~/Downloads.
  2. Request a trial run first: “Just preview, do not move files, show which subfolders files will be placed in based on type classification.”
  3. After confirming it is correct, request formal organization and generate a statistical report.

Archive photos or logs by modification date

Specify the target folder and request establishing a Year/Month/Day hierarchy based on file modification dates; if exception types are needed, specify custom mappings simultaneously (e.g., certain extensions still go to “Documents” instead of being split by date).

Cleanup after organizing

After formal execution, you can request to clean up empty folders and output the number of files moved and the classification summary for this session.

Applicable Scenarios and Notes

Who is it for

  • Users with directories on local machines or shared drives that accumulate files over time with mixed extensions.
  • People who need repeatable rules (Type + Optional Date + Custom Mapping) and prefer to change strategies via conversation rather than modifying scripts.

Usage Notes

  • Prioritize using the trial run preview before formal moves to avoid mis-archiving important files.
  • The Skill is designed for batch classification and organization; for single file operations, use the system or Agent’s regular file capabilities directly without enabling this Skill.
  • This is a community-sourced Skill; check the version and description on the SkillHub page before installation. The version displayed on the current page is v1.0.1.

Conclusion

file-organizer encapsulates “archiving whole folders of files by type, date, or custom rules” into an Agent Skill. It emphasizes previewing, empty directory cleanup, and result statistics, making it suitable for tidying up download directories and miscellaneous folders. To install or view details, visit the SkillHub Skill Page or the metadata address https://api.skillhub.cn/user_e4ae361c/file-organizer.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye