changelabelinxml Skill

SkillFiles & storage

Batch-modify label names in all XML annotation files under a specified directory (replace old_label with new_label). Use when the user mentions changing XML labels, modifying annotations, or batch-changing labels.

Use changelabelinxml Skill in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add changelabelinxml Skill and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the changelabelinxml Skill skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

changelabelinxml SkillStart free

What this skill tells your AI

The instructions your AI receives, as published by coderwanfeng/python-office in skills/ruiming/change_label_in_xml/SKILL.md and read by ahel’s review.

修改 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_pathstr是-图片及标注文件的存放路径
old_labelstr是-需要修改的标签
new_labelstr是-修改后的标签

返回值

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

Signals

GitHub stars
1k
Forks
303
Last commit
Aug 2026
Advanced
Item type
skill
Key
change-label-in-xml
Source
github.com/coderwanfeng/python-office