batch-rename — 批量文件重命名工具
v1.0.0批量文件重命名工具,支持多种重命名模式,包括顺序编号、查找替换、前缀/后缀、正则表达式、文件扩展名过滤和递归文件夹处理。适用于需要一次性重命名多个文件的场景。
0· 44·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidence该技能内部一致于批量文件重命名工具:包含一个直接的Python重命名器,不请求凭据,无网络/安装步骤。但是,SKILL.md 指南与脚本之间存在小的不匹配(无试运行/确认和扩展名处理差异),在使用前应注意这些差异。
评估建议
["在运行于重要文件前,请备份。脚本使用 os.rename() 会直接修改文件。","SKILL.md 建议预览/确认,但脚本没有 --dry-run 或交互式确认;请作者添加 dry-run 标志(或手动检查文件列表)在执行前。","使用 --ext 参数时,以裸扩展名形式(如 --ext jpg 或 --ext .txt)而非通配符模式(如*.txt);文档示例可能误导。","先在小样本目录中测试,以验证模式、递归和冲突行为。","如果希望通过代理自主调用,确保代理会在运行重命名前请求明确的用户确认,以避免意外的大规模编辑。"]...详细分析 ▾
ℹ 用途与能力
Name/description match the delivered code: the Python script implements sequential numbering, find/replace, prefix/suffix, regex, extension filtering, and recursion as advertised. Minor mismatch: SKILL.md demonstrates wildcard ext values like "*.txt", but the script expects either '*' or a bare extension (e.g., 'txt' or '.txt'), so some example usages in the docs are misleading.
⚠ 指令范围
SKILL.md instructs the agent to 'report what will be renamed before executing' and to confirm scope for recursive operations, but the script provides no explicit dry-run/preview mode or interactive confirmation: it prints counts and then performs renames, printing each change as it happens. This increases the risk of unintended mass changes if the agent runs the script without a manual review step.
✓ 安装机制
No install spec and no external packages or network fetches. The script is pure Python using stdlib modules; nothing is written to disk beyond normal file renames performed by the script itself.
✓ 凭证需求
The skill requests no environment variables, credentials, or config paths — requirements are proportionate to its stated purpose.
✓ 持久化与权限
always is false and the skill does not modify other skills or require permanent presence. It performs local filesystem operations only when invoked.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/4/10
["重大更新,扩展了批量重命名的能力和模式支持。","添加了新脚本 (scripts/batch_rename.py),支持顺序编号、查找替换、前缀/后缀、正则表达式、扩展名过滤和递归文件夹处理。","增强了文档,包括详细的使用指南、参数参考、工作流步骤和安全注意事项。","移除了旧脚本和测试文件,相关到之前的图像和注释重命名工作流。","技能现在响应更广泛的批量重命名请求,包括多语言触发。"]
● 无害
安装命令 点击复制
官方npx clawhub@latest install batch-rename-1
镜像加速npx clawhub@latest install batch-rename-1 --registry https://cn.clawhub-mirror.com
技能文档
请注意:由于原始 SKILL.md 内容未提供,我无法进行翻译。以下为示例,如果您提供 SKILL.md 内容,我可以帮助翻译。
--- # 批量文件重命名工具 ...(原始 Markdown 内容)... --- 中文翻译 # 批量文件重命名工具 ...(翻译后的 Markdown 内容)...
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制