Preface¶
Browsers, chat tools, and IDEs constantly dump files into the download directory. Over time, ~/Downloads becomes a mess of PDFs, screenshots, installers, and half-finished downloads, making searching by filename the only way to find anything. Manual drag-and-drop classification is time-consuming, while writing one-off scripts often leads to hardcoded paths and extension rules that are difficult to maintain.
Below is an introduction to the SkillHub community Skill “Download File Archiving Assistant” (@user_7b04d250/tzl). It uses the universal SKILL.md convention for trigger phrases and steps, and includes a Python script to translate Agent natural language intent into a “Scan → Classify → Move → Summarize” workflow.
What is this¶
“Download File Archiving Assistant” is an Agent Skill designed for knowledge management (SkillHub category knowledge-management), with coordinates @user_7b04d250/tzl, version 1.0.0, source community, and publisher user_7b04d250. The internal skill name is download-archiver, and it does not require an API Key (requires_api_key=false).
When a user expresses intents such as “organize the download folder,” “archive downloads,” or “clean up Downloads,” the Agent follows the skill instructions to confirm the directory and rules, then calls auto_archive.py to move files into a 归档 (Archive) subdirectory under the download directory. Files are further organized into subfolders based on modification date (YYYY-MM) and file type.
Core Functions¶
The following capabilities are derived from download-archiver/SKILL.md and scripts/auto_archive.py within the installation package (verified via skillhub install on 2026-10-22).
Triggers and Interaction¶
- Typical Trigger Phrases: Organize download folder, archive download files, clean up Downloads.
- Step 1: Confirm the source directory with the user (default
~/Downloads, overridable via--downloads), the archive directory name (default归档), and the four classification categories. - Step 3: Report the number of files moved, classification statistics, and skipped/errored items based on the script output.
Directory and Classification Rules¶
By default, files are moved into:
归档/YYYY-MM/文档/(Documents)归档/YYYY-MM/图片/(Images)归档/YYYY-MM/视频/(Videos)归档/YYYY-MM/安装包/(Installers)
YYYY-MM is derived from the file’s modification time. Files with the same name in the target path will be overwritten; no copies are retained.
Handled Extensions¶
The script maps extensions to four categories (excerpt; refer to the script in the package for the full list):
- Documents:
.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.md,.csv, etc. - Images:
.jpg,.png,.gif,.webp,.heic, etc. - Videos:
.mp4,.mkv,.mov,.webm, etc. - Installers:
.exe,.msi,.dmg,.deb,.apk, etc.
Extensions not in the above sets are skipped. System or temporary files matching patterns like thumbs.db, desktop.ini, .crdownload, ~$ are also excluded. Only files within the download directory are processed; subdirectories (including the existing 归档 directory itself) are not moved.
Command Line Arguments¶
| Argument | Description |
|---|---|
--downloads / -d |
Path to the download folder, default ~/Downloads |
--archive-name / -a |
Name of the archive root directory, default 归档 |
--dry-run / -n |
Declared as simulation run in skill documentation |
Installation and Activation¶
Install SkillHub CLI¶
If the CLI is not installed, follow the official installation instructions:
command -v skillhub && skillhub --version
If not installed (full installation example):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install this Skill¶
During installation, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. The installation prompt provided on the official page is: Refer to https://skillhub.cn/install/skillhub.md to install @user_7b04d250/tzl.
In an environment where skillhub is configured, the command provided by the search index is:
skillhub install tzl --namespace user_7b04d250 --dir ~/.cursor/skills/
Common skills paths for other clients (excerpt from SkillHub installation documentation):
- Claude Code:
~/.claude/skills/ - Cursor:
~/.cursor/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Simply change --dir to the corresponding path. After successful installation, the directory usually contains _meta.json and SKILL.md. The SKILL.md in this package is a zip archive containing download-archiver/SKILL.md and download-archiver/scripts/auto_archive.py.
How to Enable¶
After installing the Skill into the Agent’s skills directory, trigger it via natural language in the conversation. The Agent will read the skill instructions and execute the script. No additional API Key is required.
Typical Usage¶
1. Conversational Trigger (Recommended)¶
In clients like Cursor or Claude Code that have loaded this Skill, directly state your intent, for example:
“Help me organize my download folder and archive it according to the skill’s default rules.”
The Agent should first confirm whether to use the default ~/Downloads and 归档 directory, then run the Python script.
2. Run Script Locally¶
The example path in the skill documentation is a QClaw directory on Windows:
python "C:\Users\someo\.qclaw\skills\download-archiver\scripts\auto_archive.py"
On Linux or macOS, change this to the script in your local installation directory. If the package is not yet unpacked, you can extract the script from the zip-form SKILL.md in the Skill directory and execute it, for example:
SKILL_ZIP="$HOME/.cursor/skills/@user_7b04d250/tzl/SKILL.md"
unzip -p "$SKILL_ZIP" download-archiver/scripts/auto_archive.py > /tmp/auto_archive.py
python3 /tmp/auto_archive.py --downloads "$HOME/Downloads"
To specify a different download directory or archive folder name:
python3 /tmp/auto_archive.py -d /path/to/Downloads -a 归档
After execution, the terminal will print the total number of files processed, successfully moved, skipped, and errors, as well as counts for each category.
Applicable Scenarios and Notes¶
Who is it for?
- Users who want to regularly organize
Downloadsinto a “Monthly + Typed” structure but don’t want to manually writemvcommands or maintain private scripts every time. - Teams or individuals already using Agents that support Skills (like Cursor, Claude Code, Codex) who want to trigger the organization process with a single sentence.
Limitations and Notes
- Only four categories of media and installers are supported; source code repositories, compressed archives (other than installers), and files without extensions will remain in place.
- Overwriting files with the same name is irreversible. Please back up important files or modify the archiving strategy before use.
- The skill documentation lists
--dry-run, but the currentauto_archive.py’smain()only prints a DRY-RUN message and does not pass this flag to the move logic. Please test with a small directory before formal organization, or modify the script yourself before using it. - The example script path in the package is a Windows absolute path; when using it cross-platform, you need to point to the actual extracted
auto_archive.py. - SkillHub Page Statistics (at time of scraping): Rating 100000, Downloads 1002, Installs 0; data changes as the platform updates.
Conclusion¶
“Download File Archiving Assistant” consolidates “Organizing Downloads” into a repeatable Agent workflow: Default ~/Downloads → 归档/YYYY-MM/Category/, with the Python script handling scanning and moving, and providing a summary in the terminal. If you use SkillHub to manage Skills, you can get installation instructions from the official page and install @user_7b04d250/tzl:
- SkillHub Page: https://www.skillhub.cn/skills/user_7b04d250/tzl
- Skill API Identifier: https://api.skillhub.cn/user_7b04d250/tzl