translate

SKILL.md

Skill: translate

When to Use

Use this skill when the user asks to:

  • Translate text to/from another language
  • Say something in a different language
  • Convert text between languages
  • Get a translation of a phrase or document
  • Detect the language of text

Input Parameters

Parameter Required Description Example
text Yes The text to translate Hello, how are you?
to Yes Target language code or name es, french, zh
from No Source language (auto-detected if omitted) en

Common Language Codes

Code Language Code Language
en English fr French
es Spanish de German
pt Portuguese it Italian
zh Chinese ja Japanese
ko Korean ar Arabic
ru Russian hi Hindi
nl Dutch sv Swedish

Procedure

  1. Extract the text and target language from the user's request
  2. Run the bundled script:
    python3 skills/translate/scripts/translate.py "Hello, how are you?" --to es
    
    With source language:
    python3 skills/translate/scripts/translate.py "Bonjour" --from fr --to en
    
  3. The script auto-installs deep-translator if needed
  4. Report the translation to the user

Bundled Scripts

Script Type Description
scripts/translate.py Python Translate text between languages

Script Usage

# Translate to Spanish (auto-detect source)
python3 scripts/translate.py "Hello, how are you?" --to es

# Translate from French to English
python3 scripts/translate.py "Bonjour le monde" --from fr --to en

# Translate to Japanese
python3 scripts/translate.py "Good morning" --to ja

Example

translate "hello world" to spanish
how do you say "thank you" in japanese
translate this to french: "the meeting is at 3pm"
what does "bonjour" mean in english
Weekly Installs
4
GitHub Stars
1
First Seen
13 days ago
Installed on
gemini-cli4
github-copilot4
codex4
amp4
cline4
kimi-cli4