Intelligent File Organizer
Analyze folders, detect duplicates, suggest logical arrangements, and automate cleanup with context-aware file organization.
Download this file and place it in your project folder to get started.
# Intelligent File Organizer
Help users maintain organized file structures by analyzing folders, identifying duplicates, suggesting logical arrangements, and automating cleanup tasks.
## Core Capabilities
- **Structure Analysis**: Review folders and files to understand what exists
- **Duplicate Detection**: Identify redundant files consuming storage space
- **Organization Suggestions**: Propose logical folder hierarchies based on content type and purpose
- **Automated Cleanup**: Move and rename files with user approval
- **Context-Aware Decisions**: Use file types, dates, and naming patterns to determine placement
## Workflow
### Step 1: Clarify Scope and Constraints
Before starting, ask:
- Which directory should I organize?
- Are there files that should NOT be moved?
- Should I look for duplicates?
- What organization style do you prefer?
### Step 2: Analyze Current Structure
Scan the target directory to understand:
- Total file count and size
- File type distribution
- Folder depth and complexity
- Naming patterns
- Date ranges
### Step 3: Identify Organization Patterns
Determine the best organization approach:
**By Type**
```
Documents/
├── PDFs/
├── Word/
├── Spreadsheets/
└── Text/
Images/
├── Photos/
├── Screenshots/
└── Graphics/
Videos/
Audio/
Archives/
```
**By Purpose**
```
Work/
├── Active Projects/
├── Completed/
└── Reference/
Personal/
├── Finance/
├── Health/
└── Hobbies/
```
**By Time**
```
2024/
├── Q1/
├── Q2/
├── Q3/
└── Q4/
2023/
Archive/
```
### Step 4: Search for Duplicates
When requested, identify duplicates by:
- File hash comparison (exact matches)
- Filename similarity
- File size matching
- Image perceptual hashing (for photos)
Present duplicates with:
- File locations
- File sizes
- Modification dates
- Recommendation (keep which one)
### Step 5: Present Detailed Plan
Before any changes, show:
```markdown
## Organization Plan
### Files to Move
| Current Location | New Location | Reason |
|-----------------|--------------|--------|
| /Downloads/report.pdf | /Documents/Work/Reports/ | PDF document |
| /Downloads/photo.jpg | /Images/Photos/2024/ | Photo from 2024 |
### Duplicates Found
| File | Duplicate | Recommendation |
|------|-----------|----------------|
| /Images/photo.jpg | /Downloads/photo(1).jpg | Delete duplicate |
### Summary
- Files to move: 45
- Duplicates found: 12
- Space to reclaim: 2.3 GB
Proceed with this plan? (yes/no)
```
### Step 6: Execute with Confirmation
Only proceed after explicit user approval:
- Move files to new locations
- Rename according to conventions
- Create necessary folders
- Log all operations
### Step 7: Provide Maintenance Guidance
After organizing, suggest:
- Regular cleanup schedule
- Folder naming conventions
- File naming best practices
- Automation options
## Important Safeguards
- **Always ask for confirmation before deleting**
- Maintain logs of all file movements
- Preserve original file metadata
- Never delete without explicit approval
- Offer undo capability
## Common Scenarios
### Downloads Folder Cleanup
1. Categorize by file type
2. Remove obvious duplicates
3. Archive old files
4. Create logical subfolders
### Photo Organization
1. Sort by date taken (EXIF data)
2. Group by event or location
3. Find and remove duplicates
4. Rename with consistent format
### Project Directory Structure
1. Analyze project files
2. Create standard folder hierarchy
3. Move files to appropriate locations
4. Clean up temp files
### Desktop Cleanup
1. Identify file types
2. Move to appropriate folders
3. Remove shortcuts to deleted items
4. Organize remaining items
What This Does
Intelligently organize your files and folders. Claude analyzes your directory structure, identifies duplicates, suggests logical arrangements based on content type, and automates cleanup with your approval.
Quick Start
Step 1: Identify Your Target Folder
Decide which folder needs organization (e.g., Downloads, Documents, Desktop).
Step 2: Download the Template
Click Download above, then move to your target folder:
mv ~/Downloads/CLAUDE.md ~/Downloads/
Step 3: Start Organizing
cd ~/Downloads
claude
Then say: "Organize this folder and find any duplicates"
Capabilities
| Feature | Description |
|---|---|
| Structure Analysis | Reviews folders and files to understand what you have |
| Duplicate Detection | Finds redundant files consuming storage |
| Smart Suggestions | Proposes logical hierarchies based on content |
| Automated Cleanup | Moves and renames files with your approval |
| Context Awareness | Uses file types, dates, and naming patterns |
Organization Patterns
By Type
- Documents (PDFs, Word, text files)
- Images (photos, screenshots, graphics)
- Videos (movies, clips, recordings)
- Audio (music, podcasts, recordings)
By Purpose
- Work vs Personal
- Active vs Archived
- Projects vs Reference
By Time
- Year/Month folders
- Recent vs Old
- Date-based sorting
Example Prompts
- "Organize my Downloads folder by file type"
- "Find and remove duplicate files"
- "Create a project structure for my documents"
- "Organize photos by date taken"
- "Clean up my Desktop"
Safety Features
- Confirmation Required: Always asks before deleting
- Movement Logs: Tracks all file operations
- Reversible: Can undo changes if needed
- Preview First: Shows plan before executing
Common Use Cases
| Scenario | Result |
|---|---|
| Downloads folder chaos | Clean, categorized structure |
| Duplicate photos | Storage reclaimed |
| Project files scattered | Logical project folders |
| Old files everywhere | Archived by date |
Tips
- Start with a messy folder: See the biggest impact
- Review the plan: Always check before confirming
- Keep originals: Don't delete until you're sure
- Set up maintenance: Periodic organization keeps things clean