General
1,388 installs
baoyu-translate
by jimliu/baoyu-skills
This skill should be used when the user asks to "translate", "翻译", "精翻", "translate article", "translate to Chinese", "translate to English", "改成中文", "改成英文",…
Skill content
Three-mode translation with terminology consistency and publication-quality refinement workflows.
- Supports quick (direct), normal (analyze then translate), and refined (analyze, translate, review, polish) modes; auto-detects mode from user intent keywords
- Handles long content via intelligent markdown-aware chunking with parallel subagent translation and shared glossary enforcement across chunks
- Customizable via EXTEND.md for target language, mode, audience, style presets (storytelling, formal, technical, academic, business, humorous, conversational, elegant), and custom glossaries
- Requires first-time setup to configure preferences; applies built-in glossaries for language pairs and merges with user-defined terminology for consistency
- Preserves markdown formatting, transforms YAML frontmatter with source-language prefixes, and flags images that may need localization after translation
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):
- Prefer built-in user-input tools exposed by the current agent runtime - e.g., AskUserQuestion, request_user_input, clarify, ask_user, or any equivalent.
- 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.
- 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 ${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values.