Introduction¶
When doing translations in environments like Cursor or Claude Code, the common approach is to ask the model to “translate it along the way” each time. This often leads to inconsistencies in terminology, messed-up formatting, and more severe issues with long documents and structured content (JSON, Markdown). If you want all translation requests to go through the same set of capabilities—multilingual support, glossaries, style constraints, and preservation of delimiters and structure—you need to separate translation from general conversations and delegate it to a dedicated Skill.
Below is an introduction to Tencent Hy-MT2-Translator on SkillHub (coordinate @tencent-adm/hy-mt2-translator). It is built on Tencent Hunyuan’s Hy-MT2 model, encapsulating machine translation for Agent scenarios. The official instructions require that all translation requests be processed via this Skill.
What Is This¶
Tencent Hy-MT2-Translator is an enterprise Skill released by the Tencent Hunyuan team (source: enterprise). The current version is 1.0.0, and its SkillHub category is knowledge-management. The SkillHub page is tagged with requires_api_key=true; you need to prepare and configure an API Key before use (refer to SKILL.md in the installed Skill directory for specific fields).
- Official API Endpoint: https://api.skillhub.cn/tencent-adm/hy-mt2-translator
- SkillHub Display Page: https://www.skillhub.cn/skills/tencent-adm/hy-mt2-translator
It solves the problem of providing reusable Hy-MT2 translation capabilities within Agent workflows, rather than relying on the main model to translate impromptu.
Core Features¶
The following capabilities are based on the official descriptions found in SkillHub and crawled metadata; details not explicitly listed will not be extended.
Languages and Input Formats¶
- Supports 38 languages.
- Supports single text segments, multi-line files, and JSONL batch translation.
Six Translation Modes¶
- basic: Basic text translation.
- terminology-constrained: Terminology constraints (vocabulary lists/glossaries).
- style-controlled: Style control (e.g., formal, colloquial, etc., based on the constraints you provide in the conversation).
- delimiter-preserving: Preserves specified delimiters during translation.
- structured-data: Translates structured content like JSON / HTML / XML / YAML / Markdown while maintaining the structure as much as possible.
- context-aware: Translation incorporating contextual information.
Installation and Activation¶
SkillHub recommends two methods: installing via the skillhub CLI or delegating the installation instructions to the current Agent to execute. The latter is given verbatim on the SkillHub page:
Please install `@tencent-adm/hy-mt2-translator` according to https://skillhub.cn/install/skillhub.md.
1. Install SkillHub CLI (if not already installed)¶
First, check if the CLI is already available:
command -v skillhub && skillhub --version
If it is not installed, follow the SkillHub installation documentation to perform a complete installation (including the CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
See instructions at: https://skillhub.cn/install/skillhub.md
2. Install this Skill to the current Agent’s skills directory¶
When installing the skill, you must use --dir to point to the actual skills directory read by the current Agent; otherwise, it will install to ./skills/ by default, and the Agent might not be able to load it. Common paths documented in SkillHub are as follows:
| Environment | Skills Directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
Installation command format (replace <skills directory> with the corresponding path from the table above):
skillhub install tencent-adm/hy-mt2-translator --dir <skills directory>
If the package name used by skillhub search / install does not match the coordinate, rely on the CLI search results or the result installed by the Agent following the official instructions.
3. Configure API Key¶
The metadata tag is requires_api_key=true. After installation, open the Skill’s SKILL.md in the corresponding skills directory and configure the key and backend according to the documentation; for configuration items not listed on the SkillHub public page, refer to SKILL.md.
After installing or updating skills, restart or refresh the Agent according to your client’s requirements to load the new Skill.
Typical Usage¶
This Skill is triggered via Agent conversations, rather than being a standalone executable application. Assuming the Skill is enabled and the API Key is configured, you can structure requests according to the six officially defined modes. The following are reproducible conversation directions corresponding to the official capability descriptions (for specific wording and parameters, refer to SKILL.md).
Basic Translation
Use the Hy-MT2 translation Skill to translate the following English into Simplified Chinese (basic mode):
Our API returns JSON with stable field names.
Terminology Constraints
Translate the following paragraph into English. Glossary: "Hunyuan" -> Hy, do not translate "SkillHub". Use terminology-constrained mode.
Style Control
Translate the following Chinese into Japanese, in a business email tone, style-controlled mode.
Delimiter Preservation
Translate the following string into French. Do not change the `{{name}}` and `|` delimiters, delimiter-preserving mode.
Hello|{{name}}|welcome
Structured Data
Translate the string values in this JSON into German, keeping the key names unchanged, structured-data mode:
{"title":"Release notes","body":"Fixed login bug."}
Context-Aware
The previous context is about cloud API billing. Translate the following sentence into English, context-aware mode:
This change does not affect pay-as-you-go items.
Multi-line Files or JSONL
Translate the currently open multi-line text file, auto-detect source language, target language is Korean.
Batch translate this JSONL file according to the Skill instructions, each line is a record, target language is Spanish.
Use Cases and Notes¶
Who is it for
- Those who frequently perform multilingual processing of documents, API documentation, and structured configurations within Agents and want to unify the workflow via Hy-MT2.
- Translation tasks requiring glossaries, styles, delimiters, or format constraints like JSON/Markdown.
- Teams that already have or can apply for translation-related API Keys (enterprise-oriented Skill).
Limitations and Notes
- Depends on an external API Key; the Skill cannot complete actual translation calls without configuration.
- The official description emphasizes its use for all translation requests; if there are other translation scripts in the project, you need to unify the entry points yourself to avoid multiple sets of logic for the same task.
- SkillHub statistics (based on crawled data): Rating 100000, Downloads 815; installation counts etc. will change over time, refer to the SkillHub page.
- Directly accessing
https://api.skillhub.cn/tencent-adm/hy-mt2-translatorin a browser may return 405; for instructions, prioritize the SkillHub skill page and localSKILL.md.
Conclusion¶
Tencent Hy-MT2-Translator incorporates Hy-MT2’s 38 languages and six translation modes into an Agent Skill, covering scenarios involving single sentences, multi-line files, and JSONL batches. When installing, use the SkillHub coordinate @tencent-adm/hy-mt2-translator and configure the API Key.
- SkillHub: https://www.skillhub.cn/skills/tencent-adm/hy-mt2-translator
- Official Endpoint: https://api.skillhub.cn/tencent-adm/hy-mt2-translator