simplified-to-traditional
БесплатноЗапускает вложенные скриптыНе проверенConvert 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…
от j3ffyang1 062 установки в других каталогахОб этом скилле
Simplified → Traditional (zh-hans → zh-hant)
Convert one Simplified-Chinese article into Traditional Chinese, and keep the pair in sync.
Approval gate — read before anything else
- Never convert or write without explicit user approval. This skill converts on demand only; it does not run automatically and does not pick articles on its own.
- Wait for the user to name the article. If they don't, do nothing but ask which one.
- Before writing, confirm the plan: the source file, the exact output path, and whether an existing
-zh-hant.mdshould be overwritten. Never overwrite silently. - Scope: future articles only. In this repo a bare
docs/<YYMMDD-slug>.mdis the English article and the legacy-chn.mdfiles are the existing Simplified-Chinese articles — neither is a source here unless the user explicitly orders it.
Conventions
- Filenames. Simplified article =
docs/<YYMMDD-slug>-zh-hans.md; Traditional twin =docs/<YYMMDD-slug>-zh-hant.md. (In ai-thoughts a bare.mdis English and the legacy-chn.mdfiles are out of scope.) - Source of truth = the Simplified file. The Traditional file is derived from it.
- Traditional variant. OpenCC
s2twp(Taiwan, phrase-aware) — the best default for these literary articles. - Cross-link. Exactly one line, directly under the H1 and above the infographic; Chinese label; a permanent absolute URL on the
j3ffyangaccount:- In the Simplified file:
> 繁体版:[<simplified title>](https://github.com/j3ffyang/ai-thoughts/blob/main/docs/<slug>-zh-hant.md) - In the Traditional file:
> 簡體版:[<traditional title>](https://github.com/j3ffyang/ai-thoughts/blob/main/docs/<slug>-zh-hans.md) - The label is written in the file's own script (Simplified file →
繁体版; Traditional file →簡體版) so neither file mixes scripts.
- In the Simplified file:
- Infographic stays Simplified and is shared by both files (same
../imgs/...path). The README lists the Simplified article only.
Procedure
- Wait for the user to name the article, then locate
docs/<YYMMDD-slug>-zh-hans.md(in this repo the source must be-zh-hans.md— a bare.mdis English). - Confirm the plan: source path, output path (
-zh-hant.md), and overwrite permission if the output already exists. - If an existing
-zh-hant.mdis present, stop and ask before overwriting — unless the user asked to update it. - Run the sync script:
It (a) injects/updates the Simplified file'spython3 .opencode/skills/simplified-to-traditional/scripts/sync_tra.py docs/<slug>-zh-hans.md繁體版cross-link, (b) converts the body withopencc -c s2twp, (c) injects the Traditional file's简体版cross-link, and (d) writesdocs/<slug>-zh-hant.md. - Review the generated Traditional against the Simplified, and clear the script's lint. OpenCC can pick the wrong form for a 一简对多繁 character (see "OpenCC pitfalls" below) and can rewrite characters inside a quote.
sync_tra.pyprints a⚠ … ambiguous form(s) to verifylist after every run — check each against the cited edition (or the intended meaning) and pin any genuine fix inOVERRIDES. Surface anything else suspicious to the user; do not silently hand-fix — a hand-edit is drift and will fail the next--check. - Verify the pair is in sync:
Exit 0 = in sync; exit 1 lists what is stale.python3 .opencode/skills/simplified-to-traditional/scripts/sync_tra.py docs/<slug>-zh-hans.md --check - Report: source, output, and any review notes.
Keeping the two in sync
- After editing the Simplified article, re-run the sync to refresh its Traditional twin.
--checkregenerates the Traditional in memory and diffs it against the file (ignoring the cross-link lines); non-zero exit means out of sync.- Do not treat the Traditional file as an editable primary. Edit the Simplified and re-sync. If a term is genuinely mis-converted by OpenCC, tell the user and decide together, then pin it as a
(from, to)pair inscripts/sync_tra.py→OVERRIDES— it is applied after OpenCC on every re-sync, so it survives (a hand-edit would not). - If the user says both twins were modified, run
--checkbefore committing. A hand-edit that lands on the Traditional alone leaves the pair divergent — the Simplified still carries the old wording. Fix the Simplified (the source of truth) and re-sync; never hand-edit the Traditional to match. - Rename the source before creating the twins. Both output filenames and each file's
原文:link derive from the source name, so a slug change afterwards strands four absolute URLs:繁体版,簡體版, and the two原文:lines. If a rename happens later, re-run the sync and fix the two原文:links by hand —--checkdiffs the body only, never the filename.
OpenCC pitfalls (一简对多繁)
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 technic
Установить simplified-to-traditional в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл simplified-to-traditional?
Convert 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 <YYMMDD-slug>-zh-hans.md; the Traditional twin is generated to <YYMMDD-slug>-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.
Как установить скилл simplified-to-traditional?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл simplified-to-traditional запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic