Batch File Renamer for Openclaw

An efficient utility for bulk renaming files using powerful regex patterns, sequential numbering, and timestamping.

leonardodpanda
v1.0.0
Mar 3, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install batch-file-renamer

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install batch-file-renamer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Batch File Renamer?

The Batch File Renamer is a robust tool designed to handle high-volume file organization tasks with precision. By leveraging Openclaw Skills, developers and power users can automate the process of standardizing file naming conventions, cleaning up messy download directories, and preparing media libraries for better accessibility.

This skill bridges the gap between tedious manual renaming and complex scripting by providing pre-configured logic for pattern matching and replacement. Whether you are managing thousands of system log files or organizing a decade's worth of personal photos, this tool ensures consistency and efficiency across your local or remote file system.

Batch File Renamer Use Cases

  • Renaming thousands of photos with descriptive prefixes and sequential numbers for better archival.
  • Automatically appending current date/time timestamps to server log files for better version tracking.
  • Sanitizing filenames by removing special characters or replacing spaces with underscores for web compatibility.
  • Standardizing file extensions (e.g., converting .jpeg to .jpg) across entire project directories.
  • Preparing project assets for deployment by enforcing strict naming conventions through Openclaw Skills automation.

How Batch File Renamer Works

  1. Select the target directory containing the files you wish to modify.
  2. Define a matching pattern using regular expressions (regex) or standard strings to identify specific files.
  3. Specify the replacement format, including dynamic variables for sequences, timestamps, or captured regex groups.
  4. Run a preview or dry-run operation to verify the proposed changes without modifying the actual file system.
  5. Execute the batch rename process to apply the changes safely and permanently.

Batch File Renamer Setup

To integrate this utility within your environment, ensure you have your workspace configured to run Openclaw Skills. This skill utilizes native Python modules.

# Check your current directory
pwd

# Ensure your environment is ready for execution
python3 --version

No additional third-party dependencies are required as it leverages the built-in os and re libraries for maximum compatibility.

Batch File Renamer Data Schema & Taxonomy

The skill processes filesystem metadata and can generate a report of the transformation mapping. Below is how the data is structured during the operation:

Property Description Data Type
directory The path where the renaming operation occurs String
pattern The regex or string used to find matches String (Regex)
replacement The template for the new filename String
dry_run Boolean flag to toggle preview mode vs execution Boolean
results A list of tuples containing (original_name, new_name) Array

Batch File Renamer Advanced Features

  • Safe Dry-Run Mode: Always preview all intended changes before any filesystem modifications are committed.
  • Regex Group Capturing: Extract specific parts of original filenames to reuse them in the new naming structure.
  • Z-Padding: Automated sequential numbering with customizable leading zeros (e.g., 001, 002) for proper sorting.
  • Integrated Safety Checks: Prevents accidental overwriting of files by checking for existing filenames before execution.
  • Multi-Step Workflows: Combine with other Openclaw Skills to trigger renaming after downloads or data exports.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*