Automatic Archiving Skill: Organize the Current Directory by Type into Categorized Folders on Drive D

Preface

When your downloads folder, desktop, or project root directory is cluttered with images, documents, archives, and scripts, manually dragging and dropping files to categorize them is both slow and prone to omissions. Common workarounds involve writing one-off scripts or relying on file manager rules, but maintaining extension lists, verifying previews, and cleaning up empty directories often require separate workflows. This article introduces the community Skill “File Auto Archiver” available on SkillHub. It allows an Agent to organize files in the current directory into preset categories on the D drive under FileArchive based on file extensions, supporting previews and custom categories.

What is this

“File Auto Archiver” is an Agent Skill located on SkillHub at the coordinate @user_e7b2640f/file-auto-archiver-d (Version 1.0.1, source: community, category: office-efficiency), maintained by the publisher user_e7b2640f. The page is tagged with requires_api_key=false, indicating it does not rely on any additional API keys.

In one sentence: Based on file extensions/types, it archives files in the current working directory into preset subfolders (Images, Documents, Videos, Code, Archives, etc.) within Drive D:\FileArchive. It supports previewing, custom categories, and empty folder cleanup. The goal is to organize cluttered directories with one click, while keeping the archive destination on the D drive to avoid consuming C drive space.

Official Access:

  • SkillHub Page: https://www.skillhub.cn/skills/user_e7b2640f/file-auto-archiver-d
  • API Resource Identifier: https://api.skillhub.cn/user_e7b2640f/file-auto-archiver-d

Core Functions

The following capabilities are derived from the SkillHub description and page details; details not explicitly listed are not extrapolated.

  1. Archive by Extension/Type: Identifies files in the current directory and moves them to corresponding category folders under D:\FileArchive based on type.
  2. Preset Categories: Covers common types such as images, documents, videos, code, and archives (specific subdirectory names are defined within the Skill).
  3. Preview: Allows previewing the classification results before organizing to reduce the risk of accidental moves.
  4. Custom Categories: Allows adjusting or extending classification rules beyond the presets, following the Skill’s guidance.
  5. Empty Folder Cleanup: Cleans up directories that become empty as a result of the archiving process.
  6. One-Click Organization: Enables the Agent to call this Skill via natural language to perform batch organization of the “current directory”.

Installation and Activation

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is already present:

command -v skillhub && skillhub --version

If not installed, you can follow the official SkillHub installation documentation to perform a complete installation (including CLI and default Skills):

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

If only the CLI is needed:

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

Documentation: https://skillhub.cn/install/skillhub.md

2. Install this Skill to the current Agent’s skills directory

During installation, you must use --dir to point to the actual skills directory read by your current Agent. Otherwise, it will default to ./skills/, which the Agent might fail to load.

skillhub install user_e7b2640f/file-auto-archiver-d --dir <your skills directory>

Common paths (subject to official installation documentation):

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

You can also ask the AI in your conversation to install it following the same documentation. Example prompt (from the SkillHub page):

Please install `@user_e7b2640f/file-auto-archiver-d` based on https://skillhub.cn/install/skillhub.md.

After installation, restart or refresh the Agent according to your client’s requirements to activate the Skill.

Typical Usage

The public page does not include a complete step-by-step SKILL.md example, so the reproducible usage boundaries are as follows:

  1. Ensure the Agent has loaded the Skill. Set the directory to be organized as the current working directory (or explicitly tell the Agent which path to organize).
  2. State your intent in natural language, for example: Archive current directory files to D:\FileArchive by type, preview before executing, customize the target folder for specific extensions, or clean up empty folders after archiving.
  3. The Agent moves files according to the rules within the Skill; if the Skill provides a preview flow, confirmation should be sought before executing the move.

The archive destination is fixed at D:\FileArchive (and subordinate category subdirectories), which is a Windows drive path. In non-Windows environments or if the D drive is not mounted, you need to verify path availability yourself; the official introduction does not specify cross-platform alternative paths.

Use Cases and Notes

Who it is for

  • Users who frequently pile various downloads, screenshots, and documents in the same folder and want to quickly sort them into a fixed drive letter based on extensions.
  • Developers or office users already using clients that support Skills (like Cursor, Claude Code, Codex) and willing to install community Skills via SkillHub.

Limitations and Notes

  • Drive Letter Dependency: The introduction explicitly states “D drive FileArchive” and “does not occupy C drive space.” The default solution is designed for a Windows layout with a D drive; Linux/macOS users need to verify if the Agent’s execution environment matches the path handling within the Skill.
  • Scope of Effect: Targets the “current directory” and the recursive/non-recursive behavior defined by the Skill; it is recommended to preview or back up before organizing system directories or project directories currently in use.
  • Community Source: source: community, Version 1.0.1; SkillHub page statistics show a rating of 100,000, 962 downloads, and 0 installs (subject to page display, changes over time).
  • No API Key: Tagged requires_api_key=false, no separate key application is required for this Skill.

Conclusion

“File Auto Archiver” encapsulates “classification by extension + fixed D drive archive root + preview and empty directory cleanup” into a Skill callable by an Agent. It is suitable for organizing cluttered folders without wanting to pile large files onto the C drive. Installation and path configuration should follow SkillHub documentation; for skill details and installation tips, see: https://www.skillhub.cn/skills/user_e7b2640f/file-auto-archiver-d

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

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

Xiaoye