← ClaudeAtlas

deepl-translate-nodelisted

Translate via DeepL when explicitly requested, or when wording is uncertain and a translation error has material consequences, such as ambiguous legal/medical/technical terms or official names. 用 DeepL 翻译;高风险且存在歧义的翻译。Confident everyday translation can be handled directly.
rockbenben/aishort-skills · ★ 0 · AI & Automation · score 75
Install: claude install-skill rockbenben/aishort-skills
# DeepL Translate Use DeepL when the user requests it, or when wording is uncertain and a translation error has material consequences. Confident everyday prose can be translated directly. Proper names, technical terms, idioms and unfamiliar language pairs are cues to assess uncertainty, not automatic reasons to call the API. ## Configuration and data flow The helper reads `DEEPL_API_KEY`, sends the supplied text over HTTPS to DeepL, and prints the translation. Use only content authorized for external processing; keep credentials out of the text and command output. The default host is `api-free.deepl.com`; Pro keys use `DEEPL_API_HOST=api.deepl.com`. If the key is missing, explain how to provide it through the environment. Persistent shell configuration is optional. ```bash export DEEPL_API_KEY="your-deepl-auth-key-here" ``` ```powershell $env:DEEPL_API_KEY = "your-deepl-auth-key-here" ``` To check configuration, print presence only: ```bash if [ -n "${DEEPL_API_KEY//[[:space:]]/}" ]; then echo 'DEEPL_API_KEY is set'; else echo 'DEEPL_API_KEY is missing'; fi ``` ```powershell if ([string]::IsNullOrWhiteSpace($env:DEEPL_API_KEY)) { 'DEEPL_API_KEY is missing' } else { 'DEEPL_API_KEY is set' } ``` ## Translate Node 18+ is required. Substitute the installed skill directory and quote its path: ```bash node "{SKILL_DIR}/translate.mjs" --target ZH-HANS --text "The plaintiff filed a motion to compel discovery." node "{SKILL_DIR}/translate.mjs" --source JA --target EN-US --