Home
cd ../playbooks
File OrganizationBeginner

Auto-Organize Downloads Folder

Automatically sort and organize files in your Downloads folder by type, date, or custom rules.

5 minutes
By communitySource
#files#organization#automation#downloads

Your Downloads folder has 2,000 files and you can never find anything. Screenshots mixed with invoices mixed with random PDFs — and every 'I'll organize it later' just makes it worse.

Who it's for: anyone with a chaotic Downloads folder, professionals who download dozens of files daily, students with scattered course materials, freelancers juggling client files, remote workers managing shared documents

Example

"Organize my Downloads folder" → 2,000 files sorted into Images, Documents, Videos, Installers, and Archives subfolders, with duplicates flagged, old files archived by year, and a summary of what went where

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Downloads Organizer

## Goal
Organize files in this folder into subfolders by type.

## Rules
- Images (.jpg, .png, .gif, .webp, .svg) → Images/
- Documents (.pdf, .doc, .docx, .txt, .md) → Documents/
- Videos (.mp4, .mov, .avi, .mkv) → Videos/
- Audio (.mp3, .wav, .flac, .m4a) → Audio/
- Archives (.zip, .rar, .7z, .tar.gz) → Archives/
- Code (.js, .ts, .py, .html, .css) → Code/
- Everything else → Other/

## Instructions
1. Create the subfolders if they don't exist
2. Move each file to the appropriate folder
3. Don't move folders, only files
4. Preserve original filenames
5. Report what was moved when done
README.md

What This Does

This playbook helps you automatically organize your messy Downloads folder. Claude Code will sort files into subfolders based on file type (images, documents, videos, etc.) and optionally by date.

Prerequisites

  • Claude Code installed and configured
  • A Downloads folder with files to organize

Step-by-Step Setup

Step 1: Navigate to your Downloads folder

Open your terminal and navigate to your Downloads folder:

cd ~/Downloads

Step 2: Create the CLAUDE.md file

Create a new file called CLAUDE.md and paste the template above.

Step 3: Run Claude Code

In your terminal, run:

claude

Then type: "Organize my downloads according to the CLAUDE.md rules"

Example

Before:

Downloads/
├── vacation-photo.jpg
├── report.pdf
├── song.mp3
├── archive.zip
├── script.py
└── random-file.xyz

After:

Downloads/
├── Images/
│   └── vacation-photo.jpg
├── Documents/
│   └── report.pdf
├── Audio/
│   └── song.mp3
├── Archives/
│   └── archive.zip
├── Code/
│   └── script.py
└── Other/
    └── random-file.xyz

Tips & Variations

  • Add date organization: Modify the rules to include year/month subfolders like Images/2026/01/
  • Custom categories: Add your own file types and folders based on your workflow
  • Dry run first: Ask Claude to "show me what would be moved without actually moving anything" first

Troubleshooting

Problem: Files aren't being moved

Solution: Make sure Claude Code has file system permissions. Check that you're running it from the correct directory.

Problem: Some files go to "Other" unexpectedly

Solution: Add the file extension to the appropriate category in the CLAUDE.md rules.

$Related Playbooks

File Organization

Chat with PDF Documents

Answer questions about PDF content, summarize, and extract information

10 minutes
Intermediate
File Organization

Business Analytics Reporter

Analyze sales and revenue data from CSV files to identify weak areas, generate statistical insights, and provide strategic improvement recommendations.

10 minutes
Intermediate
File Organization

Bulk Image Extractor

Extract all images from Google Docs, PDFs, websites, and other documents in high resolution.

5 minutes
Beginner
File Organization

Document Parser

Parse complex documents while preserving structure, tables, and figures using IBM's docling library.

10 minutes
Advanced
File Organization

Document Processing Pipeline

Chain document operations into reusable pipelines

10 minutes
Advanced
File Organization

Word Document Manipulation

Create, edit, and manipulate Word documents programmatically using python-docx

10 minutes
Advanced
File Organization

7-Minute Digital Declutter

Complete digital cleanup of photos, documents, and downloads in 7 minutes with intelligent recommendations.

5 minutes
Beginner
File Organization

Disk Space Analyzer

Find exactly what's eating your disk space with categorized breakdown and prioritized cleanup recommendations.

5 minutes
Beginner
File Organization

CSV Data Visualizer

Create professional data visualizations, statistical reports, and interactive dashboards from CSV files for analysis and presentations.

5 minutes
Beginner
File Organization

Data Analyst Toolkit — CSV Analysis & Dashboard Generator

Analyze CSV and Excel data with automatic missing value detection, intelligent imputation, and interactive Plotly dashboards. Generate exploratory data analysis reports in minutes with Claude Code.

10 minutes
Intermediate
File Organization

Duplicate File Detector

Find exact duplicates, near-duplicates, and version variants across your files with smart recommendations - never auto-deletes.

5 minutes
Beginner
File Organization

CSV & Excel Data Analyst

Ask questions about your spreadsheets in plain English. Get insights, summaries, and visualizations without knowing formulas or pivot tables.

5 minutes
Beginner

Browse all File Organization playbooks →