🏷️
AutomationPython

XML Label Renamer

by CoderWanFeng

XML Label Renamer is an Automation skill for Claude Code, published by CoderWanFeng in python-office.

1.3K stars301 forkson CoderWanFeng/python-officeAdded 2026/08/12Repository updated 2026/08/04
officepippypipythonweixin
Install in seconds
Install XML Label Renamer
Copy XML Label Renamer 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/ruiming/change_label_in_xml ~/.claude/skills/change_label_in_xml

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/ruiming/change_label_in_xml/SKILL.md in CoderWanFeng/python-office
Installs to
~/.claude/skills/change_label_in_xml
Collection
One of 50 skills cataloged from this repository
Category
Automation1523 skills

What XML Label Renamer does

XML Label Renamer batch-replaces a specified tag name across XML annotation files in a directory. Use it to update dataset labels such as changing old_label to new_label.

XML Label Renamer is cataloged under Automation on DirSkills. XML Label Renamer comes from a repository tagged office, pip, pypi, python and weixin.

Documentation

README

change_label_in_xml Skill

修改 XML 标注文件中的 label

功能描述

批量修改指定目录下所有 XML 标注文件中的标签名(old_label 替换为 new_label)。

所属分类

office/skills/ruiming/change_label_in_xml/

调用方式

from skills.ruiming import change_label_in_xml

change_label_in_xml(
    dir_path='./dataset',
    old_label='cat',
    new_label='dog'
)

参数说明

参数 类型 必填 默认值 说明
dir_path str - 图片及标注文件的存放路径
old_label str - 需要修改的标签
new_label str - 修改后的标签

返回值

None

使用示例

from skills.ruiming import change_label_in_xml
change_label_in_xml(dir_path='./annotations', old_label='person', new_label='human')

原始函数

office.api.testApi.ruiming.change_label_in_xml

Frequently asked about XML Label Renamer

  • What else does CoderWanFeng publish alongside XML Label Renamer?

    XML Label Renamer 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 XML Label Renamer 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 XML Label Renamer compare to other Automation skills?

    XML Label Renamer ranks #670 by stars among the 1523 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 XML Label Renamer against them. Open each page to compare what they document and how they install.