baoyu-translate
Skill by JimLiu
Translates articles, blog posts and other files into a target language, with quick, normal and refined modes. Aimed at writers and teams who need Chinese or English translations with custom glossaries.
Install baoyu-translate
Built from the published package, never by AI.
git clone --depth 1 https://github.com/JimLiu/baoyu-skills /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-translate ~/.claude/skills/baoyu-translateRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/JimLiu/baoyu-skills /tmp/baoyu-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/baoyu-skills/skills/baoyu-translate ~/.gemini/antigravity-cli/skills/baoyu-translateAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
baoyu-translate is an agent skill that translates text, articles and files. It supports three modes: quick translates in one pass, normal analyzes the content before translating, and refined adds a review and polish step. Users can set the target language, audience, style and glossaries. Preferences are stored in an EXTEND.md file, and the skill asks setup questions the first time it runs.
Long content is split at markdown block boundaries and translated in chunks, with a shared glossary to keep terms consistent. The final result is saved as translation.md in a new folder next to the source. The skill also lists images that likely contain text in another language, without localizing them unless the user asks. It is intended for people who need article, blog or document translations, including publication-quality work.
Written from the project's SKILL.md and checked against it.
What it can do
- Quick modeTranslates short or informal text in a single pass without chunking.
- Normal modeAnalyzes the content for domain, tone and terminology, then translates it.
- Refined modeAdds critical review, revision and polish steps for publication-quality output.
- Custom glossariesMerges glossaries from EXTEND.md, glossary files and a --glossary flag.
- Style presetsOffers voice options such as storytelling, formal, technical, academic and humorous.
- Audience presetsAdjusts tone and annotation for general readers, developers, researchers or business readers.
- Chunked translationSplits long markdown into chunks and translates them with a shared glossary and context.
- Image language checkLists text-heavy images whose language likely differs from the translated article.
What you need
- bun, or npx to run bun
- Agent runtime that can run the skill
Try asking
- Translate this article to Chinese using refined mode.
- Quick translate this short post into English.
- Translate report.md to zh-CN and use my glossary file.
Good to know
- Quick mode never chunks, so long content may translate less consistently.
- Images are listed for language review but not localized unless requested.
- Subagent drafting runs only when an Agent tool is available; otherwise chunks are translated in sequence.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/baoyu-translate/SKILL.md, skills/baoyu-translate/scripts/chunk.ts, skills/baoyu-translate/scripts/main.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB -
references/config/extend-schema.md3 KB -
references/config/first-time-setup.md4 KB -
references/glossary-en-zh.md842 B -
references/refined-workflow.md5 KB
Show all 11 files
-
references/subagent-prompt-template.md3 KB -
references/workflow-mechanics.md625 B -
scripts/bun.lock1 KB -
scripts/chunk.ts8 KB -
scripts/main.ts1 KB -
scripts/package.json110 B
Alternatives to baoyu-translate
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
baoyu-translate: common questions
Does it support custom glossaries?
Yes. Glossaries can be set inline in EXTEND.md, loaded from glossary_files, or passed with a --glossary flag, which overrides the others.
What translation modes are available?
Quick, normal and refined. Quick translates directly, normal analyzes first, and refined adds review and polish steps.
Where does the translated file go?
The final translation is saved as translation.md in a folder named {source-basename}-{target-lang} next to the source file.
How do I install baoyu-translate?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is baoyu-translate free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is baoyu-translate safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to baoyu-translate?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
