Intelligently organizes files and folders by understanding context, finding duplicates, and suggesting better organizational structures. Use when user wants to clean up directories, organize downloads, remove duplicates, or restructure projects.
Add this skill
npx mdskills install sickn33/file-organizerComprehensive file organization with clear step-by-step instructions and safety guardrails
1---2name: file-organizer3description: Intelligently organizes files and folders by understanding context, finding duplicates, and suggesting better organizational structures. Use when user wants to clean up directories, organize downloads, remove duplicates, or restructure projects.4---56# File Organizer78## When to Use This Skill910- Your Downloads folder is a chaotic mess11- You can't find files because they're scattered everywhere12- You have duplicate files taking up space13- Your folder structure doesn't make sense anymore14- You want to establish better organization habits15- You're starting a new project and need a good structure16- You're cleaning up before archiving old projects1718## What This Skill Does19201. **Analyzes Current Structure**: Reviews your folders and files to understand what you have212. **Finds Duplicates**: Identifies duplicate files across your system223. **Suggests Organization**: Proposes logical folder structures based on your content234. **Automates Cleanup**: Moves, renames, and organizes files with your approval245. **Maintains Context**: Makes smart decisions based on file types, dates, and content256. **Reduces Clutter**: Identifies old files you probably don't need anymore2627## Instructions2829When a user requests file organization help:30311. **Understand the Scope**3233 Ask clarifying questions:3435 - Which directory needs organization? (Downloads, Documents, entire home folder?)36 - What's the main problem? (Can't find things, duplicates, too messy, no structure?)37 - Any files or folders to avoid? (Current projects, sensitive data?)38 - How aggressively to organize? (Conservative vs. comprehensive cleanup)39402. **Analyze Current State**4142 Review the target directory:4344 ```bash45 # Get overview of current structure46 ls -la [target_directory]4748 # Check file types and sizes49 find [target_directory] -type f -exec file {} \; | head -205051 # Identify largest files52 du -sh [target_directory]/* | sort -rh | head -205354 # Count file types55 find [target_directory] -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn56 ```5758 Summarize findings:5960 - Total files and folders61 - File type breakdown62 - Size distribution63 - Date ranges64 - Obvious organization issues65663. **Identify Organization Patterns**6768 Based on the files, determine logical groupings:6970 **By Type**:7172 - Documents (PDFs, DOCX, TXT)73 - Images (JPG, PNG, SVG)74 - Videos (MP4, MOV)75 - Archives (ZIP, TAR, DMG)76 - Code/Projects (directories with code)77 - Spreadsheets (XLSX, CSV)78 - Presentations (PPTX, KEY)7980 **By Purpose**:8182 - Work vs. Personal83 - Active vs. Archive84 - Project-specific85 - Reference materials86 - Temporary/scratch files8788 **By Date**:8990 - Current year/month91 - Previous years92 - Very old (archive candidates)93944. **Find Duplicates**9596 When requested, search for duplicates:9798 ```bash99 # Find exact duplicates by hash100 find [directory] -type f -exec md5 {} \; | sort | uniq -d101102 # Find files with similar names103 find [directory] -type f -printf '%f\n' | sort | uniq -d104105 # Find similar-sized files106 find [directory] -type f -printf '%s %p\n' | sort -n107 ```108109 For each set of duplicates:110111 - Show all file paths112 - Display sizes and modification dates113 - Recommend which to keep (usually newest or best-named)114 - **Important**: Always ask for confirmation before deleting1151165. **Propose Organization Plan**117118 Present a clear plan before making changes:119120 ```markdown121 # Organization Plan for [Directory]122123 ## Current State124125 - X files across Y folders126 - [Size] total127 - File types: [breakdown]128 - Issues: [list problems]129130 ## Proposed Structure131132 [Directory]/133 ├── Work/134 │ ├── Projects/135 │ ├── Documents/136 │ └── Archive/137 ├── Personal/138 │ ├── Photos/139 │ ├── Documents/140 │ └── Media/141 └── Downloads/142 ├── To-Sort/143 └── Archive/144145 ## Changes I'll Make146147 1. **Create new folders**: [list]148 2. **Move files**:149 - X PDFs → Work/Documents/150 - Y images → Personal/Photos/151 - Z old files → Archive/152 3. **Rename files**: [any renaming patterns]153 4. **Delete**: [duplicates or trash files]154155 ## Files Needing Your Decision156157 - [List any files you're unsure about]158159 Ready to proceed? (yes/no/modify)160 ```1611626. **Execute Organization**163164 After approval, organize systematically:165166 ```bash167 # Create folder structure168 mkdir -p "path/to/new/folders"169170 # Move files with clear logging171 mv "old/path/file.pdf" "new/path/file.pdf"172173 # Rename files with consistent patterns174 # Example: "YYYY-MM-DD - Description.ext"175 ```176177 **Important Rules**:178179 - Always confirm before deleting anything180 - Log all moves for potential undo181 - Preserve original modification dates182 - Handle filename conflicts gracefully183 - Stop and ask if you encounter unexpected situations1841857. **Provide Summary and Maintenance Tips**186187 After organizing:188189 ```markdown190 # Organization Complete! ✨191192 ## What Changed193194 - Created [X] new folders195 - Organized [Y] files196 - Freed [Z] GB by removing duplicates197 - Archived [W] old files198199 ## New Structure200201 [Show the new folder tree]202203 ## Maintenance Tips204205 To keep this organized:206207 1. **Weekly**: Sort new downloads208 2. **Monthly**: Review and archive completed projects209 3. **Quarterly**: Check for new duplicates210 4. **Yearly**: Archive old files211212 ## Quick Commands for You213214 # Find files modified this week215216 find . -type f -mtime -7217218 # Sort downloads by type219220 [custom command for their setup]221222 # Find duplicates223224 [custom command]225 ```226227 Want to organize another folder?228229## Best Practices230231### Folder Naming232233- Use clear, descriptive names234- Avoid spaces (use hyphens or underscores)235- Be specific: "client-proposals" not "docs"236- Use prefixes for ordering: "01-current", "02-archive"237238### File Naming239240- Include dates: "2024-10-17-meeting-notes.md"241- Be descriptive: "q3-financial-report.xlsx"242- Avoid version numbers in names (use version control instead)243- Remove download artifacts: "document-final-v2 (1).pdf" → "document.pdf"244245### When to Archive246247- Projects not touched in 6+ months248- Completed work that might be referenced later249- Old versions after migration to new systems250- Files you're hesitant to delete (archive first)251
Full transparency — inspect the skill content before installing.