# File Organizer

> Organize folders by file type, find duplicate files by hash, and batch-rename files with Python. Use when the user or agent wants to tidy a messy folder, find wasted space, or rename many files at once.

File Organizer is a free AI agent skill on Agensi by megaartaiking-cmd, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [megaartaiking-cmd](https://www.agensi.io/creators/ahmad-hasnain)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/file-organizer
- Tags: automation, python, productivity, filesystem

## About this skill

Managing a cluttered Downloads folder or a disorganized media library usually involves hours of tedious manual dragging and dropping. This skill automates file management using a local Python utility to sort, de-duplicate, and rename files based on content and patterns.

### What it does
- **Automatic organization** sorts files into subdirectories based on their file extensions.
- **Content-based de-duplication** identifies identical files using SHA-256 hashes rather than just matching filenames.
- **Pattern-based renaming** updates large batches of files using variables for numbering, original names, and extensions.
- **Space analysis** calculates exactly how much storage is being wasted by duplicate files.
- **Safety-first execution** defaults to dry runs for every destructive or moving action to prevent accidental data loss.

### How it works
1. **Identify target** by specifying the local directory path for processing.
2. **Preview changes** using a dry run command to see exactly which files will be moved or renamed.
3. **Execute operations** by adding the `--apply` flag once the previewed changes are confirmed.
4. **Scan for duplicates** to generate a report of redundant files and the total bytes they occupy.

### Frameworks & tools
This skill uses a local Python script `filetool.py` and standard system paths. It operates entirely locally without cloud uploads.

### Why this beats prompting it yourself
Writing reliable file-handling scripts is prone to errors like overwriting files or misidentifying duplicates. This skill enforces mandatory dry runs and uses content hashing to ensure data integrity during batch operations.

### Use cases
- Clean up a bloated Downloads folder by grouping documents, images, and installers.
- Identify duplicate high-resolution photos across nested subdirectories to reclaim disk space.
- Standardize raw camera filenames into a structured, numbered format for project archiving.

### Known limitations
Does not delete files automatically. Skips operations if a target filename already exists. Avoids system or code directories unless explicitly confirmed.

## Requires

- Python 3.10+

## 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 File Organizer 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

### Which AI agents can I use this skill with?

The skill requires a local Python environment and works with any AI agent capable of executing local scripts or terminal commands. It is optimized for agents with filesystem access privileges.

### Is there a risk of losing my files during the organization process?

Safety is a priority; the skill defaults to 'dry run' mode, showing you exactly what will happen before any files are moved. It also uses SHA-256 hashing to ensure files are truly identical before flagging them as duplicates.

### What exactly is included in the purchase?

You receive the `filetool.py` script, a comprehensive integration guide for your AI agent, and a set of predefined command templates for sorting, renaming, and de-duplication.

### Does this skill require an internet connection or cloud access to scan my files?

No, this skill operates entirely offline on your local machine. Your file names and directory structures are never uploaded to the cloud, ensuring total privacy.

### Can I use this to organize system folders or programming code directories?

By default, the skill skips system-critical folders and hidden directories to prevent accidental damage to your OS. You can manually whitelist specific folders if you need to organize technical project files.

---

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.
