Rr Renamer
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), recur...
Latest: v1.0.0
Initial release of rr-renamer: a safe Windows CLI wrapper for RenameRegex bulk renaming.
- Provides a generic runner for RenameRegex (RR.exe) via PowerShell 7.
- Enforces a preview-first workflow to ensure safety.
- Requires explicit user approval before applying changes.
- Logs every invocation for auditability.
- Supports regex search/replace, recursive renames, files/dirs selection.
- No built-in normalization rules—fully user-driven.
Full 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.
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.
- User stated it is placed in
- 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
/pautomatically
- provide RR arguments, script adds
- Apply:
- provide RR arguments, script runs without
/p
- provide RR arguments, script runs without
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')
