From be2cbecfb03dac50467cc9ec5968740b7b152438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Fri, 6 Mar 2026 02:33:25 -0600 Subject: [PATCH] feat(baoyu-translate): expand translation style presets from 4 to 9 with CLI flag support Add 5 new style presets (academic, business, humorous, conversational, elegant) to existing options. Wire --style CLI flag, update subagent prompt template with style section, and document in both READMEs. --- README.md | 60 ++++++++++++++++++- README.zh.md | 58 +++++++++++++++++- skills/baoyu-translate/SKILL.md | 21 ++++++- .../references/config/extend-schema.md | 4 +- .../references/config/first-time-setup.md | 20 +++++-- .../references/refined-workflow.md | 2 +- .../references/subagent-prompt-template.md | 6 ++ 7 files changed, 159 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 95ce3b3..65949c3 100644 --- a/README.md +++ b/README.md @@ -741,7 +741,7 @@ Format plain text or markdown files with proper frontmatter, titles, summaries, #### baoyu-translate -Translate articles and documents between languages with three modes: quick (direct), normal (analysis-informed), and refined (full publication-quality workflow). +Translate articles and documents between languages with three modes: quick (direct), normal (analysis-informed), and refined (full publication-quality workflow with review and polish). ```bash # Normal mode (default) - analyze then translate @@ -752,8 +752,31 @@ Translate articles and documents between languages with three modes: quick (dire # Refined mode - full workflow with review and polish /translate article.md --mode refined --to zh-CN + +# Translate a URL +/translate https://example.com/article --to zh-CN + +# Specify audience +/translate article.md --to zh-CN --audience technical + +# Specify style +/translate article.md --to zh-CN --style humorous + +# With additional glossary +/translate article.md --to zh-CN --glossary my-terms.md ``` +**Options**: +| Option | Description | +|--------|-------------| +| `` | File path, URL, or inline text | +| `--mode ` | `quick`, `normal` (default), `refined` | +| `--from ` | Source language (auto-detect if omitted) | +| `--to ` | Target language (default: `zh-CN`) | +| `--audience ` | Target reader profile (default: `general`) | +| `--style