← 返回 Skills 市场
184
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install rename-fill
功能描述
Rename files in a specified directory with a given prefix. This skill prompts the user for a prefix and directory path, shows a preview of changes, and asks...
安全使用建议
This skill appears to do what it says (batch-rename files), but do not run the included script simply to 'preview' changes: the script prints a preview and then performs renames with no dry-run or interactive confirmation. Before installing or invoking: 1) Test the script in a safe disposable directory to confirm behavior. 2) Ensure the agent implementation generates the preview itself (read directory listing) and only runs the script after explicit user confirmation. 3) Ask the author to add a --dry-run flag or an explicit confirmation prompt to the script, or modify the runtime so the script is executed only after the user confirms. 4) Back up important files before using on real data.
功能分析
Type: OpenClaw Skill
Name: rename-fill
Version: 1.0.0
The skill provides a legitimate utility for batch renaming files but contains a shell injection vulnerability in the SKILL.md execution instructions. Specifically, user-provided inputs for the prefix and directory path are passed directly into a shell command (`node ... "<prefix>" "<directory-path>"`), which could be exploited if the AI agent does not properly sanitize the inputs. The core logic in `scripts/rename-files.js` is functional and transparent, utilizing standard Node.js `fs` modules for file operations with built-in checks and confirmation steps.
能力评估
Purpose & Capability
Name, description, SKILL.md and the included Node.js script all describe a batch file-renaming tool that prepends a prefix. The presence of a single small script is proportionate. Minor inconsistency: skill registry name 'rename-fill' vs SKILL.md/name 'rename-file', but this is likely cosmetic.
Instruction Scope
SKILL.md instructs the agent to show a preview and ask for confirmation before executing the rename. The included script prints a preview but does not offer a dry-run or pause for interactive confirmation; if the agent executes the script to 'preview', the script will proceed to rename immediately. This mismatch between the narrative preview step and the script's behavior is the key incoherence and could lead to accidental renames if the agent runs the script for previewing.
Install Mechanism
Instruction-only skill with a small bundled script; no install steps, package downloads, or external installers. Lowest-risk install profile.
Credentials
No environment variables, credentials, or config paths requested. The skill requires Node.js to be present, which is consistent with the shipped JavaScript script.
Persistence & Privilege
No elevated persistence requested (always:false). The skill does not request to modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install rename-fill - 安装完成后,直接呼叫该 Skill 的名称或使用
/rename-fill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the rename-file skill.
- Batch renames all files in a specified directory by adding a user-defined prefix.
- Asks for prefix and directory path, with support for both current and custom directories.
- Provides a preview of filename changes before renaming and requires user confirmation.
- Only renames files (not directories), preserves extensions, and skips files with existing target names.
- Displays a summary of results, including errors or skipped files.
- Requires Node.js for script execution.
元数据
常见问题
rename-fill 是什么?
Rename files in a specified directory with a given prefix. This skill prompts the user for a prefix and directory path, shows a preview of changes, and asks... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 184 次。
如何安装 rename-fill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install rename-fill」即可一键安装,无需额外配置。
rename-fill 是免费的吗?
是的,rename-fill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
rename-fill 支持哪些平台?
rename-fill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 rename-fill?
由 xyz(@git-xyz)开发并维护,当前版本 v1.0.0。
推荐 Skills