Agent Skillsfastclaw-ai/fastclaw › translation

translation

GitHub

提供多语言文本翻译及语言检测功能,支持自动识别源语言并默认输出英文。适用于用户请求翻译内容、检测文本语言或处理多语言场景的任务。

skills/translation/SKILL.md fastclaw-ai/fastclaw

Trigger Scenarios

用户请求翻译文本 询问文本所属语言

Install

npx skills add fastclaw-ai/fastclaw --skill translation -g -y
More Options

Use without installing

npx skills use fastclaw-ai/fastclaw@translation

指定 Agent (Claude Code)

npx skills add fastclaw-ai/fastclaw --skill translation -a claude-code -g -y

安装 repo 全部 skill

npx skills add fastclaw-ai/fastclaw --all -g -y

预览 repo 内 skill

npx skills add fastclaw-ai/fastclaw --list

SKILL.md

Frontmatter
{
    "name": "translation",
    "metadata": {
        "fastclaw": {
            "always": false
        }
    },
    "description": "Translate text between languages. Use when the user asks to translate content, detect language, or work with multilingual text."
}

Translation Skill

Translate text between languages using the exec tool with Python.

How to Translate

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)

Language Codes

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)

Guidelines

  • Auto-detect source language when not specified
  • Default target is English unless the user specifies otherwise
  • For long texts, split into chunks if needed (max ~5000 chars per request)
  • Always show both original and translated text
  • If the user asks "what language is this", detect and report without translating

Version History

  • beee30c Current 2026-07-25 08:17

Same Skill Collection

internal/agent/bundled_skills/camoufox-cli/SKILL.md
internal/agent/bundled_skills/skill-creator/SKILL.md
skills/code-runner/SKILL.md
skills/data-analysis/SKILL.md
skills/fastclaw-skill-guide/SKILL.md
skills/fastclaw-skill-learner/SKILL.md
skills/image-gen/SKILL.md
skills/skill-creator/SKILL.md
skills/web-search/SKILL.md
internal/agent/bundled_skills/find-skills/SKILL.md
skills/find-skills/SKILL.md

Metadata

Files
0
Version
533a138
Hash
fc29d03a
Indexed
2026-07-25 08:17

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 01:41
浙ICP备14020137号-1 $Carte des visiteurs$