jm-jsjkxyjs01-liu-801: Implementing a Chinese-English Word Sorting Tool with Agent Skill

Introduction

When preparing lessons, organizing vocabulary lists, or grading homework, it is often necessary to deduplicate a bunch of Chinese and English terms, sort them alphabetically or by their first character, and then display them grouped by the first letter. Handwriting the sort or writing a few lines of temporary scripts can work, but it requires repeating the rules every time, and agents easily miss conventions such as “default deduplication” and “case-insensitivity.”

Below is an introduction to the SkillHub community Skill jm-jsjkxyjs01-liu-801 (coordinate @user_1d0acb68/word-sorter-1). It writes “Extract terms -> Sort -> Optional grouping and statistics” into a standard SKILL.md, allowing Agents that support Skills to generate and call the local Python script word_sorter.py following the same set of steps, which is suitable for teaching and practice scenarios.

What is this

jm-jsjkxyjs01-liu-801 is an education category community Skill on SkillHub, published by user_1d0acb68, current version 1.0.0, and sourced as community. On the page and index, this Skill does not require an API Key (requires_api_key=false).

The Skill itself is a SKILL.md: it guides the Agent to create word_sorter.py on the user’s machine (the example path in the documentation is ~/Desktop/word_sorter.py), implements a “word sorting tool by first letter”, and explains the command-line usage and options. It does not rely on external online services; its core is a local Python 3 script.

Official Entrances:

  • SkillHub display page: https://www.skillhub.cn/skills/user_1d0acb68/word-sorter-1
  • API address in the materials: https://api.skillhub.cn/user_1d0acb68/word-sorter-1

(The SkillHub page currently only displays the name, version, and installation prompts; for functional details, refer to the SKILL.md inside the installation package.)

Core Functions

According to the SKILL.md inside the installed package, this Skill stipulates that the tool generated by the Agent has the following capabilities (all implemented by word_sorter.py):

  1. Term Sources: Pass words directly from the command line; --file reads from a UTF-8 text file; --interactive interactively inputs a piece of text and then automatically extracts words.
  2. Extraction Rules: English uses regex to match consecutive letters; Chinese matches 2 to 4 consecutive Chinese characters (used to pick out terms from paragraphs).
  3. Sorting and Deduplication: Default deduplication (preserving the order of first appearance before sorting); default case-insensitive sorting (str.lower); optional --case-sensitive, --reverse, --no-dedupe.
  4. Group by First Letter: --group outputs the sorted results grouped by the first character (letters will be converted to uppercase as the grouping key).
  5. Simple Statistics: Outputs the number of inputs, the number after deduplication, the number of groups in the first-letter distribution, the longest term, etc.

Installation and Activation

The Skill follows the general SkillHub installation process. First, confirm whether the local machine has the skillhub CLI, then install it to the current Agent’s skills directory (must use --dir, otherwise the default ./skills/ might not be loaded by the Agent).

1. Check or Install SkillHub CLI

command -v skillhub && skillhub --version

If not installed, you can execute according to the official SkillHub instructions (complete installation example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Documentation: https://skillhub.cn/install/skillhub.md

2. Install this Skill

When searching, you can see the coordinates and installation command, for example:

skillhub search word-sorter

Example of installing to Cursor’s skills directory (path depends on your local machine):

skillhub install word-sorter-1 --namespace user_1d0acb68 --dir ~/.cursor/skills/

Equivalent coordinate writing: @user_1d0acb68/word-sorter-1. After installation, the directory structure is usually @user_1d0acb68/word-sorter-1/SKILL.md.

You can also give the following prompt to an Agent that has integrated SkillHub installation instructions (consistent with the SkillHub page):

Please install `@user_1d0acb68/word-sorter-1` according to https://skillhub.cn/install/skillhub.md.

Cursor / Claude Code / Codex, etc.: The root directory for skills differs (e.g., Cursor is ~/.cursor/skills/, Claude Code is ~/.claude/skills/, Codex is commonly ~/.codex/skills/ or .agents/skills/ under the project), just change the --dir target when installing; the official has not separately written differentiated steps for this Skill, so unverified content is not expanded here.

After installing or updating the Skill, restart or refresh the Agent according to the requirements of your client so that it reads the new Skill.

Typical Usage

After the above steps, after the Agent reads SKILL.md, it should create word_sorter.py in the user environment and execute it as needed. The following commands come from the Skill’s embedded script description and can be reproduced locally (requires Python 3).

Pass words directly (default ascending, deduplicated, case-insensitive):

python3 ~/Desktop/word_sorter.py apple Cat banana dog cat

Chinese terms:

python3 ~/Desktop/word_sorter.py 苹果 香蕉 橙子 葡萄

Group by first letter:

python3 ~/Desktop/word_sorter.py --group 北京 上海 广州 深圳

Read from file and descending order:

python3 ~/Desktop/word_sorter.py --file words.txt --reverse

Keep duplicates, case-sensitive:

python3 ~/Desktop/word_sorter.py --case-sensitive --no-dedupe word1 Word1 word2

The typical way in a conversation is: explain “generate a word sorting script according to the Skill and process this word list”, and let the Agent write the script to disk and run one of the above commands; the Skill does not stipulate fixed trigger words, and the Agent’s compliance with SKILL.md is the standard.

Applicable Scenarios and Notes

Who it is for

  • Teaching scenarios that require repeatedly doing “vocabulary list organization, first-letter indexing” in class, homework, or experiments;
  • Those who want the Agent to output according to the same script and parameter conventions every time, rather than temporarily making up sorting logic;
  • Environments where Python 3 can run locally and writing script files to the user directory is allowed.

Limitations and Notes

  1. SKILL.md focuses on “generating word_sorter.py” and is not a large Skill project with YAML metadata; when upgrading the version, refer to the files inside the SkillHub package.
  2. Chinese extraction is limited to 2 to 4 consecutive Chinese characters, single-character words or longer phrases might not enter the vocabulary list as expected; English only matches [A-Za-z]+.
  3. The --file / --interactive paths and desktop directories vary from user to user, the Agent needs to use the actual writable path when executing.
  4. SkillHub statistics (based on crawled materials): Rating 100000, Downloads 803, Installation count 0; if inconsistent with the numbers in third-party summaries, refer to the SkillHub index/page.

Conclusion

jm-jsjkxyjs01-liu-801 solidifies Chinese and English vocabulary list sorting, deduplication, grouping, and simple statistics into a repeatable local Python workflow, categorized under education, and requires no API Key. If you are using a client that supports Skills like Cursor to teach vocabulary or basic data processing, you can install @user_1d0acb68/word-sorter-1 according to this article, and then let the Agent generate and call word_sorter.py according to the SKILL.md inside the package.

Official SkillHub page: https://www.skillhub.cn/skills/user_1d0acb68/word-sorter-1

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye