📁
AutomationPython

Batch File Rename

by CoderWanFeng

Batch File Rename is an Automation skill for Claude Code, published by CoderWanFeng in python-office.

1.3K stars299 forkson CoderWanFeng/python-officeAdded 2026/07/20Repository updated 2026/08/04
officepippypipythonweixin
Install in seconds
Install Batch File Rename
Copy Batch File Rename into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/file/replace4filename ~/.claude/skills/replace4filename

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/CoderWanFeng/python-office.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/file/replace4filename/SKILL.md in CoderWanFeng/python-office
Installs to
~/.claude/skills/replace4filename
Collection
One of 50 skills cataloged from this repository
Category
Automation2226 skills

What Batch File Rename does

Batch rename files and folders by replacing or deleting specified substrings in their names. Use when you need to clean up or standardize many filenames at once.

Batch File Rename is cataloged under Automation on DirSkills. Batch File Rename comes from a repository tagged office, pip, pypi, python and weixin.

Documentation

README

replace4filename Skill

批量重命名:批量修改文件/文件夹名称

功能描述

在指定目录下,批量将文件/文件夹名称中包含的指定内容替换为新内容。如果不填替换内容则实现删除效果。

所属分类

office/skills/file/replace4filename/

调用方式

from skills.file import replace4filename

replace4filename(
    path='./my_folder',
    del_content='old',
    replace_content='new',
    dir_rename=True,
    file_rename=True,
    suffix=None
)

参数说明

参数 类型 必填 默认值 说明
path str - 需要修改文件夹/文件名称的根目录。注意:该根目录名称不会被修改
del_content str - 需要替换/删除的内容
replace_content str '' 替换后的内容。不填则实现删除效果
dir_rename bool True 是否修改文件夹名称
file_rename bool True 是否修改文件名称
suffix str None 指定修改的文件类型。默认所有

返回值

None

使用示例

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Batch File Rename

  • What else does CoderWanFeng publish alongside Batch File Rename?

    Batch File Rename is one of 50 skills that DirSkills catalogs from CoderWanFeng/python-office, the repository it ships in. Its siblings there include Add Image Watermark, Add Line by Type and Add Text Watermark. Each one is a separate skill with its own page in this directory, installs the same way Batch File Rename does, and is maintained by CoderWanFeng in that same repository. The rest of the collection is listed on the CoderWanFeng/python-office page.

  • How does Batch File Rename compare to other Automation skills?

    Batch File Rename ranks #647 by stars among the 2226 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Batch File Rename against them. Open each page to compare what they document and how they install.