Introduction¶
After a trip or event, phones often end up with a string of IMG_xxxx or DSC_xxxx filenames, making it inconvenient to sort by time or archive by location. Manually renaming them one by one in the file explorer is tolerable for a few dozen photos, but prone to errors for hundreds. The following introduces the community Skill on SkillHub, “Batch Rename Photos” (@user_f8ee4625/photo-renamer-tool), which allows the Agent to batch rename files in a local folder according to agreed rules, incorporating “Date + Location + Sequence Number” into the filenames.
What is this¶
“Batch Rename Photos” is an Agent Skill designed for office and daily organization scenarios. Its coordinates are @user_f8ee4625/photo-renamer-tool, current version 1.0.0, source community, category office-efficiency, published by SkillHub user user_f8ee4625; the author identifier within the skill package is jm-jsjkxyjs02-wzy-704. It solves the problem of messy naming for multiple photos in the same directory by unifying them into readable filenames based on shooting date and location. The tags indicate requires_api_key=false, meaning it does not depend on external API keys.
SkillHub page statistics (based on crawled data): Rating 100000, Downloads 917, Install count 0.
Core Functionality¶
Based on SKILL.md and photo_renamer.js within the skill package, the verified capabilities are as follows:
- Read EXIF Shooting Date: Generates
YYYY-MM-DDfrom the image EXIFDateTimeOriginal; if reading fails, the script falls back to the file modification time (mtime). - Unified Naming Format:
YYYY-MM-DD_Location_Sequence, where the sequence number is zero-padded to three digits (e.g.,001,002). - Batch Process Directory: Renames images matching the extensions in the specified folder one by one, and outputs the processing count and a partial rename comparison.
- Supported Formats:
.jpg,.jpeg,.png,.heic. - Required Parameters:
targetDir(photo directory),location(location string, e.g., “Beijing”, “Great Wall”).
The example result in the skill description takes the form of: 2026-05-01_Beijing_001.jpg.
Installation and Activation¶
You need the SkillHub CLI before installation. The official installation instructions can be found at skillhub.cn/install/skillhub.md.
Check if it is already installed:
command -v skillhub && skillhub --version
If not installed, you can execute the full installation (including CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install the Skill into the current Agent’s skills directory (using --dir is mandatory, otherwise it defaults to ./skills/ and may not be recognized). The common path for Cursor is ~/.cursor/skills/:
skillhub install photo-renamer-tool --namespace user_f8ee4625 --dir ~/.cursor/skills/
You can also ask the AI in the conversation to install it according to the official guidelines:
Please install `@user_f8ee4625/photo-renamer-tool` according to https://skillhub.cn/install/skillhub.md.
Equivalent paths for Claude Code, Codex, etc. are ~/.claude/skills/, ~/.codex/skills/ or .agents/skills/ under the project; simply change the --dir in the installation command to the corresponding directory.
The skill script depends on Node.js and exif-parser (script comment: npm install exif-parser). If the renaming script reports a missing module after installing the Skill, you need to install this dependency yourself in the skill directory or project environment.
After installing or modifying skills, restart or refresh the Agent as required by your client to ensure the new Skill is loaded.
Typical Usage¶
Natural Language (Consistent with SKILL.md examples)
Users can say:
Help me rename the files in D:\Travel Photos by date, with the location set to Beijing
The Agent should parse the folder path and location, and call the skill entry point, passing in targetDir and location.
Parameter Conventions
| Parameter | Meaning |
|---|---|
targetDir |
Path to the folder containing photos (Required) |
location |
Name of the shooting location (Required) |
If parameters are missing, the script returns a prompt requesting the “folder path” and “location”.
Expected Results
Images in the directory are renamed to Date_Location_Sequence.Extension. The form given in the skill description is 2026-05-01_Beijing_001.jpg, numbered after sorting by shooting-related time as described.
Applicable Scenarios and Notes¶
Who is it for
- People who need to change a folder of photos to “Date + Location + Sequence” after travel, team building, or events.
- Users already working in environments supporting Skills (like Cursor, Claude Code) who wish to specify directories and locations via dialogue and have the Agent drive local scripts.
Limitations and Notes
- Only processes the four extensions mentioned above; other formats will be ignored.
- Renaming is an in-place overwrite (
fs.renameSync). Please back up or confirm the directory is correct before operation; the script does not provide a dry-run. - If EXIF is missing, the date may come from the file time, which might not match the actual shooting day.
- The skill package is from a community source; maintenance rhythm depends on the SkillHub page and the publisher. The download interface requires the format
photo-renamer-toolandnamespace=user_f8ee4625(skillhub search photo-renamerwill provide an equivalent installation command).
Conclusion¶
“Batch Rename Photos” solidifies the EXIF date, location, and sequence number into the filename, making it suitable for organizing messy photo album directories without needing an API Key. To view the version and installation entry points, you can open the SkillHub pages:
- https://www.skillhub.cn/skills/user_f8ee4625/photo-renamer-tool
- https://api.skillhub.cn/user_f8ee4625/photo-renamer-tool