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
- couimet/my-claude-skillstheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 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.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
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
- Distinctive: line 19
If not installed, help the user set it up:
- Very specific: line 63
When the user wants to rename files, first use rename-agent preview to see what files are available
- Very specific: line 65
Run with --dry-run first to show the user what will happen
- Distinctive: line 70
Use these tokens in naming patterns:
- Distinctive: line 133
Always preview or dry-run first before executing renames
≈ “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.
Files
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-agentIf not installed, help the user set it up:
pip3 install claude-rename-agentOr use the install script:
curl -fsSL https://raw.githubusercontent.com/omarshahine/claude-rename-agent/main/install.sh | bashRequires 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 typesWorkflow
- When the user wants to rename files, first use
rename-agent previewto see what files are available - Suggest an appropriate pattern based on the document type
- Run with
--dry-runfirst to show the user what will happen - Execute the rename if the user approves
Pattern Tokens
Use these tokens in naming patterns:
| Token | Description | Example |
{Date:YYYY-MM-DD} | Full date | 2024-03-15 |
{Date:YYYY-MM} | Year and month | 2024-03 |
{Date:YYYY} | Year only | 2024 |
{Year} | Tax/fiscal year | 2024 |
{Merchant} | Business/vendor name | Amazon |
{Amount} | Dollar amount | 125.99 |
{Institution} | Organization name | Chase Bank |
{Bank Name} | Bank name | Wells Fargo |
{Form Type} | Tax form type | K-1, 1099, W-2 |
{Account Number} | Full account number | 1234567890 |
{Last 4 Digits} | Last 4 of account | 7890 |
{Description} | Document description | Annual Statement |
{Title} | Document title | Q4 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-runUser wants to see what patterns have been learned:
rename-agent patternsData 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
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
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.

