File Category Organizer
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_60efd670/skill1.
About this skill
Problem
Top-level folders often mix images, Office documents, archives, scripts, logs, and temporary files. Manual sorting by type is slow and can mishandle files such as .log, .tmp, or files that are already open. Without a rollback mechanism, recovering the original location after a mistaken move can be difficult. A clear, previewable, reversible workflow is needed.
How It Works
The skill matches file extensions and moves top-level files in the target directory into Images, Documents, Audio, Video, Archives, Code, Executables, or Others. Key behaviors include:
- It scans only the top level by default and does not recurse into subdirectories, reducing unexpected structural changes
- It supports --dry-run for preview, --exclude-ext for skipped extensions, and --undo based on .file-organizer-log.json
- It skips hidden files and the manifest itself, and appends numeric suffixes when names collide, lowering overwrite risk
Boundaries
It relies on extensions, so it cannot classify files without extensions, files with nonstandard suffixes, or objects that require content-based detection. If a file is locked by another process, it should be closed or excluded first. For complex directories, shared drives, or deep archival needs, combine it with content analysis, permission checks, or manual review before running it.
Use Cases
- Inbound delivery folder contains images, PDFs, code, and archives that need to be grouped by category.
- Tidying a Downloads top-level directory: preview with --dry-run before moving files.
- Before migrating a work folder, exclude .tmp and .log files so temporary artifacts are not archived.
- After a move goes wrong, restore the original locations using --undo and the log manifest.
Best For
- Operations staff maintaining shared asset folders who need to group client images, documents, and spreadsheets into consistent categories.
- Administrative staff doing local data backups who need to organize top-level download files while excluding temporary logs.
- Engineers taking over legacy project directories who need to sort top-level code, documentation, and archives quickly.
- Release engineers reviewing delivery packages who need to preview file moves before applying them.
Related Skills
Turns files, references, or chat context into styled single-page HTML reports with built-in templates and preset themes.
An engineering-oriented email automation solution for batch sending, Jinja2 templates, attachments, scheduled sending, inbox monitoring, and rule-based auto-reply.
An engineering workflow for creating, editing, reviewing, analyzing, and image-converting .docx files using pandoc, docx-js, OOXML, and LibreOffice.
Pre-submission scanner for Word/PDF blind-bid files that checks margins, fonts, page numbers, and metadata against tender requirements and flags residual bidder identities.