organize-by-format

organize-by-format is a command for Claude Code from danielrosehill/Claude-Image-Production-Plugin. It costs 0 tokens per session (508 once invoked), scanned A, original, MIT.

An image-organizing command that groups files into folders such as JPEG, PNG, HEIC, RAW, and other, based on their file format.

In plain words
What is it for?
Use it to classify images, preview format counts, create symlinked folders or a CSV manifest, or move files after explicit confirmation.
Why use it?
It helps find images by type when a folder mixes many formats or when file extensions are missing or misleading.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the image-production plugin — 29 skills, 19 commands shipped together

Good fit Use it to classify images, preview format counts, create symlinked folders or a CSV manifest, or move files after explicit confirmation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/danielrosehill/claude-image-production-plugin/organize-by-format
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.

Clone the repo
git clone --depth 1 https://github.com/danielrosehill/Claude-Image-Production-Plugin

Made for: Claude Code.

Or install image-production, the plugin that ships this one along with the rest of its 29 skills, 19 commands.

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 organize-by-format

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielrosehill/claude-image-production-plugin/organize-by-format/github.svg)](https://agentmods.dev/commands/danielrosehill/claude-image-production-plugin/organize-by-format)
Your own site
<a href="https://agentmods.dev/commands/danielrosehill/claude-image-production-plugin/organize-by-format"><img src="https://agentmods.dev/badge/commands/danielrosehill/claude-image-production-plugin/organize-by-format/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 organize-by-format

Your own site · 80×15
<a href="https://agentmods.dev/commands/danielrosehill/claude-image-production-plugin/organize-by-format"><img src="https://agentmods.dev/badge/commands/danielrosehill/claude-image-production-plugin/organize-by-format.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 508 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.00000 $0.00508
Opus 5 $0.00000 $0.00254
Sonnet 5 $0.00000 $0.00102
Haiku 4.5 $0.00000 $0.00051

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

Security

Grade A, and why

organize-by-format 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 9d 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.

commands/organize-by-format.md · 42 lines

What it actually says

Organize Images by File Format

Sort images into format-based subfolders.

Task

  1. Ask which folder to operate on — default is the current working directory. Confirm recursion; default flat.

  2. Classify each file by extension (case-insensitive), with file / exiftool as a fallback for extensionless or misnamed files:

    • JPEG/.jpg, .jpeg
    • PNG/.png
    • HEIC/.heic, .heif
    • WebP/.webp
    • RAW/.nef (Nikon), .cr2 / .cr3 (Canon), .arw (Sony), .dng (Adobe), .raf (Fuji), .orf (Olympus), .rw2 (Panasonic)
    • TIFF/.tif, .tiff
    • GIF/.gif
    • BMP/.bmp
    • SVG/.svg
    • other/ — anything that doesn't match, including extensionless files and unknown formats
    # Fallback when extension is missing or misleading:
    exiftool -s -s -s -FileType "image"
    # or
    file --mime-type "image"
    
  3. Preview before acting — table of format → count, plus a sample filename per bucket. Wait for confirmation.

  4. Prefer symlinks or CSV manifest over physical moves:

    • Option A: symlinked subfolders
    • Option B: metadata/format-buckets.csv
    • Option C: physical move on explicit confirmation
  5. Log to notes/organize-by-format-{timestamp}.md with bucket counts and any files flagged as format/extension mismatch.

Notes

  • Flag extension/format mismatch explicitly (e.g. a .jpg that exiftool reports as PNG) — these are often the interesting files in an import.
  • RAW sidecars (.xmp) should be kept adjacent to their RAW — when moving/symlinking, pair them.
  • HEIC support requires libheif to be present if further commands read the image; the bucketing itself is extension-based and doesn't need it.
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. 9d ago First seen · 42 lines · 0 tokens per session scan A 88e39a4d6a2a

Subscribe to this mod's changes

organize-by-format is a command published in the GitHub repository danielrosehill/Claude-Image-Production-Plugin (16 stars, last pushed 22d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 508 tokens. 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.