Foreword¶
When editing documents in conversations or organizing multilingual materials, the common practice is to repeatedly open translation websites or write your own scripts to call APIs. The former disrupts the workflow, and the latter requires maintaining API keys and language codes. If you want an Agent to automatically follow the same workflow when the user says “翻译” or “translate”—supporting single and batch translation, automatic language detection, and translation via either optional APIs or an AI model—you can install a Skill into the current client and trigger it with natural language.
Below is an introduction to the SkillHub community skill “Common Language Translation” (coordinate @user_d39ac014/translate-2): its positioning, capabilities, and installation method.
What Is This¶
“Common Language Translation” is an Agent Skill categorized under office efficiency (SkillHub category office-efficiency), maintained by the community publisher user_d39ac014. The current SkillHub page lists version 1.0.0, source community. The skill’s tags indicate requires_api_key=false: even without configuring a third-party translation API, it can rely on the Agent-side AI translation to complete requests.
One-sentence positioning: high-accuracy text translation among 15+ languages, supporting single and batch tasks, automatic language detection, multiple translation paths (API / AI), and multiple output formats; suitable for translation, language conversion, and multilingual text processing. Trigger words in the official description include: 翻译, translate, 翻译成, translation, language exchange.
- SkillHub page: https://www.skillhub.cn/skills/user_d39ac014/translate-2
- API coordinate page: https://api.skillhub.cn/user_d39ac014/translate-2
Core Features¶
The following capabilities come from the SKILL.md within the skill package and the accompanying script documentation, consistent with the store description.
- Single translation: given a source text and target language, returns the translation.
- Batch translation: processes multiple items at once (list, multi-line text, etc.), suitable for glossaries or lists of short sentences.
- Automatic language detection: when the source language is not specified, the skill identifies it before translating.
- Multiple translation paths: tries configured API translation first; falls back to Agent (referred to as Claude in the docs) AI translation on failure or when not configured.
- Output formats: supports translation-only, source–target pairs, and a detailed format including fields like source language, target language, and translation method.
The skill documentation lists supported languages (15+) and provides code examples:
| Language | Code |
|---|---|
| Chinese (Simplified) | zh |
| Chinese (Traditional) | zh-TW |
| English | en |
| Japanese | ja |
| Korean | ko |
| Russian | ru |
| Arabic | ar |
| French | fr |
| German | de |
| Spanish | es |
| Italian | it |
| Portuguese | pt |
| Thai | th |
| Vietnamese | vi |
| Hindi | hi |
The auto-detection notes mention that it can additionally recognize common languages such as zh, en, ja, ko, ru, ar, fr, de, es, etc.
Optional API configurations (not required): Google Cloud Translate, DeepL, LibreTranslate; when not configured, the docs explicitly state that AI translation provides the fallback.
Installation and Activation¶
1. Install SkillHub CLI¶
If it is not installed on your machine, you can first check the version:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub official installation docs to perform the full installation (excerpt):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Full installation instructions: https://skillhub.cn/install/skillhub.md
2. Install This Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise the default ./skills/ may not be loaded by the client.
skillhub install @user_d39ac014/translate-2 --dir <skills directory>
Common paths for various clients (from the SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also send the prompt provided on the official page to your Agent and have it install @user_d39ac014/translate-2 according to https://skillhub.cn/install/skillhub.md.
After installation, restart or refresh the skill list as required by your client so that SKILL.md is loaded.
3. Optional: Command-line Script¶
The skill package includes scripts/translate.py, which can perform single or batch translations in the terminal (requires Python 3). Examples:
# Single
python scripts/translate.py --text "Hello" --target zh
# Batch (one item per line in file)
python scripts/translate.py --batch --file input.txt --target ja
# Specify source language
python scripts/translate.py --text "Bonjour" --source fr --target en
If you use Google, DeepL, or LibreTranslate, configure the corresponding services in the script or via environment variables as described in the “API Configuration” section of SKILL.md; if not configured, the script will use the fallback logic, and the Agent will complete the translation.
Typical Usage¶
The skill is designed to be natural-language driven. The Agent follows the four-step workflow described in the docs: recognize translation intent → parse text and languages → execute translation (API first, AI fallback) → format the output according to user preferences.
Single Translation¶
把「你好世界」翻译成英文
One possible output form: Hello World (or the skill’s defined “with source text” format).
Batch Translation¶
把以下内容翻译成日文:
苹果
香蕉
橙子
The documentation shows example output as a Japanese result with item-by-item alignment.
Auto-detect Source Language¶
Translate: Bonjour le monde
If the source language is not specified, it first recognizes French, then provides the target-language translation (the user can state the target language in the same sentence).
Trigger Methods¶
Besides “翻译 / translate,” the documentation also lists expressions such as “用 XX 语怎么说,” “How do you say X in XX,” “convert to XX,” etc., enabling you to speak your needs directly while writing docs, editing commit messages, or preparing multilingual READMEs.
Suitable Scenarios and Notes¶
Who It’s For
- Developers or operations staff who frequently handle multilingual content (Chinese/English/Japanese/Korean, etc.) in Agent sessions.
- People who want to batch-translate short sentences or glossaries without switching to a browser each time.
- Teams that already have SkillHub CLI and want to install community Skills uniformly in environments like Cursor or Claude Code.
Limitations and Notes
- Store data: The SkillHub page shows a rating of 100000, 1083 downloads, and 0 installs; these are page statistics that change over time—refer to the official site at the time of writing.
- API and accuracy: The documentation marks “high” accuracy for major languages and “medium” for others, and notes that AI fallback ensures a result; professional legal or medical translations still require human review.
- Batch formatting: The documentation recommends using lists or separate lines; avoid pasting multiple items into one line to prevent parsing issues.
- Version information: The store lists v1.0.0; the skill package’s
SKILL.mdcontains a Version History with additional iteration records. If behavior differs from the description, refer to the localSKILL.mdin your installed package. - Meaning of “no API key required”: The tag and docs indicate that the AI path is usable; to use Google/DeepL, etc., you still need to obtain and configure keys yourself.
Conclusion¶
“Common Language Translation” consolidates single, batch, language detection, and multiple output formats into a single Skill. On SkillHub it is marked as enabling an AI translation path without requiring an API key, making it suitable as a default translation workflow inside an Agent. Remember the coordinate @user_d39ac014/translate-2 and use --dir to point to the correct skills directory when installing.
- SkillHub: https://www.skillhub.cn/skills/user_d39ac014/translate-2
- Coordinate API page: https://api.skillhub.cn/user_d39ac014/translate-2