file_organization

Organize local file collections by detecting duplicates, merging, splitting, and classifying files.

133|6|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/MassLab-SII/open-agent-skills --skill file-organization-masslab-sii
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file_organization
Source: https://github.com/MassLab-SII/open-agent-skills/tree/main/portable-skills/file_organization
Command: npx skills add https://github.com/MassLab-SII/open-agent-skills --skill file-organization-masslab-sii

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mcp, and includes scripts (resource) components.

What problem does it solve?

This Skill helps automate the organization of file collections by detecting duplicates, merging or splitting files, pattern matching, and classifying by size or creation time, reducing clutter and manual effort.

Core Features & Use Cases

  • Duplicate detection: Find and move or consolidate files with identical content.
  • File merging: Combine the smallest text files into a single consolidated file for reporting.
  • File splitting: Break large files into evenly sized parts for distribution or processing.
  • Pattern matching: Locate files containing specific substrings or content patterns.
  • Time and size classification: Organize files into folders based on creation time or file size.
  • Use Case: Clean a project directory with hundreds of small files by grouping duplicates, merging logs, and classifying by date to simplify backups.

Quick Start

Run a simple workflow to organize a directory, for example:

  • python scripts/find_duplicates.py /path/to/your/dir
  • python scripts/merge_files.py /path/to/your/dir --count 5 --output merged_logs.txt
  • python scripts/split_file.py /path/to/your/dir large_log.txt --parts 8 --output-dir split_logs
  • python scripts/pattern_matching.py /path/to/your/dir large_text.txt --min-length 30 --output results.txt
  • python scripts/classify_files_by_size.py /path/to/your/dir
  • python scripts/classify_files_by_time.py /path/to/your/dir

Frequently Asked Questions about file_organization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically detect duplicate files and clean up a cluttered directory?

You can automatically find duplicate files and clean up cluttered directories by running Python scripts that use the MCP filesystem wrapper to compare file contents and move duplicates within a specified base directory.

What is the best way to merge small text files into a single consolidated report?

The best way to merge small text files into a consolidated report is using a Python merging script that combines the smallest files in a directory into a single output file, simplifying backups and reporting.

Can I split large files into evenly sized parts for easier distribution?

Yes, you can split large files into evenly sized parts for distribution or processing by executing a Python splitting script that divides a target file into a specified number of output parts.

Does this file organization approach support classifying files by creation time or size?

Yes, the file organization approach supports classifying files by creation time or size, using Python scripts to automatically group and move files into categorized folders based on their metadata.

Do I need the MCP filesystem wrapper to organize local file collections?

Yes, you need the MCP filesystem wrapper because the Python scripts rely on it as a dependency to read, write, and move files within your local base directory during the organization process.

How do I perform pattern matching to locate files containing specific content substrings?

To perform pattern matching and locate files with specific substrings, you run a Python script that searches directory contents based on minimum length requirements and outputs the matching results to a text file.