Tooluck logoTooluck
SKILL.md

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)

skills/baoyu-translate/SKILL.md

MITFull file
1# Translator
2
3## User Input Tools
4
5When this skill prompts the user, follow this tool-selection rule (priority order):
6
71. **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.
10
11Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
12
13## Script Directory
14
15`{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.
16
17| 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 |
21
22## Preferences (EXTEND.md)
23
24First one found wins:
25
26| 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.

More skills in baoyu-skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates