Translate text between languages. Use when the user asks to translate content, detect language, or work with multilingual text.
67
82%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Translate text between languages using the exec tool with Python.
Use the exec tool to run a Python script that performs translation. Use the deep-translator library (pip install if needed).
# Install if needed, then translate
import subprocess
subprocess.check_call(["pip", "install", "-q", "deep-translator"])
from deep_translator import GoogleTranslator
text = "YOUR_TEXT_HERE"
source = "auto" # auto-detect source language
target = "en" # target language code
result = GoogleTranslator(source=source, target=target).translate(text)
print(result)Common codes: en (English), zh-CN (Chinese Simplified), zh-TW (Chinese Traditional), ja (Japanese), ko (Korean), fr (French), de (German), es (Spanish), pt (Portuguese), ru (Russian), ar (Arabic), hi (Hindi)
3834010
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.