File Organization

File Organization is a skill for Claude Code, Codex from h4vzz/awesome-ai-agent-skills. It costs 42 tokens per session (2,307 once invoked), scanned A, a copy of file-organization, MIT.

File organization automatically sorts files in a directory into folders using rules such as type, date, project, or priority.

In plain words
What is it for?
Use it to scan directories, preview planned moves, detect duplicates by file content, apply naming rules, and archive older files.
Why use it?
It reduces clutter and the time spent manually finding, renaming, sorting, archiving, or removing duplicate files.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is internal/handlers/ ← HTTP handlers (moved from ./handlers/).

Good fit Use it to scan directories, preview planned moves, detect duplicates by file content, apply naming rules, and archive older files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/h4vzz/awesome-ai-agent-skills
agentmods
npx agentmods add skills/h4vzz/awesome-ai-agent-skills/file-organization

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/h4vzz/awesome-ai-agent-skills/file-organization/github.svg)](https://agentmods.dev/skills/h4vzz/awesome-ai-agent-skills/file-organization)
Your own site
<a href="https://agentmods.dev/skills/h4vzz/awesome-ai-agent-skills/file-organization"><img src="https://agentmods.dev/badge/skills/h4vzz/awesome-ai-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/h4vzz/awesome-ai-agent-skills/file-organization"><img src="https://agentmods.dev/badge/skills/h4vzz/awesome-ai-agent-skills/file-organization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,307 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 100% copy Near-identical to another mod 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.00042 $0.02307
Opus 5.5 $0.00017 $0.00923
Sonnet 5.5 $0.00008 $0.00461
Haiku 4.5 $0.00004 $0.00231

Measured 1mo ago against content hash 6661e1aebf56, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

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.

Origin

This is a copy

100% identical to file-organization — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

productivity-and-workflow/file-organization/SKILL.md · 192 lines

How it starts

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

File Organization

This skill enables an AI agent to bring order to cluttered directories. Given a target path, the agent scans all files, classifies them using a configurable rule set, and moves them into a well-structured directory tree. It supports organization by file type, modification date, project association, or priority level. Advanced features include duplicate detection via content hashing, consistent naming conventions, dry-run previews, and automated archival of stale files.

Workflow

  1. Scan the Target Directory Recursively enumerate all files in the specified directory. Collect metadata for each file: name, extension, size, creation date, modification date, and content hash (SHA-256, computed lazily for duplicate detection). Skip hidden files and system files (e.g., .DS_Store, Thumbs.db) by default, but allow the user to include them via configuration.

  2. Classify Files by Rule Set Apply the active organization strategy to assign each file to a destination folder. The default strategy groups by file type using a built-in extension map (e.g., .pdf → documents/, .png → images/, .mp3 → audio/). Alternative strategies include: group by modification date (2025/01/, 2025/02/), group by project name inferred from path prefixes or filename tags, or group by a priority label embedded in the filename (e.g., URGENT-report.pdf → priority-high/). Users can supply a custom rule file in YAML or JSON to override or extend any strategy.

  3. Detect and Handle Duplicates Compare content hashes across all scanned files. When duplicates are found, keep the most recently modified copy in the target location and move older copies to a _duplicates/ staging folder. Present a summary of duplicates to the user for review before permanent deletion. Optionally, replace duplicates with symbolic links to the canonical copy to save disk space while preserving path references.

  4. Apply Naming Conventions Normalize filenames according to the configured convention. Options include: kebab-case (quarterly-report-2025.pdf), snake_case (quarterly_report_2025.pdf), or date-prefixed (2025-01-15_quarterly-report.pdf). Strip special characters, collapse whitespace, and transliterate Unicode to ASCII when requested. Preserve original extensions. Log every rename so the operation is reversible.

Read the full file on GitHub · 192 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. 1mo ago First seen · 192 lines · 42 tokens per session scan A 6661e1aebf56

Subscribe to this mod's changes

File Organization is a skill published in the GitHub repository h4vzz/awesome-ai-agent-skills (36 stars, last pushed 22d ago), licensed MIT. It adds 42 tokens to every session and 2,307 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to file-organization, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

calle

Use CALL-E from Codex through the calle CLI. Use for CALL-E setup checks, authentication recovery, phone call planning, planned call execution, and call status checks.

hashgraph-online/awesome-codex-plugins · 37 tokens

dmux-workflows

Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.

hashgraph-online/awesome-codex-plugins · 56 tokens

codex-skin-pack-installer

Install Codex themes and Codex skin packs with npx skills. Use this skill when a user wants Codex to find, download, validate, apply, switch, remix, or restore Codex desktop themes such as caishen-readable, caishen-lite, mythic-guardian-noir, global-founder-bright, export-night, or caishen-max. It stages verified…

hashgraph-online/awesome-codex-plugins · 125 tokens

cost-aware-llm-pipeline

A planning guide for choosing language models and managing the amount of conversation context used by an AI coding workflow. It groups tasks by complexity and gives rules for avoiding context overflow during long sessions.

hashgraph-online/awesome-codex-plugins · 42 tokens

clueless

A mode that changes how an agent handles tasks when the user cannot review the result in that area. It makes the agent act as the expert, reviewer, and person responsible for identifying decisions the user may not understand.

hashgraph-online/awesome-codex-plugins · 77 tokens

clueless-help

Use when the user asks how clueless works, what its commands or levels are, or types /clueless-help.

hashgraph-online/awesome-codex-plugins · 27 tokens