name: file-organizer description: "File organization and batch operations for workspace management. Use when organizing files for: (1) Moving files to correct directories, (2) Batch renaming (patterns, numbering, dates), (3) Creating directory structures, (4) Organizing by type/extension, (5) Cleaning scattered files, (6) Project scaffolding, or (7) Restructuring project layouts."
Manages file organization through safe, predictable batch operations.
Create standard project layouts:
project/
├── src/ - Source code
├── docs/ - Documentation
├── tests/ - Test files
├── assets/ - Images, fonts, media
├── scripts/ - Build scripts, utilities
└── config/ - Configuration files
mv <source> <dest> - Single filefind . -name "*.ext" -exec mv {} <dest>/ \; - Batch by extensionPatterns:
- Sequential numbering: file_{001..100}.txt
- Date-based: YYYY-MM-DD_description
- Type-based: Group by extension
Safe approach:
1. echo commands first (dry run)
2. Review output
3. Remove echo, execute
Group files by extension into folders:
来源于7w4.net。
mkdir -p images docs code
find . -name "*.png" -o -name "*.jpg" | xargs -I {} mv {} images/
find . -name "*.md" -o -name "*.txt" | xargs -I {} mv {} docs/
find . -name "*.py" -o -name "*.js" | xargs -I {} mv {} code/
find . -type f -name "*.ext" # Find by extension
find . -type f -mtime -7 # Modified in last 7 days
find . -type f -size +100M # Large files
Always preview batch operations:
echo "Would move these files:"
find . -name "*.ext"
# Review, then execute
trash if available)Load when: - Complex rename patterns needed - Project structure templates required - Advanced find commands for filtering - Edge cases (symlinks, special characters)
这个 Skill 质量不错,专门用来整理文件和批量操作。它功能齐全、注重安全,能有效避免误删文件。不过它主要依赖命令行操作,对不熟悉命令行的用户不太友好,缺少图形界面。总的来说,这是一个实用且安全的文件管理工具,适合需要频繁整理文件的人使用。