← 返回 Skills 市场
Cn Batch File Renamer
作者
freedompixels
· GitHub ↗
· v1.0.0
· MIT-0
30
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (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
安全使用建议
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.
功能分析
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.
能力标签
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cn-batch-file-renamer - 安装完成后,直接呼叫该 Skill 的名称或使用
/cn-batch-file-renamer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 30 次。
如何安装 Cn Batch File Renamer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cn-batch-file-renamer」即可一键安装,无需额外配置。
Cn Batch File Renamer 是免费的吗?
是的,Cn Batch File Renamer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Cn Batch File Renamer 支持哪些平台?
Cn Batch File Renamer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cn Batch File Renamer?
由 freedompixels(@freedompixels)开发并维护,当前版本 v1.0.0。
推荐 Skills