file-organizer
Organizes files by type into categorized folders. Use when user asks to "organize files", "sort files by type", "clean up this directory", or "categorize these files".
What this skill does
# File Organizer Skill Automatically organizes files into folders by type, making directories cleaner and easier to navigate. ## When to Use This skill activates when the user wants to organize files: - "Organize files in this directory" - "Sort these files by type" - "Clean up my Downloads folder" - "Categorize files into folders" - "Organize my project files" ## Instructions ### Step 1: Analyze the Directory First, scan the target directory to understand what files are present: - List all files - Identify file types - Count files per category - Note any existing organization ### Step 2: Determine Organization Strategy **By File Type (Default):** ``` Images/ - .jpg, .png, .gif, .svg, .webp, .ico Documents/ - .pdf, .doc, .docx, .txt, .md, .rtf Videos/ - .mp4, .avi, .mov, .mkv, .webm Audio/ - .mp3, .wav, .flac, .m4a, .ogg Archives/ - .zip, .tar, .gz, .rar, .7z Code/ - .js, .py, .java, .cpp, .html, .css Data/ - .json, .xml, .csv, .yaml, .sql Executables/ - .exe, .app, .dmg, .deb Others/ - Everything else ``` **Alternative Strategies:** - By project (group related files) - By date (today, this week, this month, older) - By size (small, medium, large) - Custom categories ### Step 3: Ask for Confirmation **IMPORTANT:** Always confirm before moving files! Show the user: - What files will be moved - Where they will go - How many files in each category Example: ``` I'll organize 47 files into the following structure: ๐ Images/ (12 files) - photo1.jpg, screenshot.png, logo.svg, ... ๐ Documents/ (15 files) - report.pdf, notes.txt, readme.md, ... ๐ Videos/ (5 files) - tutorial.mp4, demo.mov, ... ๐ Code/ (8 files) - script.js, app.py, style.css, ... ๐ Archives/ (3 files) - backup.zip, data.tar.gz, ... ๐ Others/ (4 files) - unknown.xyz, file.tmp, ... Proceed with organization? (y/n) ``` Wait for user confirmation before proceeding. ### Step 4: Create Folders and Move Files Only after confirmation: 1. Create category folders if they don't exist 2. Move files to appropriate folders 3. Handle naming conflicts (don't overwrite) 4. Keep track of what was moved ### Step 5: Report Results Show what was done: ``` โ Organization complete! Moved 47 files: - 12 images โ Images/ - 15 documents โ Documents/ - 5 videos โ Videos/ - 8 code files โ Code/ - 3 archives โ Archives/ - 4 others โ Others/ Your directory is now organized! ``` ## File Type Categories ### Images ``` .jpg, .jpeg, .png, .gif, .svg, .webp, .bmp, .ico, .tiff ``` ### Documents ``` .pdf, .doc, .docx, .txt, .md, .rtf, .odt, .pages ``` ### Spreadsheets ``` .xlsx, .xls, .csv, .ods, .numbers ``` ### Presentations ``` .ppt, .pptx, .key, .odp ``` ### Videos ``` .mp4, .avi, .mov, .mkv, .webm, .flv, .wmv, .m4v ``` ### Audio ``` .mp3, .wav, .flac, .m4a, .ogg, .wma, .aac ``` ### Archives ``` .zip, .tar, .gz, .rar, .7z, .bz2, .xz ``` ### Code/Development ``` .js, .ts, .py, .java, .cpp, .c, .h, .cs, .rb, .go, .rs, .php, .swift ``` ### Web Files ``` .html, .css, .scss, .sass, .less, .jsx, .tsx, .vue ``` ### Data Files ``` .json, .xml, .yaml, .yml, .toml, .ini, .sql, .db ``` ### Executables ``` .exe, .app, .dmg, .deb, .rpm, .msi, .sh, .bat ``` ## Examples ### Example 1: Basic Organization **User:** "Organize the files in my Downloads folder" **Response:** ``` Analyzing Downloads folder... Found 23 files: - 8 images (jpg, png) - 6 PDFs - 3 zip files - 4 videos (mp4) - 2 other files I'll organize them like this: ๐ Images/ (8 files) - vacation-photo.jpg - screenshot-2024.png - logo-design.png [... 5 more] ๐ Documents/ (6 files) - invoice-march.pdf - book-chapter.pdf [... 4 more] ๐ Archives/ (3 files) - project-backup.zip - photos.zip - code-samples.zip ๐ Videos/ (4 files) - tutorial.mp4 - meeting-recording.mp4 [... 2 more] ๐ Others/ (2 files) - data.tmp - notes.unknown Proceed with this organization? (Type 'yes' to confirm) ``` ### Example 2: Custom Categories **User:** "Organize files but put all media (images and videos) together" **Response:** ``` Analyzing directory with custom categories... I'll use these categories: - Media/ (images + videos) - Documents/ (all documents) - Code/ (development files) - Archives/ (compressed files) - Others/ Found 34 files: ๐ Media/ (15 files) Images: photo1.jpg, graphic.png, logo.svg Videos: clip.mp4, demo.mov ๐ Documents/ (12 files) - report.pdf, notes.txt, readme.md, ... ๐ Code/ (5 files) - app.js, styles.css, index.html, ... ๐ Archives/ (2 files) - backup.zip, files.tar.gz Proceed? (yes/no) ``` ### Example 3: Handle Conflicts **User:** "Organize this folder" **Response:** ``` Analyzing folder... โ ๏ธ Note: Some folders already exist - Images/ folder exists with 5 files - Documents/ folder exists with 3 files I'll move files without overwriting existing ones. If a file with the same name exists, I'll rename it: - photo.jpg โ photo-2.jpg (if photo.jpg exists) Planning to organize 20 new files: ๐ Images/ (7 new files) Will be added to existing Images/ folder ๐ Documents/ (8 new files) Will be added to existing Documents/ folder ๐ Videos/ (5 new files) New folder will be created Proceed? (yes/no) ``` ## Safety Features ### Always Confirm First Never move files without user approval: ```yaml Before moving files: 1. Show what will be moved 2. Show where it will go 3. Warn about conflicts 4. Wait for confirmation ``` ### Handle Naming Conflicts If file already exists: ```bash # Don't overwrite! # Instead, rename: file.txt โ file-2.txt ``` ### Preserve File Integrity - Don't modify file contents - Keep file permissions - Maintain timestamps - Don't corrupt files ### Provide Undo Information After organizing, note: ``` To undo this organization: 1. Select all files in subdirectories 2. Move them back to parent directory 3. Delete empty folders Or use: /undo-organization command ``` ## Tips ### For Best Results - Work on one directory at a time - Back up important files first - Test with a small folder first - Review the plan before confirming ### For Custom Organization Tell the skill your preferences: - "Put code and web files together" - "Create a folder for work documents" - "Keep all media files in one place" ### For Large Directories - Organize by date first, then by type - Consider creating subfolders - May want to organize in stages ## Common Use Cases ### Downloads Folder ``` Organize by type, move old files to archive ``` ### Project Directory ``` Organize by function: source/, tests/, docs/, configs/ ``` ### Media Collection ``` Organize photos by date, videos by type ``` ### Work Files ``` Organize by project or client ``` ## Bash Commands Used ### List files: ```bash ls -la ``` ### Create folder: ```bash mkdir -p "FolderName" ``` ### Move files: ```bash mv "source.ext" "Destination/source.ext" ``` ### Handle conflicts: ```bash # Check if file exists before moving if [ -f "Destination/file.ext" ]; then mv "file.ext" "Destination/file-2.ext" else mv "file.ext" "Destination/file.ext" fi ``` ## Edge Cases ### Empty Directory ``` โจ This directory is already clean! No files to organize. ``` ### All Files Same Type ``` All 15 files are images. Would you like to: 1. Organize by date 2. Organize by size 3. Leave as is ``` ### Hidden Files ``` Found 3 hidden files (.env, .gitignore, .config) These are typically important config files. Organize them? (yes/no/skip) ``` ### Symbolic Links ``` โ ๏ธ Found 2 symbolic links Moving these could break links. Recommended action: - Skip symbolic links - Leave in original location ``` ## Remember - **Always ask permission**: Never move files without confirmation - **Show the plan**: User should know exactly what will happen - **Handle conflicts**: Don't overwrite existing files - **Be safe**: Preserve file integrity - **Provide context**: Explain what you're doing and why - **Make it reversible**: Provide undo instruction
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.