file_organization

file_organization is a skill for Claude Code, Codex from MassLab-SII/open-agent-skills. It costs 39 tokens per session (749 once invoked), scanned A, original, Apache-2.0.

A file-organization toolkit for finding duplicates, combining or splitting text files, matching text patterns, transforming text, and grouping files by size or creation time.

In plain words
What is it for?
Finding duplicate files, merging or splitting text files, locating files containing specific text, changing text case, counting words, and sorting files by size or age.
Why use it?
Large collections of files are difficult to inspect and organize manually, especially when duplicates or similar files are mixed together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Finding duplicate files, merging or splitting text files, locating files containing specific text, changing text case, counting words, and sorting files by size or age.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masslab-sii/open-agent-skills/file_organization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MassLab-SII/open-agent-skills --skill file_organization
Clone the repo
git clone --depth 1 https://github.com/MassLab-SII/open-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for file_organization

README.md
[![agentmods](https://agentmods.dev/badge/skills/masslab-sii/open-agent-skills/file_organization/github.svg)](https://agentmods.dev/skills/masslab-sii/open-agent-skills/file_organization)
Your own site
<a href="https://agentmods.dev/skills/masslab-sii/open-agent-skills/file_organization"><img src="https://agentmods.dev/badge/skills/masslab-sii/open-agent-skills/file_organization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for file_organization

Your own site · 80×15
<a href="https://agentmods.dev/skills/masslab-sii/open-agent-skills/file_organization"><img src="https://agentmods.dev/badge/skills/masslab-sii/open-agent-skills/file_organization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00749
Opus 5 $0.00019 $0.00375
Sonnet 5 $0.00008 $0.00150
Haiku 4.5 $0.00004 $0.00075

Measured 11d ago against content hash 5388da9930ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

file_organization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/classify_files_by_size.py, scripts/classify_files_by_time.py, scripts/convert_uppercase.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

portable-skills/file_organization/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

File Organization Skill

This skill provides file analysis, manipulation, and organization:

  1. Duplicate detection: Find and organize files with identical content
  2. File merging: Combine multiple small files into one
  3. File splitting: Split large files into smaller equal-sized parts
  4. Pattern matching: Find files containing specific substrings
  5. Text transformation: Convert files to uppercase and count words
  6. Size classification: Organize files by size thresholds
  7. Time classification: Organize files by creation time

1. Duplicate File Detection

Scans all files in a directory, identifies files with duplicate content, and moves them to a separate subdirectory.

Example

# Find and organize duplicate files (default directory name: 'duplicates')
python find_duplicates.py /path/to/directory

# Use a custom directory name for duplicates
python find_duplicates.py /path/to/directory --duplicates-dir my_duplicates

2. File Merging

Identifies the N smallest .txt files, sorts them alphabetically, and merges their content into a single file.

Example

# Merge the 10 smallest .txt files (default)
python merge_files.py /path/to/directory

# Merge the 5 smallest files
python merge_files.py /path/to/directory --count 5

# Use a custom output filename
python merge_files.py /path/to/directory --output merged_content.txt

3. File Splitting

Splits a large text file into multiple smaller files with equal character counts.

Example

# Split large_file.txt into 10 equal parts (default)
python split_file.py /path/to/directory large_file.txt

# Split into 5 parts
python split_file.py /path/to/directory large_file.txt --parts 5

4. Pattern Matching

Finds all files that contain a substring of N or more characters that also appears in a reference file.

Example

# Find files with 30+ character matches (default)
python pattern_matching.py /path/to/directory large_file.txt

# Use a custom minimum length
python pattern_matching.py /path/to/directory large_file.txt --min-length 50

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 130 lines · 39 tokens per session scan A 5388da9930ae

Subscribe to this mod's changes

file_organization is a skill published in the GitHub repository MassLab-SII/open-agent-skills (133 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 749 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.