Smart File Organizer
Paste the following prompt into your AI chat to install this skill:
Please follow the guide at https://skillhub.cn/install/skillhub.md to install the @user_9b41ec6a/scl skill in your AI assistant.
About this skill
Problem
Download folders, shared drives, and project workspaces often accumulate a flat mix of file types. Manual sorting is slow and error-prone: .docx, .png, .py, .zip, and .csv files can sit in the same directory, making lookup and backup harder. file-organizer does not delete or convert files; it turns a scattered file set into a purpose-based folder structure.
How It Works
When asked to organize a folder, the skill scans the target path for file extensions and maps them to predefined categories: documents, images, code, archives, videos, audio, data, and executables. The typical workflow is:
- Preview: show the files that would be moved before acting
- Create folders: add category folders if they do not exist
- Move files: place each file into the matching category folder
- Log actions: write
_organize_log.mdwith operation details
It supports --dry-run for preview-only mode, --recursive for subfolders, and --exclude for regex-based exclusion patterns. Files already in the correct category folder are skipped to avoid redundant moves.
Boundaries
This is useful for downloads, media libraries, document backups, and code assets, but it only performs moves. It does not delete, rename, extract archives, or touch hidden system files. For symlink-heavy trees, permission-restricted paths, or files that need business-rule classification, run --dry-run first and review the mapping.
Use Cases
- Sort a Downloads folder by moving PDF, PNG, PY, and ZIP files into category subfolders and write an organize log.
- Recursively organize a shared media folder into image, video, audio, and document subfolders after a --dry-run preview.
- Exclude node_modules and build output, then classify .tsx, .json, and .css files in a frontend workspace.
- Move .csv, .sql, and .sqlite files into a data folder and .exe or .dmg files into a program folder, then inspect the log.
Best For
- File management leads who need to turn download and shared-drive clutter into maintainable folder structures
- Operations or records managers who want recursive media-library organization with dry-run previews
- Frontend engineers who need to archive code, JSON, and style files from a working repository
- System administrators who maintain backup assets and keep data files separate from installer packages
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.