Bilingual Mail Translator
by @huacius
Build or improve a bilingual email translation and notification workflow that converts raw emails into Chinese-friendly bilingual output. Use when designing...
clawhub install bilingual-mail-translator๐ About This Skill
name: bilingual-mail-translator description: Build or improve a bilingual email translation and notification workflow that converts raw emails into Chinese-friendly bilingual output. Use when designing prompt-driven email formatting, subject/date/body bilingual rendering, recipient truncation, quoted-history summarization, duplicate-line suppression, signature handling, or reusable translation contracts for mail assistants and inbox notifications.
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:
Program side should stay focused on:
Reference implementation pattern
Example primary script:
scripts/mail_translate.pyExample runtime path: 1. a watcher, inbox poller, or notifier prepares raw mail 2. a translation script builds the mail prompt 3. a lightweight worker agent or LLM runtime runs the translation 4. postprocess stays pass-through for formatting 5. 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
1. Read the current prompt contract documents. 2. Update the translation prompt or prompt assembly only where the contract needs to change. 3. Keep formatting decisions in prompt, not in postprocess. 4. Update regression tests for prompt contract assertions. 5. Run representative tests for the prompt contract. 6. For meaningful prompt changes, run one or more real sample mails through the translation entrypoint. 7. Compare actual output against the current accepted product direction. 8. Update the contract docs if the accepted behavior changed.
Accepted current product direction
....ๅๅฒ้ฎไปถๆ่ฆ๏ผ.References
references/contracts.mdreferences/commands.md