Skip to content
Back to skills

File Batch Rename

ASecurity

Safely batch rename files in a directory using regex patterns. Includes dry-run preview, collision detection, and automatic rollback on failure. Zero network access required.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 22, 2026
ai-agentssecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add JadeGate/jadegate --skill file-batch-rename --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of File Batch Rename?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for File Batch Rename
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jadegate-file-batch-rename/badge)](https://www.skillsdirectory.com/skills/jadegate-file-batch-rename)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: file-batch-rename
description: Safely batch rename files in a directory using regex patterns. Includes dry-run preview, collision detection, and automatic rollback on failure. Zero network access required.
---

# File Batch Rename SOP

Safely batch rename files in a directory using regex patterns. Includes dry-run preview, collision detection, and automatic rollback on failure. Zero network access required.

## When to Use

- User wants to batch rename
- User wants to rename files
- User wants to file rename
- Keywords: file, batch, rename, regex, local

## Required Parameters

- **directory** (string): Target directory containing files to rename
- **pattern** (string): Regex pattern to match filenames
- **replacement** (string): Replacement string (supports regex groups like $1, $2)

## Optional Parameters

- **dry_run** (boolean): If true, only preview changes without executing (default: True)
- **file_filter** (string): Glob pattern to filter files, e.g. '*.jpg' (default: *)
- **recursive** (boolean): Whether to process subdirectories (default: False)

## Output

- **renamed_count** (number): Number of files renamed
- **skipped_count** (number): Number of files skipped (no match)
- **preview** (array): Array of {old_name, new_name} pairs
- **dry_run** (boolean): Whether this was a dry run

## Security

- Sandbox level: strict
- Max execution time: 60000ms
- JadeGate verified: Yes (5-layer security check passed)

## Execution Flow

Entry: `list_files` -> 11 steps -> Exit: `return_preview`, `return_executed`, `abort_no_files`, `abort_collision`

Files in this skill

  • SKILL.md1.6 KB
  • file_batch_rename.json6.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.