其他

baoyu-translate

jimliu/baoyu-skills

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.

  • 2.6万 次安装
  • 2.7万 星标
  • 收录于

安装命令

npx skills add https://github.com/jimliu/baoyu-skills --skill baoyu-translate

要点

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

SKILL.md

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, request_user_input, clarify, ask_user, 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 ${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.