All skills
jimliu avatar

/baoyu-translate

@441ca30 official
by Jim Liu 宝玉jimliu/baoyu-skills26k stars
2,896

This skill should be used when the user asks to "translate", "翻译", "精翻", "translate article", "translate to Chinese", "translate to English", "改成中文", "改成英文", "convert to Chinese", "localize", "本地化", "refined translation", "精细翻译", "proofread translation", "快速翻译", "快翻", "这篇文章翻译一下", or provides a URL/file with translation intent. Supports three modes (quick/normal/refined) with custom glossary support.

Use this Skill: https://skilld.dev/gh/jimliu/baoyu-skills/baoyu-translate

This session only. Nothing lands on disk.

referencesconfigfirst-time-setup.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

First-Time Setup

Overview

When no EXTEND.md is found, guide user through preference setup.

BLOCKING OPERATION: This setup MUST complete before ANY translation. Do NOT:

  • Start translating content
  • Ask about files or output paths
  • Proceed to any workflow steps

ONLY ask the questions in this setup flow, save EXTEND.md, then continue.

Setup Flow

No EXTEND.md found
        |
        v
+---------------------+
| AskUserQuestion     |
| (all questions)     |
+---------------------+
        |
        v
+---------------------+
| Create EXTEND.md    |
+---------------------+
        |
        v
    Continue translation

Questions

Language: Use user's input language or saved language preference.

Use AskUserQuestion with ALL questions in ONE call:

Question 1: Target Language

header: "Target Language"
question: "Default target language?"
options:
  - label: "简体中文 zh-CN (Recommended)"
    description: "Translate to Simplified Chinese"
  - label: "繁體中文 zh-TW"
    description: "Translate to Traditional Chinese"
  - label: "English en"
    description: "Translate to English"
  - label: "日本語 ja"
    description: "Translate to Japanese"

Note: User may type a custom language code.

Question 2: Translation Mode

header: "Mode"
question: "Default translation mode?"
options:
  - label: "Normal (Recommended)"
    description: "Analyze content first, then translate"
  - label: "Quick"
    description: "Direct translation, no analysis"
  - label: "Refined"
    description: "Full workflow: analyze → translate → review → polish"

Question 3: Target Audience

header: "Audience"
question: "Default target audience?"
options:
  - label: "General readers (Recommended)"
    description: "Plain language, more translator's notes for jargon"
  - label: "Technical"
    description: "Developers/engineers, less annotation on tech terms"
  - label: "Academic"
    description: "Formal register, precise terminology"
  - label: "Business"
    description: "Business-friendly tone, explain tech concepts"

Note: User may type a custom audience description.

Question 4: Translation Style

header: "Style"
question: "Translation style?"
options:
  - label: "Storytelling (Recommended)"
    description: "Engaging narrative flow, smooth transitions"
  - label: "Formal"
    description: "Professional, structured, neutral tone"
  - label: "Technical"
    description: "Precise, documentation-style, concise"
  - label: "Literal"
    description: "Close to original structure"
  - label: "Academic"
    description: "Scholarly, rigorous, formal register"
  - label: "Business"
    description: "Concise, results-focused, action-oriented"
  - label: "Humorous"
    description: "Preserves humor, witty, playful"
  - label: "Conversational"
    description: "Casual, friendly, spoken-like"
  - label: "Elegant"
    description: "Literary, polished, aesthetically refined"

Note: User may type a custom style description.

Question 5: Save Location

header: "Save"
question: "Where to save preferences?"
options:
  - label: "User (Recommended)"
    description: "$HOME/.baoyu-skills/ (all projects)"
  - label: "Project"
    description: ".baoyu-skills/ (this project only)"

Save Locations

Choice Path Scope
User $HOME/.baoyu-skills/baoyu-translate/EXTEND.md All projects
Project .baoyu-skills/baoyu-translate/EXTEND.md Current project

After Setup

  1. Create directory if needed
  2. Write EXTEND.md with selected values
  3. Confirm: "Preferences saved to [path]"
  4. Mention: "You can add custom glossary terms to EXTEND.md anytime. See the glossary section in the file for the format."
  5. Continue with translation using saved preferences

EXTEND.md Template

target_language: [zh-CN/zh-TW/en/ja/...]
default_mode: [quick/normal/refined]
audience: [general/technical/academic/business/custom]
style: [storytelling/formal/technical/literal/academic/business/humorous/conversational/elegant]

# Custom glossary (optional) — add your own term translations here
# glossary:
#   - from: "Term"
#     to: "翻译"
#   - from: "Another Term"
#     to: "另一个翻译"
#     note: "Usage context"

Modifying Preferences Later

Users can edit EXTEND.md directly or delete it to trigger setup again.

Source: SKILL.md on GitHub

2 warnings16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides translation features with multi-mode workflows (quick, normal, refined) and custom glossary handling. Security scanning has detected zero risk vectors.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    2/10 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 441ca30. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 4 months ago
version
1.117.3
Other metadata
metadata
{
  "openclaw": {
    "homepage": "https://github.com/JimLiu/baoyu-skills#baoyu-translate",
    "requires": {
      "anyBins": [
        "bun",
        "npx"
      ]
    }
  }
}
  • translation
  • multilingual
  • chinese
  • english
  • glossary
  • markdown
  • content-localization
  • document-processing
  • workflow-automation

README badge

README badge for jimliu/baoyu-skills/baoyu-translate

Translates text, articles, and URLs between languages (EN↔ZH by default) in three modes: quick for direct translation, normal for analysis-informed translation, and refined for publication-quality output with review and polish. Supports custom glossaries, multiple style presets (storytelling, formal, technical, academic, business, etc.), and automatic chunking for long documents to maintain terminology consistency across sections.

Generated from the current SKILL.md.

Does this skill support languages other than Chinese and English?
The skill defaults to Chinese (zh-CN) and includes a built-in glossary for EN↔ZH pairs. It can accept custom target languages via the `--to` flag or `target_language` in EXTEND.md, but glossary support and auto-detection are optimized for Chinese/English workflows.
What's the difference between quick, normal, and refined modes?
Quick mode translates directly in one pass, best for short informal content. Normal mode analyzes content first, then translates with better consistency. Refined mode adds a review and polish cycle for publication-quality output.
How does the skill handle long articles?
If content exceeds 4000 words (configurable), normal and refined modes automatically chunk it into smaller pieces, extract terminology for consistency, and translate chunks in parallel using subagents if available. Quick mode translates without chunking regardless of length.
Can I use a custom glossary or style?
Yes. Create an EXTEND.md file in your project or home config directory to define custom glossaries (inline or external files), target audience, translation style (e.g., formal, technical, conversational), and other preferences. EXTEND.md is checked on first run and required before any translation.
What does the skill require to run?
Bun or npx (to run bun). The skill includes TypeScript scripts that chunk markdown and coordinate the translation workflow.

Generated from the current SKILL.md. These answers refresh after source changes.