Agent skill · writing content · jimliu
baoyu-translate
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.
Why this skill is useful
Adds custom glossary support and three distinct translation modes that enhance the AI's translation capabilities.
What it needs
Requires bun, npx installed locally. About 8k tokens when loaded. Last updated 2026-07-04. 24,677 stars on the source repository.
What this skill does
Translator Three-mode translation skill: quick for direct translation, normal for analysis-informed translation, refined for full publication-quality workflow with review and polish. User Input Tools When this skill prompts the user, follow this tool-selection rule (priority order): 1. Prefer built-in user-input tools exposed by the current agent runtime — e.g., AskUserQuestion, requestuserinput, clarify, askuser, or any equivalent. 2. Fallback: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question. 3. Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order. Concrete AskUserQuestion references below are examples — substitute the local equivalent in other runtimes. Script Directory Scripts in scripts/ subdirectory. {baseDir} = this SKILL.md's directory path. Resolve ${BUNX} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun. Replace {baseDir} and ${BUNX} with actual values. Script Purpose -------- --------- scripts/main.ts CLI entry point. Default action splits markdown into chunks; also supports explicit chunk subcommand scripts/chunk.ts Markdown chunking implementation used by main.ts and kept compatible for direct invocation Preferences (EXTEND.md) Check EXTEND.md in priority order — the first one found wins: Priority Path Scope ---------- ------ ------- 1 .baoyu-skills/baoyu-translate/EXTEND.md Project 2 ${XDGCONFIGHOME:-$HOME/.config}/baoyu-skills/baoyu-translate/EXTEND.md XDG 3 $HOME/.baoyu-skills/baoyu-translate/EXTEND.md User home Result Action -------- -------- Found Read, parse, apply. On first use in session, briefly remind: "Using preferences from [path]. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jimliu/baoyu-translate