2.7 KiB
Description:
Translate text through trans-cli with the Baidu Translation AI API, including JSON output, Baidu language codes, API key setup, diagnostics, and error handling.
This skill is ready for commercial/non-commercial use.
Publisher:
License/Terms of Use:
MIT-0
Use Case:
Developers and agents use this skill to translate text, diagnose trans-cli setup, choose Baidu-specific language codes, and recover from common Baidu Translation API errors.
Deployment Geography for Use:
Global
Known Risks and Mitigations:
Risk: Translated text is sent to Baidu through the external trans-cli package and Baidu Translation API.
Mitigation: Install only if the external package and Baidu text processing are acceptable for the intended data, and avoid sending sensitive text unless approved.
Risk: The skill requires a Baidu API key through TRANS_API_KEY or trans-cli configuration.
Mitigation: Prefer a secure environment variable or secret manager; keep ~/.trans-cli/config.json permissions restrictive and rotate exposed keys.
Risk: Baidu language codes differ from common ISO codes and can cause invalid-language failures.
Mitigation: Use trans languages or the documented Baidu code table before issuing translation commands.
Reference(s):
- ClawHub Skill Page
- Baidu Translate
- Baidu Translation Open Platform
- Baidu Translation Developer Center
- Baidu Translation API Key Management
- Baidu Translation Account Recharge
- Baidu Translation Usage Details
Skill Output:
Output Type(s): [text, markdown, shell commands, configuration, guidance]
Output Format: [Markdown guidance with inline shell commands and JSON examples]
Output Parameters: [1D]
Other Properties Related to Output: [May guide use of trans text --json, trans doctor --json, trans languages, and TRANS_API_KEY configuration.]
Skill Version(s):
1.0.1 (source: server release evidence)
Ethical Considerations:
Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.