file-organizer

file-organizer is a skill for Claude Code, Codex from moonlight-lupin/agent-skills. It costs 52 tokens per session (2,550 once invoked), scanned A, original, MIT.

A file-organizing skill that scans a messy directory, reads file snippets, suggests folders and names, and moves files in batches after confirmation. It moves and renames files but does not delete them.

In plain words
What is it for?
Use it to tidy Downloads, Desktop, document folders, local disks, network mounts, or remote filesystems, including renaming files based on what they contain.
Why use it?
It reduces the manual work of sorting files by their contents. The confirmation step helps prevent unwanted filesystem changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to tidy Downloads, Desktop, document folders, local disks, network mounts, or remote filesystems, including renaming files based on what they contain.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/moonlight-lupin/agent-skills/file-organizer
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 moonlight-lupin/agent-skills --skill file-organizer
Clone the repo
git clone --depth 1 https://github.com/moonlight-lupin/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-organizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/file-organizer/github.svg)](https://agentmods.dev/skills/moonlight-lupin/agent-skills/file-organizer)
Your own site
<a href="https://agentmods.dev/skills/moonlight-lupin/agent-skills/file-organizer"><img src="https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/file-organizer/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-organizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/moonlight-lupin/agent-skills/file-organizer"><img src="https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/file-organizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,550 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00052 $0.02550
Opus 5 $0.00026 $0.01275
Sonnet 5 $0.00010 $0.00510
Haiku 4.5 $0.00005 $0.00255

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

Security

Grade A, and why

file-organizer scanned grade A with 1 finding 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 3d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/organize.py, scripts/test_organize.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

directories. Uses stdlib-only HTTP (urllib) — no requests/openai SDK needed.
productivity/file-organizer/SKILL.md · 256 lines

How it starts

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

File Organizer

An LLM-powered file organizer that reads file contents, proposes a sensible folder structure with renamed files, and executes moves in chunks — with a mandatory user confirmation gate before any filesystem changes.

Overview

Inspired by LlamaFS but designed for Hermes: the script handles filesystem I/O (scan, read snippets, execute moves). The agent's own LLM does the reasoning by default. An optional propose subcommand can call a cheaper external LLM (deepseek, openrouter, ollama) for cost-conscious runs on large directories. Uses stdlib-only HTTP (urllib) — no requests/openai SDK needed.

When to Use

  • User says "organize my Downloads" / "tidy my Desktop" / "clean up this folder"
  • User has a messy directory and wants files sorted into categories
  • User wants files renamed based on their content (not just moved)
  • User wants to organize files on a local disk, network mount, or remote filesystem

Don't use for:

  • Bulk file deletion (this skill only moves and renames, never deletes)
  • Deduplication (use a dedicated dedup tool)
  • File content search (use search_files instead)

Workflow

Step 1 — Scan

Run the scan script to get file metadata + content snippets:

python3 scripts/organize.py scan --path <directory> [--depth N] [--max-snippet-chars 500]

Output is a JSON array. Each file entry contains:

  • path: full file path
  • relative_path: path relative to scanned directory
  • name: current filename
  • size: bytes
  • mtime: ISO timestamp
  • type: text, image, audio, pdf, office, archive, other
  • mime: detected MIME type
  • snippet: first N chars of content (text/pdf) or metadata (image/audio)

Flags: --depth N (max directory depth), --max-snippet-chars N (per-file snippet limit, default 500), --include-hidden (include dotfiles, skipped by default).

Step 2 — Propose Organization (Agent LLM — Default)

Using the scan output, reason about:

  • Natural categories based on file content and types
  • A clean folder hierarchy (not too deep — 2-3 levels max)
  • Descriptive filenames that reflect content (not IMG_3847.jpgHawaii-Beach-Sunset.jpg)
  • Time-based grouping when appropriate (e.g., 2024-Taxes/, 2023-Receipts/)

Read the full file on GitHub · 256 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago Changed 7b7591f61684
  2. 11d ago First seen · 256 lines · 52 tokens per session scan A e429fe18e29c

Subscribe to this mod's changes

file-organizer is a skill published in the GitHub repository moonlight-lupin/agent-skills (62 stars, last pushed 4d ago), licensed MIT. It adds 52 tokens to every session and 2,550 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.