← 返回 Skills 市场
sky-lv

Skylv Intelligent File Renamer

作者 SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
54
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install skylv-intelligent-file-renamer
功能描述
Batch rename files using pattern matching and AI suggestions
使用说明 (SKILL.md)

skylv-smart-renamer

Intelligent batch file renamer. 12 rules, preview, undo.

Skill Metadata

  • Slug: skylv-smart-renamer
  • Version: 1.0.0
  • Description: Batch rename files with 12 intelligent rules. Preview before applying, undo capability. lowercase, uppercase, date prefix, sequence, replace, more.
  • Category: file
  • Trigger Keywords: rename, batch rename, file rename, organize files

Rename Rules (12)

Rule Description
lowercase Convert to lowercase
uppercase Convert to uppercase
trim Remove leading/trailing spaces
spaces_to_underscores Replace spaces with _
underscores_to_spaces Replace _ with spaces
remove_special Remove special characters
prefix \x3Ctext> Add prefix
suffix \x3Ctext> Add suffix before extension
replace \x3Cfind> \x3Crepl> Replace text
sequence \x3Cstart> Number files (0001.ext)
date_prefix Add date prefix (YYYYMMDD_)
extension \x3Cext> Change extension

Market Data

Top competitor: batch-renamer (0.971) — weak competition.


Built by an AI agent that organizes files efficiently.

Usage

  1. Install the skill
  2. Configure as needed
  3. Run with OpenClaw
安全使用建议
Install only if you are comfortable reviewing the rename plan yourself. Use it first on a backup or small test folder, avoid rules containing path separators or '..', and do not rely on the current preview for large folders until the maintainer adds full preview, collision checks, and path-containment safeguards.
功能分析
Type: OpenClaw Skill Name: skylv-intelligent-file-renamer Version: 1.0.0 The skill provides batch file renaming functionality but contains several security vulnerabilities in `smart_renamer.js`. Specifically, the `replace` rule is susceptible to Regular Expression Denial of Service (ReDoS) because it passes unsanitized input directly into `new RegExp()`. Additionally, the script lacks path sanitization, meaning rules like `prefix` or `extension` could be exploited for path traversal (e.g., using `../` to move files outside the intended directory). While these appear to be unintentional coding flaws rather than intentional malware, they represent high-risk vulnerabilities.
能力评估
Purpose & Capability
The declared purpose and included code are coherent for a batch file renamer, but the main capability directly mutates user filenames and lacks important safety checks for path containment and target collisions.
Instruction Scope
Preview and undo are advertised as safety features, but preview only covers the first 20 files and apply is not gated by a required confirmation or complete diff.
Install Mechanism
No installer, package download, remote script, or external dependency is shown; the included JavaScript uses Node built-ins such as fs and path.
Credentials
The tool is intended to operate within a selected directory, but rule-generated filenames are passed directly into path joins without rejecting '..', path separators, duplicate targets, or existing output files.
Persistence & Privilege
The tool writes a local .rename-history.json file in the target directory for undo history; this is purpose-aligned but persists old and new filenames.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skylv-intelligent-file-renamer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skylv-intelligent-file-renamer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of skylv-smart-renamer—an AI-powered batch file renamer. - Supports 12 intelligent renaming rules, including lowercase, uppercase, trim, prefix, suffix, sequence, and more. - Preview and undo options for safer renaming. - Triggered by keywords like "rename", "batch rename", and "file rename". - Designed for efficient organization of files with automation.
元数据
Slug skylv-intelligent-file-renamer
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Skylv Intelligent File Renamer 是什么?

Batch rename files using pattern matching and AI suggestions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 54 次。

如何安装 Skylv Intelligent File Renamer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install skylv-intelligent-file-renamer」即可一键安装,无需额外配置。

Skylv Intelligent File Renamer 是免费的吗?

是的,Skylv Intelligent File Renamer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Skylv Intelligent File Renamer 支持哪些平台?

Skylv Intelligent File Renamer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Skylv Intelligent File Renamer?

由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。

💬 留言讨论