Bilingual Mail Translator
/install bilingual-mail-translator
Bilingual Mail Translator
Use this skill when building, refining, or publishing a bilingual email translation workflow.
What this skill owns
This skill defines the prompt-layer contract for turning raw emails into user-facing bilingual notification text.
Keep these responsibilities in the model/prompt layer unless there is a deliberate product change:
- subject translation and bilingual display
- date normalization and display
- body bilingual formatting
- recipient truncation when there are more than 3 recipients
- quoted/history mail summarization
- duplicate-line suppression when translation equals original
- signature block formatting
Program side should stay focused on:
- extracting raw mail
- normalizing input headers before prompt assembly
- calling a lightweight worker or LLM runtime
- extracting output text
- fallback to raw mail when model output fails
Reference implementation pattern
Example primary script:
scripts/mail_translate.py
Example runtime path:
- a watcher, inbox poller, or notifier prepares raw mail
- a translation script builds the mail prompt
- a lightweight worker agent or LLM runtime runs the translation
- postprocess stays pass-through for formatting
- final text is delivered to the user
Required contract files
Read references/contracts.md first, then open the underlying source docs it points to when needed.
Change workflow
- Read the current prompt contract documents.
- Update the translation prompt or prompt assembly only where the contract needs to change.
- Keep formatting decisions in prompt, not in postprocess.
- Update regression tests for prompt contract assertions.
- Run representative tests for the prompt contract.
- For meaningful prompt changes, run one or more real sample mails through the translation entrypoint.
- Compare actual output against the current accepted product direction.
- Update the contract docs if the accepted behavior changed.
Accepted current product direction
- Keep bilingual output when the product goal includes language-learning support, source-text transparency, or side-by-side review.
- Preserve channel-specific indentation or spacing behavior only when a downstream renderer requires it.
- If translation equals original, keep only the original line.
- If recipients exceed 3, show the first 3 only and end directly with
.... - If quoted/reply history exists, keep the current mail as focus and summarize history below using a clear section label such as
历史邮件摘要:. - Keep signature formatting readable, but do not let signature cleanup override the general duplicate-suppression rule.
- Do not reintroduce formatting heuristics into postprocess.
References
- Contract summary and public design notes:
references/contracts.md - Generic command checklist:
references/commands.md
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bilingual-mail-translator - 安装完成后,直接呼叫该 Skill 的名称或使用
/bilingual-mail-translator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Bilingual Mail Translator 是什么?
Build or improve a bilingual email translation and notification workflow that converts raw emails into Chinese-friendly bilingual output. Use when designing... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 91 次。
如何安装 Bilingual Mail Translator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bilingual-mail-translator」即可一键安装,无需额外配置。
Bilingual Mail Translator 是免费的吗?
是的,Bilingual Mail Translator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Bilingual Mail Translator 支持哪些平台?
Bilingual Mail Translator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Bilingual Mail Translator?
由 Sengo Zhao(@huacius)开发并维护,当前版本 v0.1.0。