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 anymore4---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)251252---253254<!-- AGI-INTEGRATION-START -->255256## AGI Framework Integration257258> **Adapted for [@techwavedev/agi-agent-kit](https://www.npmjs.com/package/@techwavedev/agi-agent-kit)**259> Original source: [antigravity-awesome-skills](https://github.com/sickn33/antigravity-awesome-skills)260261### Memory-First Protocol262263Retrieve prior API design decisions, database schema choices, and error handling patterns. Cache API response templates for consistent error formatting.264265```bash266# Check for prior backend/API context before starting267python3 execution/memory_manager.py auto --query "API design patterns and architecture decisions for File Organizer"268```269270### Storing Results271272After completing work, store backend/API decisions for future sessions:273274```bash275python3 execution/memory_manager.py store \276 --content "API architecture: REST with HATEOAS, JWT auth, rate limiting at 100 req/min per tenant" \277 --type decision --project <project> \278 --tags file-organizer backend279```280281### Multi-Agent Collaboration282283Share API contract changes with frontend agents so they update their client code, and with QA agents for test coverage.284285```bash286python3 execution/cross_agent_context.py store \287 --agent "<your-agent>" \288 --action "Implemented API endpoints — 5 new routes with OpenAPI spec and integration tests" \289 --project <project>290```291292### Agent Team: Code Review293294After implementation, dispatch `code_review_team` for two-stage review (spec compliance + code quality) before merging.295296<!-- AGI-INTEGRATION-END -->