File Organizer
When to Use This Skill
- Your Downloads folder is a chaotic mess
- You can't find files because they're scattered everywhere
- You have duplicate files taking up space
- Your folder structure doesn't make sense anymore
- You want to establish better organization habits
- You're starting a new project and need a good structure
- You're cleaning up before archiving old projects
What This Skill Does
- Analyzes Current Structure: Reviews your folders and files to understand what you have
- Finds Duplicates: Identifies duplicate files across your system
- Suggests Organization: Proposes logical folder structures based on your content
- Automates Cleanup: Moves, renames, and organizes files with your approval
- Maintains Context: Makes smart decisions based on file types, dates, and content
- Reduces Clutter: Identifies old files you probably don't need anymore
Instructions
When a user requests file organization help:
Understand the Scope
Ask clarifying questions:
- Which directory needs organization? (Downloads, Documents, entire home folder?)
- What's the main problem? (Can't find things, duplicates, too messy, no structure?)
- Any files or folders to avoid? (Current projects, sensitive data?)
- How aggressively to organize? (Conservative vs. comprehensive cleanup)
Analyze Current State
Review the target directory:
# Get overview of current structure
ls -la [target_directory]
# Check file types and sizes
find [target_directory] -type f -exec file {} \; | head -20
# Identify largest files
du -sh [target_directory]/* | sort -rh | head -20
# Count file types
find [target_directory] -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
Summarize findings:
- Total files and folders
- File type breakdown
- Size distribution
- Date ranges
- Obvious organization issues
Identify Organization Patterns
Based on the files, determine logical groupings:
By Type:
- Documents (PDFs, DOCX, TXT)
- Images (JPG, PNG, SVG)
- Videos (MP4, MOV)
- Archives (ZIP, TAR, DMG)
- Code/Projects (directories with code)
- Spreadsheets (XLSX, CSV)
- Presentations (PPTX, KEY)
By Purpose:
- Work vs. Personal
- Active vs. Archive
- Project-specific
- Reference materials
- Temporary/scratch files
By Date:
- Current year/month
- Previous years
- Very old (archive candidates)
Find Duplicates
When requested, search for duplicates:
# Find exact duplicates by hash
find [directory] -type f -exec md5 {} \; | sort | uniq -d
# Find files with similar names
find [directory] -type f -printf '%f\n' | sort | uniq -d
# Find similar-sized files
find [directory] -type f -printf '%s %p\n' | sort -n
For each set of duplicates:
- Show all file paths
- Display sizes and modification dates
- Recommend which to keep (usually newest or best-named)
- Important: Always ask for confirmation before deleting
Propose Organization Plan
Present a clear plan before making changes:
# Organization Plan for [Directory]
## Current State
- X files across Y folders
- [Size] total
- File types: [breakdown]
- Issues: [list problems]
## Proposed Structure
[Directory]/
├── Work/
│ ├── Projects/
│ ├── Documents/
│ └── Archive/
├── Personal/
│ ├── Photos/
│ ├── Documents/
│ └── Media/
└── Downloads/
├── To-Sort/
└── Archive/
## Changes I'll Make
1. **Create new folders**: [list]
2. **Move files**:
- X PDFs → Work/Documents/
- Y images → Personal/Photos/
- Z old files → Archive/
3. **Rename files**: [any renaming patterns]
4. **Delete**: [duplicates or trash files]
## Files Needing Your Decision
- [List any files you're unsure about]
Ready to proceed? (yes/no/modify)
Execute Organization
After approval, organize systematically:
# Create folder structure
mkdir -p "path/to/new/folders"
# Move files with clear logging
mv "old/path/file.pdf" "new/path/file.pdf"
# Rename files with consistent patterns
# Example: "YYYY-MM-DD - Description.ext"
Important Rules:
- Always confirm before deleting anything
- Log all moves for potential undo
- Preserve original modification dates
- Handle filename conflicts gracefully
- Stop and ask if you encounter unexpected situations
Provide Summary and Maintenance Tips
After organizing:
# Organization Complete! ✨
## What Changed
- Created [X] new folders
- Organized [Y] files
- Freed [Z] GB by removing duplicates
- Archived [W] old files
## New Structure
[Show the new folder tree]
## Maintenance Tips
To keep this organized:
1. **Weekly**: Sort new downloads
2. **Monthly**: Review and archive completed projects
3. **Quarterly**: Check for new duplicates
4. **Yearly**: Archive old files
## Quick Commands for You
# Find files modified this week
find . -type f -mtime -7
# Sort downloads by type
[custom command for their setup]
# Find duplicates
[custom command]
Want to organize another folder?
Best Practices
Folder Naming
- Use clear, descriptive names
- Avoid spaces (use hyphens or underscores)
- Be specific: "client-proposals" not "docs"
- Use prefixes for ordering: "01-current", "02-archive"
File Naming
- Include dates: "2024-10-17-meeting-notes.md"
- Be descriptive: "q3-financial-report.xlsx"
- Avoid version numbers in names (use version control instead)
- Remove download artifacts: "document-final-v2 (1).pdf" → "document.pdf"
When to Archive
- Projects not touched in 6+ months
- Completed work that might be referenced later
- Old versions after migration to new systems
- Files you're hesitant to delete (archive first)
AGI Framework Integration
Adapted for @techwavedev/agi-agent-kit
Original source: antigravity-awesome-skills
Memory-First Protocol
Retrieve prior API design decisions, database schema choices, and error handling patterns. Cache API response templates for consistent error formatting.
# Check for prior backend/API context before starting
python3 execution/memory_manager.py auto --query "API design patterns and architecture decisions for File Organizer"
Storing Results
After completing work, store backend/API decisions for future sessions:
python3 execution/memory_manager.py store \
--content "API architecture: REST with HATEOAS, JWT auth, rate limiting at 100 req/min per tenant" \
--type decision --project <project> \
--tags file-organizer backend
Multi-Agent Collaboration
Share API contract changes with frontend agents so they update their client code, and with QA agents for test coverage.
python3 execution/cross_agent_context.py store \
--agent "<your-agent>" \
--action "Implemented API endpoints — 5 new routes with OpenAPI spec and integration tests" \
--project <project>
Agent Team: Code Review
After implementation, dispatch code_review_team for two-stage review (spec compliance + code quality) before merging.
1---2name: file-organizer3description: "6. Reduces Clutter: Identifies old files you probably don't need anymore"4risk: unknown5source: community6date_added: "2026-02-27"7---89# File Organizer1011## When to Use This Skill1213- Your Downloads folder is a chaotic mess14- You can't find files because they're scattered everywhere15- You have duplicate files taking up space16- Your folder structure doesn't make sense anymore17- You want to establish better organization habits18- You're starting a new project and need a good structure19- You're cleaning up before archiving old projects2021## What This Skill Does22231. **Analyzes Current Structure**: Reviews your folders and files to understand what you have242. **Finds Duplicates**: Identifies duplicate files across your system253. **Suggests Organization**: Proposes logical folder structures based on your content264. **Automates Cleanup**: Moves, renames, and organizes files with your approval275. **Maintains Context**: Makes smart decisions based on file types, dates, and content286. **Reduces Clutter**: Identifies old files you probably don't need anymore2930## Instructions3132When a user requests file organization help:33341. **Understand the Scope**3536 Ask clarifying questions:3738 - Which directory needs organization? (Downloads, Documents, entire home folder?)39 - What's the main problem? (Can't find things, duplicates, too messy, no structure?)40 - Any files or folders to avoid? (Current projects, sensitive data?)41 - How aggressively to organize? (Conservative vs. comprehensive cleanup)42432. **Analyze Current State**4445 Review the target directory:4647 ```bash48 # Get overview of current structure49 ls -la [target_directory]5051 # Check file types and sizes52 find [target_directory] -type f -exec file {} \; | head -205354 # Identify largest files55 du -sh [target_directory]/* | sort -rh | head -205657 # Count file types58 find [target_directory] -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn59 ```6061 Summarize findings:6263 - Total files and folders64 - File type breakdown65 - Size distribution66 - Date ranges67 - Obvious organization issues68693. **Identify Organization Patterns**7071 Based on the files, determine logical groupings:7273 **By Type**:7475 - Documents (PDFs, DOCX, TXT)76 - Images (JPG, PNG, SVG)77 - Videos (MP4, MOV)78 - Archives (ZIP, TAR, DMG)79 - Code/Projects (directories with code)80 - Spreadsheets (XLSX, CSV)81 - Presentations (PPTX, KEY)8283 **By Purpose**:8485 - Work vs. Personal86 - Active vs. Archive87 - Project-specific88 - Reference materials89 - Temporary/scratch files9091 **By Date**:9293 - Current year/month94 - Previous years95 - Very old (archive candidates)96974. **Find Duplicates**9899 When requested, search for duplicates:100101 ```bash102 # Find exact duplicates by hash103 find [directory] -type f -exec md5 {} \; | sort | uniq -d104105 # Find files with similar names106 find [directory] -type f -printf '%f\n' | sort | uniq -d107108 # Find similar-sized files109 find [directory] -type f -printf '%s %p\n' | sort -n110 ```111112 For each set of duplicates:113114 - Show all file paths115 - Display sizes and modification dates116 - Recommend which to keep (usually newest or best-named)117 - **Important**: Always ask for confirmation before deleting1181195. **Propose Organization Plan**120121 Present a clear plan before making changes:122123 ```markdown124 # Organization Plan for [Directory]125126 ## Current State127128 - X files across Y folders129 - [Size] total130 - File types: [breakdown]131 - Issues: [list problems]132133 ## Proposed Structure134135 [Directory]/136 ├── Work/137 │ ├── Projects/138 │ ├── Documents/139 │ └── Archive/140 ├── Personal/141 │ ├── Photos/142 │ ├── Documents/143 │ └── Media/144 └── Downloads/145 ├── To-Sort/146 └── Archive/147148 ## Changes I'll Make149150 1. **Create new folders**: [list]151 2. **Move files**:152 - X PDFs → Work/Documents/153 - Y images → Personal/Photos/154 - Z old files → Archive/155 3. **Rename files**: [any renaming patterns]156 4. **Delete**: [duplicates or trash files]157158 ## Files Needing Your Decision159160 - [List any files you're unsure about]161162 Ready to proceed? (yes/no/modify)163 ```1641656. **Execute Organization**166167 After approval, organize systematically:168169 ```bash170 # Create folder structure171 mkdir -p "path/to/new/folders"172173 # Move files with clear logging174 mv "old/path/file.pdf" "new/path/file.pdf"175176 # Rename files with consistent patterns177 # Example: "YYYY-MM-DD - Description.ext"178 ```179180 **Important Rules**:181182 - Always confirm before deleting anything183 - Log all moves for potential undo184 - Preserve original modification dates185 - Handle filename conflicts gracefully186 - Stop and ask if you encounter unexpected situations1871887. **Provide Summary and Maintenance Tips**189190 After organizing:191192 ```markdown193 # Organization Complete! ✨194195 ## What Changed196197 - Created [X] new folders198 - Organized [Y] files199 - Freed [Z] GB by removing duplicates200 - Archived [W] old files201202 ## New Structure203204 [Show the new folder tree]205206 ## Maintenance Tips207208 To keep this organized:209210 1. **Weekly**: Sort new downloads211 2. **Monthly**: Review and archive completed projects212 3. **Quarterly**: Check for new duplicates213 4. **Yearly**: Archive old files214215 ## Quick Commands for You216217 # Find files modified this week218219 find . -type f -mtime -7220221 # Sort downloads by type222223 [custom command for their setup]224225 # Find duplicates226227 [custom command]228 ```229230 Want to organize another folder?231232## Best Practices233234### Folder Naming235236- Use clear, descriptive names237- Avoid spaces (use hyphens or underscores)238- Be specific: "client-proposals" not "docs"239- Use prefixes for ordering: "01-current", "02-archive"240241### File Naming242243- Include dates: "2024-10-17-meeting-notes.md"244- Be descriptive: "q3-financial-report.xlsx"245- Avoid version numbers in names (use version control instead)246- Remove download artifacts: "document-final-v2 (1).pdf" → "document.pdf"247248### When to Archive249250- Projects not touched in 6+ months251- Completed work that might be referenced later252- Old versions after migration to new systems253- Files you're hesitant to delete (archive first)254255---256257<!-- AGI-INTEGRATION-START -->258259## AGI Framework Integration260261> **Adapted for [@techwavedev/agi-agent-kit](https://www.npmjs.com/package/@techwavedev/agi-agent-kit)**262> Original source: [antigravity-awesome-skills](https://github.com/sickn33/antigravity-awesome-skills)263264### Memory-First Protocol265266Retrieve prior API design decisions, database schema choices, and error handling patterns. Cache API response templates for consistent error formatting.267268```bash269# Check for prior backend/API context before starting270python3 execution/memory_manager.py auto --query "API design patterns and architecture decisions for File Organizer"271```272273### Storing Results274275After completing work, store backend/API decisions for future sessions:276277```bash278python3 execution/memory_manager.py store \279 --content "API architecture: REST with HATEOAS, JWT auth, rate limiting at 100 req/min per tenant" \280 --type decision --project <project> \281 --tags file-organizer backend282```283284### Multi-Agent Collaboration285286Share API contract changes with frontend agents so they update their client code, and with QA agents for test coverage.287288```bash289python3 execution/cross_agent_context.py store \290 --agent "<your-agent>" \291 --action "Implemented API endpoints — 5 new routes with OpenAPI spec and integration tests" \292 --project <project>293```294295### Agent Team: Code Review296297After implementation, dispatch `code_review_team` for two-stage review (spec compliance + code quality) before merging.298299<!-- AGI-INTEGRATION-END -->