File Organization Assistant: Let Agent Sort Local Folders by Extension

Preface

Download folders, desktops, or temporary folders next to projects often pile up with mixed documents, screenshots, archives, and installers. Manually creating subdirectories by suffix and dragging files is repetitive and prone to missing files or moving paths currently in use. If you want to hand the “Read directory → Sort by type → Move → Summarize” process over to an Agent in the conversation to execute via a fixed workflow, you can install the community Skill “File Organizer” (@user_c73fb2fe/file-organizer-skill-v2) from SkillHub. It uses a generic SKILL.md to describe the workflow and does not rely on additional API Keys.

What is this

“File Organizer” is an Agent Skill maintained by the SkillHub community publisher user_c73fb2fe, with the coordinate @user_c73fb2fe/file-organizer-skill-v2. The current page version is 1.0.1, categorized as knowledge-management, and tagged with the source community. The Skill metadata indicates requires_api_key=false.

In one sentence: Within a target folder path provided by the user, it sorts files into subdirectories such as Documents, Images, Code, Archives, and Videos based on file extensions, and outputs an organization report. The Skill declares available tools as Read, Write, and Bash, and supports direct user invocation (user-invocable: true).

Core Features

The following capabilities are derived from the SKILL.md workflow description within the Skill package.

  1. Scan Target Directory: Reads the list of files in the specified folder.
  2. Classify by Extension, with built-in rules including:
    • Documents: .doc / .docx / .pdf / .txt / .md
    • Images: .jpg / .png / .gif / .svg / .webp
    • Code: .js / .py / .html / .css / .ts
    • Archives: .zip / .rar / .7z / .tar.gz
    • Videos: .mp4 / .avi / .mov / .mkv
  3. Create Subfolders and Move: Creates a subdirectory for each category and moves files into their corresponding locations.
  4. Organization Report: Outputs a summary explanation upon completion.

The Skill’s description field defines the parameter as “Target Folder Path,” facilitating the direct specification of the directory to be organized within the conversation.

Installation and Activation

Below are two common installation methods: using the skillhub CLI to install to the current Agent’s skills directory, or providing the official prompt to the Agent for self-installation.

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is available:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation according to the SkillHub Installation Documentation:

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

2. Install this Skill

When installing, you must use --dir to point to the actual skills directory read by the current Agent; otherwise, it defaults to ./skills/, and the Agent may fail to load it.

skillhub install file-organizer-skill-v2 --namespace user_c73fb2fe --dir <skills directory>

Common paths for various clients (excerpted from official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Example for Cursor:

skillhub install file-organizer-skill-v2 --namespace user_c73fb2fe --dir ~/.cursor/skills/

3. Install via Conversation

The installation instruction provided on the SkillHub skill page is: Ask the Agent to install @user_c73fb2fe/file-organizer-skill-v2 based on https://skillhub.cn/install/skillhub.md.

After installation, a restart or reload of the Agent is usually required to recognize the new Skill (refer to the documentation of your specific client).

Typical Usage

After enabling the Skill via the steps above, simply state the path to be organized in the conversation. The parameter in the Skill description is “Target Folder Path,” for example:

Use File Organizer to tidy up files in ~/Downloads, archiving them according to the classification rules in the Skill.

The Agent should execute according to the five-step process within the Skill: List files → Classify by extension → Create subfolders → Move files → Output organization report. If the path contains spaces or Chinese characters, ensure correct path quoting when instructing the Agent to execute shell commands.

Applicable Scenarios & Notes

Who is it for

  • Users who need to regularly clean up download directories, desktops, or root directories of shared drives.
  • Scenarios where you want the Agent to classify files based on a fixed extension list rather than dictating rules every time.

Limitations & Notes

  • The Skill body only lists the extension sets mentioned above; types not listed will not automatically fall into these five categories. It is advisable to confirm directory contents before moving, or ask the Agent to explain how unmatched files will be handled.
  • The workflow directly creates subdirectories and moves files; the Skill does not describe a “Preview only, do not modify” mode. Please back up important directories first, or explicitly request a plan listing before execution in the conversation.
  • It is allowed to use Bash and Write. The organization scope should be limited to the target folder you specify to avoid accidentally touching system directories or active project root directories.
  • SkillHub page statistics (as of data capture): Rating 100000, Downloads 1561; installation counts and other figures are subject to SkillHub’s display and will change over time.

Conclusion

“File Organizer” encodes extension-based bucketing, subdirectory creation, and report writing into SKILL.md, making it suitable for delegating repetitive local classification work to an Agent. No API Key is required, and it can be installed via SkillHub.

  • Skill Page: https://www.skillhub.cn/skills/user_c73fb2fe/file-organizer-skill-v2
  • API Coordinate Page: https://api.skillhub.cn/user_c73fb2fe/file-organizer-skill-v2
  • Installation Guide: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

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

Xiaoye