← Back to Skills Marketplace
Cn Batch File Renamer
by
freedompixels
· GitHub ↗
· v1.0.0
· MIT-0
30
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cn-batch-file-renamer
Description
Batch rename files with customizable patterns. Support prefix, suffix, sequential numbering. Dry-run mode available. Pure Python, no API key required.
README (SKILL.md)
Batch File Renamer
Rename multiple files at once with patterns.
Features
- Add prefix to filenames
- Add suffix before extension
- Sequential numbering (001, 002, ...)
- Dry-run mode (preview without changes)
- Pure Python, no external dependencies
Usage
# Preview renaming
python3 scripts/batch_rename.py --dir ./photos --prefix "vacation_" --dry-run
# Actually rename
python3 scripts/batch_rename.py --dir ./photos --prefix "vacation_"
Examples
Rename files in a directory:
- photo.jpg → vacation_001.jpg
- image.png → vacation_002.png
- pic.gif → vacation_003.gif
Notes
- Preserves file extensions
- Does not overwrite existing files
- Use --dry-run first to preview changes
Exit Codes
- 0: Success
- 1: Directory not found or permission error
Usage Guidance
This skill appears safe for its stated purpose. Before installing or using it, remember that it can rename real files in the directory you specify; run the dry-run command first and avoid pointing it at broad or important folders unless you have a backup.
Capability Analysis
Type: OpenClaw Skill
Name: cn-batch-file-renamer
Version: 1.0.0
The skill bundle provides a standard utility for batch renaming files as described in SKILL.md. The Python script (scripts/batch_rename.py) uses built-in libraries to perform file operations, includes a dry-run mode, and implements basic safety checks to avoid overwriting existing files. No indicators of malicious intent, data exfiltration, or prompt injection were found.
Capability Tags
Capability Assessment
Purpose & Capability
The stated purpose and included Python script align: it batch-renames items in a user-specified directory and supports dry-run preview. This is expected for the skill, but it does mutate local filenames.
Instruction Scope
The usage examples are user-directed and recommend dry-run first, but the script processes every entry returned by os.listdir for the target directory rather than filtering only regular files.
Install Mechanism
There is no install spec, no external dependency, and the included script is small, readable Python.
Credentials
The artifacts show no API keys, environment variables, credential access, network access, or sensitive data transmission. The capability signal indicating sensitive credentials is not supported by the provided SKILL.md or source code.
Persistence & Privilege
No persistence, background workers, privilege escalation, or protected-path behavior is shown; file changes occur only when the script is run against a chosen directory.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cn-batch-file-renamer - After installation, invoke the skill by name or use
/cn-batch-file-renamer - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of Batch File Renamer.
- Batch rename files using prefix, suffix, and sequential numbering patterns.
- Supports dry-run mode for previewing changes without modifying files.
- Preserves file extensions and avoids overwriting existing files.
- Implemented in pure Python; no external dependencies or API key required.
- Command-line usage for flexible file renaming tasks.
Metadata
Frequently Asked Questions
What is Cn Batch File Renamer?
Batch rename files with customizable patterns. Support prefix, suffix, sequential numbering. Dry-run mode available. Pure Python, no API key required. It is an AI Agent Skill for Claude Code / OpenClaw, with 30 downloads so far.
How do I install Cn Batch File Renamer?
Run "/install cn-batch-file-renamer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Cn Batch File Renamer free?
Yes, Cn Batch File Renamer is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Cn Batch File Renamer support?
Cn Batch File Renamer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Cn Batch File Renamer?
It is built and maintained by freedompixels (@freedompixels); the current version is v1.0.0.
More Skills