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.

referencesworkflow-mechanics.md

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

Workflow Mechanics

Details for source materialization, output directory creation, and conflict resolution.

Materialize Source

Input Type Action
File Use as-is (no copy needed)
Inline text Save to translate/{slug}.md
URL Fetch content, save to translate/{slug}.md

{slug}: 2-4 word kebab-case slug derived from content topic.

Create Output Directory

Create a subdirectory next to the source file: {source-dir}/{source-basename}-{target-lang}/

Examples:

  • posts/article.md → posts/article-zh/
  • translate/ai-future.md → translate/ai-future-zh/

Conflict Resolution

If the output directory already exists, rename the existing one to {name}.backup-YYYYMMDD-HHMMSS/ before creating the new one. Never overwrite existing results.

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.