batch-renamer

batch-renamer is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 100 tokens per session (2,070 once invoked), scanned A, original, Apache-2.0.

A batch file-renaming tool that previews proposed changes before applying them. It supports name templates, pattern replacement, prefixes and suffixes, case changes, and photo dates from EXIF metadata.

In plain words
What is it for?
Use it to rename files in a directory, standardise photo names, remove or replace parts of names, and undo a completed rename.
Why use it?
Renaming many files by hand is slow and mistakes can be hard to undo. A preview, conflict reporting, and change log make the operation reviewable and reversible.

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 python3 scripts/rename.py preview assets/sample-files --pattern "IMG_{n:03d}.{ext}" # bundled sample directory (preview is read-only).

Good fit Use it to rename files in a directory, standardise photo names, remove or replace parts of names, and undo a completed rename.

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/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/batch-renamer

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 batch-renamer

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/batch-renamer/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/batch-renamer)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/batch-renamer"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/batch-renamer/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 batch-renamer

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/batch-renamer"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/batch-renamer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,070 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.00100 $0.02070
Opus 5.5 $0.00040 $0.00828
Sonnet 5.5 $0.00020 $0.00414
Haiku 4.5 $0.00010 $0.00207

Measured 2mo ago against content hash cdbab1840872, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

batch-renamer 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 2mo 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.

site/skills/tools/batch-renamer/SKILL.md · 168 lines

How it starts

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

Batch Renamer (Batch File Renaming)

Solves the problem of "a pile of files needs consistent renaming, doing it manually is maddening."

Core judgment: renaming is destructive, so preview first, act second, and leave a trail. preview is the default action; apply refuses without --yes (exit code 2); each real execution appends a JSON record to rename-log.txt, which undo uses for one-command rollback. Conflicts are always skipped and reported, never silently overwritten.

Input Checklist

Input Required Notes
Target directory yes Positional argument. Only regular files inside the directory are processed; symlinks and .git/node_modules are skipped
Renaming rule yes At least one: --pattern / --regex / --prefix / --suffix / --exif-date / --lower / --upper
Execution flag no apply requires --yes; preview and undo preview modes don't need it
--start no {n} starting index, default 1

When inputs are missing, ask all at once: "Please provide: 1) directory path; 2) target naming rule (an example is enough); 3) whether to use shooting date; 4) whether to preview first. Defaults: sequence starts at 1, conflicts are skipped."

Pre-flight Checks

python3 --version                                    # expected >= 3.8
test -f scripts/rename.py && echo SCRIPT_OK          # expected prints SCRIPT_OK
test -d "$TARGET_DIR" && echo DIR_OK                 # expected prints DIR_OK
python3 -c "import PIL; print('EXIF_OK', PIL.__version__)" 2>/dev/null || echo "Pillow only needed with --exif-date"
find "$TARGET_DIR" -maxdepth 1 -type f | wc -l       # check scale first; >10k discuss batching

Missing Pillow doesn't block: --exif-date automatically falls back to file mtime and notes the source in output.

Workflow

Step 1: Preview Renaming Result

python3 scripts/rename.py preview assets/sample-files --pattern "IMG_{n:03d}.{ext}"   # bundled sample directory (preview is read-only)

Read the full file on GitHub · 168 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. 2mo ago Changed · +25 lines · -17 tokens per session cdbab1840872
  2. 2mo ago Changed dab4321918a3
  3. 2mo ago First seen · 143 lines · 117 tokens per session scan A 061fc383954d

Subscribe to this mod's changes

batch-renamer is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 100 tokens to every session and 2,070 once invoked, about $0.0004 per session on Opus 5.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-09-19.

Related

batch-renamer compared with skills from other repositories

batch-renamer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
batch-renamerMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A100Claude Code, Codex
apple-notesNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
obsidianNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
channels-setupCopilotKit/CopilotKitSkill39ktodayMITA141Claude Code
gadgetomnigent-ai/omnigentSkill12ktodayApache-2.0A46Claude Code
dwsPinvou/pinvou-agentSkill3.0ktodayMITA193Claude Code, Codex
agent-initializationPrism-Shadow/penguin-harnessSkill3.4ktodayApache-2.0A79Claude Code, Codex