← Back to Skills Marketplace
Chinese Name Pinyin Sort
by
zhangxiaopeng-zgci
· GitHub ↗
· v1.0.0
· MIT-0
21
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install chinese-name-pinyin-sort
Description
按拼音排序中文姓名。当用户需要给中国人名单按拼音排序、给姓名排序、中文姓名排序、拼音排姓名时使用。处理多音字姓(如曾zēng/仇qiú/解xiè)、同音异姓按笔画分组(如于3<余7<俞9<虞13)、同姓先排完再排下一个姓等同音姓排序惯例。
README (SKILL.md)
中文姓名拼音排序
将中文姓名按拼音排序,遵循中文惯例而非纯字母序。
核心规则
- 按姓氏拼音字母序分组
- 同音姓按笔画排序:于(3画) \x3C 余(7画) \x3C 俞(9画) \x3C 虞(13画)
- 排完一个姓再排下一个姓:先排完所有"刘"姓,再排"柳"姓
- 同姓内按名字拼音排序
- 同音名按笔画排序
- 多音字姓自动修正:曾→zēng、仇→qiú、解→xiè 等
用法
运行排序脚本:
python3 scripts/sort_names.py "张三、李四、王五"
python3 scripts/sort_names.py "张三,李四,王五"
echo "张三 李四" | python3 scripts/sort_names.py
选项:
--no-number:不显示序号--grouped:按姓氏分组显示
输入支持:逗号、顿号、空格、换行分隔
输出格式
1. 江奕云(Jiāng Yìyún)
2. 姜文(Jiāng Wén)
...
⚠ 同音不可分组:
刘欣、刘辛、刘鑫(Liú Xīn)
注意事项
- 笔画数据基于常见字硬编码表,罕见字可能退化为估算值
- 同音同笔画的不同姓名(如 刘鑫/刘辛/刘欣)纯拼音无法区分,会标记为"同音不可分组"
- 实际应用中对不可分组可追加笔画数等辅助规则
- 复姓(欧阳、司马等)已支持自动识别
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install chinese-name-pinyin-sort - After installation, invoke the skill by name or use
/chinese-name-pinyin-sort - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首个版本:中文姓名拼音排序,支持多音字姓修正、同音姓按笔画分组
Metadata
Frequently Asked Questions
What is Chinese Name Pinyin Sort?
按拼音排序中文姓名。当用户需要给中国人名单按拼音排序、给姓名排序、中文姓名排序、拼音排姓名时使用。处理多音字姓(如曾zēng/仇qiú/解xiè)、同音异姓按笔画分组(如于3<余7<俞9<虞13)、同姓先排完再排下一个姓等同音姓排序惯例。 It is an AI Agent Skill for Claude Code / OpenClaw, with 21 downloads so far.
How do I install Chinese Name Pinyin Sort?
Run "/install chinese-name-pinyin-sort" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Chinese Name Pinyin Sort free?
Yes, Chinese Name Pinyin Sort is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Chinese Name Pinyin Sort support?
Chinese Name Pinyin Sort is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Chinese Name Pinyin Sort?
It is built and maintained by zhangxiaopeng-zgci (@zhangxiaopeng-zgci); the current version is v1.0.0.
More Skills