file-organizer
Comprehensive file organization suite. Use for cleaning up messy folders, arranging the desktop, finding duplicates, renaming files intelligently, and…
от onfire7777★ 17 звёзд на GitHub
Установить file-organizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
File Organizer Skill
The ultimate suite for cleaning, organizing, and managing files. This skill provides robust tools for deduplication, safe cleanup, intelligent renaming, and desktop arrangement.
Core Principles
- Safety First: All scripts support
--dry-runby default (except report generation). You must explicitly pass--executeto make changes. - Reversible Actions: All destructive actions (moves, renames, safe cleanups) generate an undo log.
- Accurate Classification: Uses both extensions and content signatures (via hashing) to classify and compare files accurately.
Available Workflows
1. Full Folder Cleanup Workflow
When a user asks to "clean up a messy folder", follow these steps:
- Scan:
python /home/ubuntu/skills/file-organizer/scripts/scan_files.py <target_dir> -o /tmp/scan.json - Report: Generate a summary to understand the mess:
python /home/ubuntu/skills/file-organizer/scripts/generate_report.py /tmp/scan.json -o /tmp/report.mdRead this report to inform the user. - Clean Junk:
python /home/ubuntu/skills/file-organizer/scripts/cleanup_files.py /tmp/scan.json -o /tmp/cleanup.jsonIf user approves, run with--execute. - Deduplicate:
python /home/ubuntu/skills/file-organizer/scripts/find_duplicates.py /tmp/scan.json -o /tmp/dups.jsonReview duplicates and delete redundant copies. - Organize:
python /home/ubuntu/skills/file-organizer/scripts/generate_plan.py /tmp/scan.json --strategy category --dest <target_dir>/Organized -o /tmp/plan.jsonRunorganize_files.py /tmp/plan.json --executeto move files.
2. Desktop Arrangement Workflow
When a user asks to "clean up my desktop":
- Plan:
python /home/ubuntu/skills/file-organizer/scripts/arrange_desktop.py <desktop_path> --strategy tidy -o /tmp/desktop_plan.jsonStrategies:tidy(group into folders),minimal(move everything except shortcuts),archive(move to dated folder). - Review: Check
/tmp/desktop_plan.jsonto see what stays (shortcuts) and what moves. - Execute:
python /home/ubuntu/skills/file-organizer/scripts/arrange_desktop.py <desktop_path> --strategy tidy --execute
3. Intelligent Renaming Workflow
When a user asks to "fix filenames" or "standardize names":
- Scan:
python /home/ubuntu/skills/file-organizer/scripts/scan_files.py <target_dir> -o /tmp/scan.json - Plan:
python /home/ubuntu/skills/file-organizer/scripts/rename_files.py /tmp/scan.json --strategy clean -o /tmp/rename.jsonStrategies:clean(remove clutter/copies),standardize(enforce snake_case, etc.),date-prefix,sequential. - Execute:
python /home/ubuntu/skills/file-organizer/scripts/rename_files.py /tmp/scan.json --strategy clean --execute
Script Reference
scan_files.py
The foundation of all other scripts. Scans a directory and produces a comprehensive JSON inventory.
Usage: python /home/ubuntu/skills/file-organizer/scripts/scan_files.py <dir> -o <scan.json>
find_duplicates.py
Finds exact duplicates using SHA-256 hashing. Safe and read-only.
Usage: python /home/ubuntu/skills/file-organizer/scripts/find_duplicates.py <scan.json> -o <dups.json>
cleanup_files.py
Identifies and safely removes OS junk (.DS_Store, thumbs.db), temp files, and empty files.
Usage: python /home/ubuntu/skills/file-organizer/scripts/cleanup_files.py <scan.json> --execute --trash-dir <path>
generate_plan.py & organize_files.py
Generates an organization plan (by category, extension, or date) and executes it. Usage:
python /home/ubuntu/skills/file-organizer/scripts/generate_plan.py <scan.json> --strategy category --dest <dest> -o <plan.json>python /home/ubuntu/skills/file-organizer/scripts/organize_files.py <plan.json> --execute --log <log.json>
rename_files.py
Cleans up messy names (e.g., "document copy (1).txt" -> "document.txt") or standardizes them.
Usage: python /home/ubuntu/skills/file-organizer/scripts/rename_files.py <scan.json> --strategy clean --execute
arrange_desktop.py
Specialized script for desktops. Keeps shortcuts and pinned items, moves clutter to organized folders.
Usage: python /home/ubuntu/skills/file-organizer/scripts/arrange_desktop.py <desktop_path> --strategy minimal --execute
undo_operations.py
Reverses any executed plan (moves, renames) using the generated log file.
Usage: python /home/ubuntu/skills/file-organizer/scripts/undo_operations.py <log.json> --execute
Best Practices
- Always read the report: Generate a Markdown report first (
generate_report.py) to understand the scale of the mess before acting. - Use
--dry-run: When in doubt, run the execute scripts without--executefirst to preview the actions. - Save logs: Always use
--log <file.json>when executing moves or renames so you can undo them if the user changes their mind.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/arrange_desktop.py
- scripts/cleanup_files.py
- scripts/find_duplicates.py
- scripts/generate_plan.py
- scripts/generate_report.py
- scripts/organize_files.py
- scripts/rename_files.py
- scripts/scan_files.py
- scripts/undo_operations.py
FAQ
Что делает скилл file-organizer?
Comprehensive file organization suite. Use for cleaning up messy folders, arranging the desktop, finding duplicates, renaming files intelligently, and categorizing files by type or date. Includes safety features like dry-run mode and undo capabilities.
Как установить скилл file-organizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл file-organizer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…