baoyu-translate
Agent skill fromJimLiu/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.
How to install baoyu-translate
install baoyu-translate
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills# or add only this skill to Claude Code: copy the folder
skills/baoyu-translate/
# into
~/.claude/skills/baoyu-translate/ (all projects)
.claude/skills/baoyu-translate/ (one project)
1# Translator23## User Input Tools45When this skill prompts the user, follow this tool-selection rule (priority order):671. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.82. **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.93. **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.1011Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.1213## Script Directory1415`{baseDir}` = this SKILL.md's directory. `${BUN_X}` = `bun` if installed; else `npx -y bun` if `npx` available; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values.1617| Script | Purpose |18|--------|---------|19| `scripts/main.ts` | CLI entry point. Default action splits markdown into chunks; also supports explicit `chunk` subcommand |20| `scripts/chunk.ts` | Markdown chunking implementation used by `main.ts` and kept compatible for direct invocation |2122## Preferences (EXTEND.md)2324First one found wins:2526| Priority | Path | Scope |27|----------|------|-------|28| 1 | `.baoyu-skills/baoyu-translate/EXTEND.md` | Project |29| 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-translate/EXTEND.md` | XDG |30…
Excerpt shown under the repository's MIT license.
