Batch Rename

# Batch Rename

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Batch Rename" with this command: npx skills add mingo-318/batch-rename

Batch Rename

Batch rename images and corresponding annotation files with customizable patterns. Use when user needs to rename image datasets with sequential numbers, prefixes, or custom patterns.

Features

  • Sequential Numbering: Add sequential numbers to filenames
  • Custom Prefix/Suffix: Add prefix or suffix to filenames
  • Annotation Aware: Rename corresponding annotation files together
  • Handle Missing: Gracefully handle images without annotation files
  • Preview Mode: Preview changes before applying
  • Undo Support: Restore original filenames

Usage

# Rename with sequential numbers
python scripts/rename.py rename /path/to/images/ --pattern "img_{:04d}"

# Rename with prefix
python scripts/rename.py rename /path/to/images/ --prefix "dataset1_"

# Rename images and annotations together
python scripts/rename.py rename /path/to/images/ --pattern "img_{:04d}" --annotations /path/to/labels/

# Preview first
python scripts/rename.py rename /path/to/images/ --pattern "img_{:04d}" --preview

Examples

$ python scripts/rename.py rename ./images --pattern "img_{:04d}" --annotations ./labels

Found 100 images
Preview (first 10):
  image1.jpg -> img_0001.jpg
  image2.jpg -> img_0002.jpg
  image3.jpg -> img_0003.jpg
  ...

Apply changes? (y/n): y
✓ Renamed 100 images
✓ Renamed 95 annotation files

Pattern Options

  • {:04d} - Sequential number with leading zeros
  • {date} - Current date (YYYYMMDD)
  • {original} - Original filename without extension

Installation

No additional installation required.

Options

  • --pattern: Output filename pattern
  • --prefix: Add prefix to filename
  • --suffix: Add suffix to filename
  • --start: Starting number for sequential renaming
  • --annotations: Path to annotation files (will be renamed together)
  • --preview: Preview changes without applying
  • --force: Overwrite existing files

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

aiq-assessment

AIQ(AI商数)评估工具。基于"三层18原子能力"框架,对个人或团队的AI协作效能进行 结构化评估。包含提示素养、算法共情、判断锐度三大维度,覆盖18个可量化的原子能力。 适用于自我诊断、招聘评估、团队AI成熟度审计等场景。触发词:AIQ、AI商数、AI能力评估、 AI协作效能、会不会用AI、AI Native...

Registry SourceRecently Updated
General

Reptile Pet Health Diagnosis Tool | 爬行类宠物健康诊断分析工具

Analyzes uploaded reptile or arachnid videos to identify scale, skin, and body issues, then generates a detailed health diagnosis report.

Registry SourceRecently Updated
General

Whop Digital Sales

Auto-create and manage digital products on Whop.com. Manages product lifecycle from creation to checkout link generation. Uses Whop REST API v1 with Company...

Registry SourceRecently Updated
General

ClawCap

Spending cap proxy for OpenClaw. Enforce hard daily and monthly limits across all your AI models (Claude, GPT, Gemini, and more) under one cap. Stop runaway...

Registry SourceRecently Updated