Search & Analysis v1.0.0

rr-renamer

Use RenameRegex (RR.exe) as a generic Windows CLI bulk renamer from OpenClaw. Use when you need regex search/replace...

nextaltair 更新于 2026-03-21 1 浏览
下载 SKILL

技能说明

Use RenameRegex (RR.exe) as a generic Windows CLI bulk renamer from OpenClaw. Use when you need regex search/replace renames with preview (/p pretend), recursive renames (/r), files/dirs selection, and a safe preview→apply workflow. This skill provides a thin wrapper and logging; it does NOT define any specific normalization rules.

使用场景

Use RenameRegex (RR.exe) as a generic Windows CLI bulk renamer from OpenClaw. Use when you need regex search/replace renames with preview (/p pretend), recursive renames (/r), files/dirs selection, and a safe preview→apply workflow. This skill provides a thin wrapper and logging; it does NOT define any specific normalization rules.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/rr-renamer
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 16 kB
SKILL.md text/markdown
---
name: rr-renamer
description: Use RenameRegex (RR.exe) as a generic Windows CLI bulk renamer from OpenClaw. Use when you need regex search/replace renames with preview (/p pretend), recursive renames (/r), files/dirs selection, and a safe preview→apply workflow. This skill provides a thin wrapper and logging; it does NOT define any specific normalization rules.
disable-model-invocation: true
---

# RR (RenameRegex) generic runner

## Assumptions

- `RR.exe` (RenameRegex) is available on PATH **from the environment that runs the command**.
  - User stated it is placed in `~/.local/bin`.
- Prefer running via **Windows PowerShell 7** (`pwsh.exe`) so Windows path semantics are authoritative.

## Safety defaults

- Always run **pretend preview first** (`/p`).
- Only run apply after **explicit user approval** in the chat.
- Never use `/f` (force overwrite) unless the user explicitly asks.
- Log every invocation.

## How to use

Use the bundled script to run RR.exe inside a chosen root folder.

- Preview:
  - provide RR arguments, script adds `/p` automatically
- Apply:
  - provide RR arguments, script runs without `/p`

See: `scripts/rr_run.ps1`

### Regex argument quoting (PowerShell)

When calling from PowerShell, pass regex arguments like `\s+` as a *single backslash* string.
Recommended: use **single quotes** to avoid accidental escaping:

- `@('*', '\s+', '_', '/r', '/e')`

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。