Install
openclaw skills install @j3ffyang/simplified-to-traditionalConvert a Simplified-Chinese article in ai-thoughts/docs/ into its Traditional-Chinese twin, and keep the two in sync. The Simplified article is the source of truth and lives as -zh-hans.md; the Traditional twin is generated to -zh-hant.md with OpenCC (s2twp) plus a permanent cross-link. Use when the user asks to make, sync, or update the Traditional (繁體) version of a Chinese article — "convert to traditional", "做繁體版", "同步繁简", "zh-hant", "繁體". Never runs automatically; acts only on an explicitly named article. Future articles only — do NOT backfill existing files unless the user explicitly orders it.
openclaw skills install @j3ffyang/simplified-to-traditionalConvert one Simplified-Chinese article into Traditional Chinese, and keep the pair in sync.
-zh-hant.md should be overwritten. Never overwrite silently.docs/<YYMMDD-slug>.md is the English article and the legacy -chn.md files are the existing Simplified-Chinese articles — neither is a source here unless the user explicitly orders it.docs/<YYMMDD-slug>-zh-hans.md; Traditional twin = docs/<YYMMDD-slug>-zh-hant.md. (In ai-thoughts a bare .md is English and the legacy -chn.md files are out of scope.)s2twp (Taiwan, phrase-aware) — the best default for these literary articles.j3ffyang account:
> 繁体版:[<simplified title>](https://github.com/j3ffyang/ai-thoughts/blob/main/docs/<slug>-zh-hant.md)> 簡體版:[<traditional title>](https://github.com/j3ffyang/ai-thoughts/blob/main/docs/<slug>-zh-hans.md)繁体版; Traditional file → 簡體版) so neither file mixes scripts.../imgs/... path). The README lists the Simplified article only.docs/<YYMMDD-slug>-zh-hans.md (in this repo the source must be -zh-hans.md — a bare .md is English).-zh-hant.md), and overwrite permission if the output already exists.-zh-hant.md is present, stop and ask before overwriting — unless the user asked to update it.python3 .opencode/skills/simplified-to-traditional/scripts/sync_tra.py docs/<slug>-zh-hans.md
繁體版 cross-link, (b) converts the body with opencc -c s2twp, (c) injects the Traditional file's 简体版 cross-link, and (d) writes docs/<slug>-zh-hant.md.sync_tra.py prints a ⚠ … ambiguous form(s) to verify list after every run — check each against the cited edition (or the intended meaning) and pin any genuine fix in OVERRIDES. Surface anything else suspicious to the user; do not silently hand-fix — a hand-edit is drift and will fail the next --check.python3 .opencode/skills/simplified-to-traditional/scripts/sync_tra.py docs/<slug>-zh-hans.md --check
--check regenerates the Traditional in memory and diffs it against the file (ignoring the cross-link lines); non-zero exit means out of sync.(from, to) pair in scripts/sync_tra.py → OVERRIDES — it is applied after OpenCC on every re-sync, so it survives (a hand-edit would not).opencc -c s2twp is deterministic but context-blind: when one Simplified character maps to several Traditional ones, it can pick the wrong one for a rare, literary, or technical term. Two failure modes:
云(说)→ 雲(cloud); 干 → 乾(dry)/ 幹(do). Rare terms err most. sync_tra.py prints a lint of every risky form(雲 幹 髮 複 …)after each run — verify each against the cited edition and pin a fix in OVERRIDES if wrong.s2twp may rewrite characters its Taiwan dictionary prefers(e.g. 哄→鬨, 背→揹). Acceptable in running prose, but wrong inside a verbatim quote taken from another edition.Never delegate quoted primary text to a converter. For every verbatim quote, compare its Traditional characters with the edition named in the article's 引用来源; where s2twp differs, pin the (from, to) pair in OVERRIDES. Quoted text is otherwise frozen — do not change its characters or punctuation.
OVERRIDES)OVERRIDES in sync_tra.py is applied to the converted Traditional text after OpenCC, in order, on every re-sync. Add a pair only when OpenCC is genuinely wrong for this corpus; keep the list small and specific. Never hand-edit -zh-hant.md — a hand-edit is drift and fails --check.
docs/<slug>-zh-hant.md.j3ffyang URL, pointing at the other file).sync_tra.py <source> --check exits 0.OVERRIDES (never hand-edited), and quotes verified against the cited edition.../imgs/.docs/*-zh-hans.md and ask which to use; do not substitute a bare (English) or -chn.md file.opencc missing or wrong dict: report and stop; do not guess a conversion.-zh-hans.md nor an explicitly ordered -chn.md): ask.