agentleFS
omarshahineomarshahine/claude-rename-agent/.claude/skills/rename-agent/SKILL.md

rename-agent

Skill9 starsChanged 10 months agoMITView on GitHub

AI-powered file renaming using the rename-agent CLI. Use when the user wants to rename files based on their content, apply consistent naming patterns, or process batches of documents. Examples include renaming tax forms, receipts, bank statements, or any documents that need organized naming.

  • Pipes a download into a shell
  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. couimet/my-claude-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If not installed, help the user set it up:

    line 19
  2. Very specific:

    When the user wants to rename files, first use rename-agent preview to see what files are available

    line 63
  3. Very specific:

    Run with --dry-run first to show the user what will happen

    line 65
  4. Distinctive:

    Use these tokens in naming patterns:

    line 70
  5. Distinctive:

    Always preview or dry-run first before executing renames

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Rename Agent Skill

This skill uses the rename-agent CLI to intelligently rename files based on their content.

Setup Check

First, verify rename-agent is installed:

which rename-agent

If not installed, help the user set it up:

pip3 install claude-rename-agent

Or use the install script:

curl -fsSL https://raw.githubusercontent.com/omarshahine/claude-rename-agent/main/install.sh | bash

Requires ANTHROPIC_API_KEY environment variable to be set.

CLI Commands

# Preview files in a folder (see what would be processed)
rename-agent preview /path/to/folder

# Process files with the AI agent
rename-agent --files /path/to/documents

# Use a specific naming pattern
rename-agent --files /path/to/receipts --pattern "{Date:YYYY-MM-DD} - {Merchant}"

# Dry run (preview renames without executing)
rename-agent --files /path/to/docs --dry-run

# View learned patterns
rename-agent patterns

# View rename history
rename-agent history

# View statistics
rename-agent stats

# List supported document types
rename-agent types

Workflow

  1. When the user wants to rename files, first use rename-agent preview to see what files are available
  2. Suggest an appropriate pattern based on the document type
  3. Run with --dry-run first to show the user what will happen
  4. Execute the rename if the user approves

Pattern Tokens

Use these tokens in naming patterns:

TokenDescriptionExample
{Date:YYYY-MM-DD}Full date2024-03-15
{Date:YYYY-MM}Year and month2024-03
{Date:YYYY}Year only2024
{Year}Tax/fiscal year2024
{Merchant}Business/vendor nameAmazon
{Amount}Dollar amount125.99
{Institution}Organization nameChase Bank
{Bank Name}Bank nameWells Fargo
{Form Type}Tax form typeK-1, 1099, W-2
{Account Number}Full account number1234567890
{Last 4 Digits}Last 4 of account7890
{Description}Document descriptionAnnual Statement
{Title}Document titleQ4 Report

Document Types

The agent recognizes:

  • Receipt - Purchase receipts, order confirmations
  • Bill - Utility bills, service statements
  • Tax Document - W-2, 1099, K-1, tax returns
  • Bank Statement - Account statements
  • Invoice - Business invoices
  • Contract - Legal agreements
  • Medical - Medical records, EOBs
  • Insurance - Policies, claims
  • Investment - Brokerage statements
  • Payslip - Pay stubs
  • Identity - IDs, passports, licenses
  • Correspondence - Letters, notices
  • Manual - Product manuals
  • Photo - Images, screenshots
  • General - Other documents

Example Usage

User asks to rename tax documents:

rename-agent preview ~/Downloads/tax-docs
rename-agent --files ~/Downloads/tax-docs --pattern "{Year} - {Form Type} - {Institution}" --dry-run
rename-agent --files ~/Downloads/tax-docs --pattern "{Year} - {Form Type} - {Institution}"

User asks to rename receipts:

rename-agent --files ~/Downloads/receipts --pattern "{Date:YYYY-MM-DD} - {Merchant} - {Amount}" --dry-run

User wants to see what patterns have been learned:

rename-agent patterns

Data Storage

  • Patterns and history stored in ~/.rename-agent/
  • Patterns are learned and remembered for future use

Notes

  • Always preview or dry-run first before executing renames
  • The agent extracts text from PDFs and images to understand content
  • Patterns can be learned and reused for similar documents

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.