# Folder Organizer: Read-First File Cleanup

> Your agent reads each file before it sorts, dedupes by content, and never hard-deletes anything.

Folder Organizer: Read-First File Cleanup is a free AI agent skill on Agensi by Minerva, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Minerva](https://www.agensi.io/creators/minerva)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Uses: 4
- Version: 1.0
- Last updated: 2026-10-06
- Security: scan passed (2026-10-06); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/folder-organizer-read-first-file-cleanup
- Tags: automation, file-management, productivity, file-organization, deduplication

## About this skill

Messy folders are hard to clean up because filenames lie. A file named `final` is often a draft, an `invoice.html` can be a login page, and three copies of `report_v2.xlsx` may contain three different things. Tools that sort by name put files in the wrong place and can delete the wrong one. Folder Organizer has your agent open each file first and work out what it is before deciding where it goes.

The skill runs in five phases. It profiles the folder (size hotspots, file types, biggest files, date span) and finds duplicates by content hash, not by name. It separates true byte-for-byte duplicates from version chains like `draft → v2 → final`. Then it pulls a content signature from every file: HTML titles, Office sheet and slide names, a PDF's first page, photo EXIF data, audio and video duration. If a file can't be read, it falls back to basic metadata instead of failing.

There's no built-in set of categories. The skill asks how *you* want things grouped (by project, client, date, type or topic), then proposes a structure and a file-by-file mapping for you to approve. Renaming is optional and works the same way. You lock the naming rules first, review an old → new table, and only then is anything renamed. The new names say what's actually inside each file.

It's built to be safe. Nothing is ever hard-deleted. Removals are moved to a dated staging folder that you empty yourself, and every destructive step pauses for your approval with the exact list of files. It never decides which version is "final" for you, and it flags sensitive files (IDs, contracts, bank details) that are sitting loose in a work folder.

It works on Desktop, Downloads, project drives, photo and asset libraries, and mixed folders. The bundled scripts use only the Python standard library, run on macOS, Linux and Windows, and handle filenames with spaces or CJK characters. Three tools are optional and add deeper reading: `pdftotext`, `exiftool` and `ffprobe`.

## Known limitations

Not for code repository refactoring or file format conversion. Requires local Python environment. Deletions are moved to a staging folder rather than erased.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Folder Organizer: Read-First File Cleanup skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this agent differ from standard file sorting tools?

Unlike basic tools that look at filenames, this agent opens and reads every file to understand its true content, ensuring an "invoice.html" that is actually a login page doesn't end up in your tax folder. It identifies duplicates by content hash rather than name and flags sensitive documents like IDs or contracts for special handling.

### Which platforms and AI agents are supported?

The skill works on Windows, macOS, and Linux, and is compatible with any AI agent capable of executing Python scripts. It is designed to handle complex file systems, including those with CJK characters or spaces in filenames.

### Is there a risk of the agent accidentally deleting my important files?

The agent never performs "hard deletes"; instead, it moves duplicates or unwanted files to a dated staging folder for you to review and empty manually. Furthermore, it generates a full mapping table of every proposed move or rename, requiring your explicit approval before a single file is touched.

### What is included in the purchase?

You receive the core Python-based automation scripts, the agentic reasoning prompts for content classification, and a setup guide. While it works out of the box using the Python standard library, it also includes instructions for integrating optional tools like `exiftool` or `pdftotext` for deeper file analysis.

### Do I have to use a pre-set folder structure?

No, the agent is flexible. It analyzes your folder and asks how you prefer to group items—such as by project, client, or topic—then proposes a custom structure based on your specific workflow for you to approve or adjust.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
