Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

intl-pipeline

БесплатноБез исполняемых скриптовНе проверен

Use when working on the translation pipeline (`src/scripts/intl-pipeline/`), the post-import sanitizer (`intl-sanitizer.ts`), the `intl/pending-*` branches…

ethereumот ethereum★ 6 005 звёзд на GitHub

Об этом скилле

intl-pipeline

LLM-based, manifest-driven, incremental translation pipeline for ethereum.org. Translates English content (markdown in public/content/, JSON UI strings in src/intl/en/) into 24 target languages via Gemini — reached either directly or through OpenRouter (LLM_PROVIDER), whose keys carry a server-side spend limit — with a post-import sanitizer normalizing common artifacts. The workflow is manual-dispatch only; the daily cron was removed after a run billed $1,108 unattended (references/runbooks/cost-guard-tripped.md). ETHGlossary is the authoritative source for all Ethereum-ecosystem term translations consumed by the pipeline. Read this file fully on activation; pull from references/ only when the listed trigger applies.

The Core Rule: Don't Hand-Propagate English Changes

The single highest-leverage habit for keeping translations correct: never hand-edit translated content to reflect an English change. The pipeline tracks state via manifests (.manifests/{destPath}/source.json + translation.json per file+locale); hand-edits that follow an English change desynchronize the manifest from reality, and the next pipeline run either re-translates over your edit or produces merge conflicts.

The rule is NOT "never edit locales." It IS "don't hand-propagate English updates":

  • Allowed: Fixing a translation error when the English side hasn't moved (review-time corrections, sanitizer follow-ups). The manifest's English-to-locale map stays valid.
  • Not allowed: Editing a locale to reflect a new English value (URL change, attribute change, restructured paragraph). The manifest map becomes wrong.
  • If English-to-locale sync is genuinely urgent: run the pipeline on just that file (target_path). stamp_only: true is not a sync: it rewrites source.json from current English for pairs whose English changed and touches no locale file, so any locale you didn't fix by hand stays stale while its manifest claims it is current. Use it only after hand-fixing every affected locale, with no intl/pending-{base} branch open; procedure in references/non-english-edits.md.

Deletions go through English too. To remove a string — including an orphaned key code no longer references — delete it from the English source only; the pipeline propagates the removal on its next run. Hand-deleting the locale copies is hand-propagation.

Top Rules

  1. ETHGlossary is canonical for term translations. Brand names, people's names, programming languages, OS/platform names, concept terms — all live in ETHGlossary. Don't maintain parallel term banks. The pipeline queries the API via GLOSSARY_API_URL (default in src/scripts/intl-pipeline/config.ts). One policy override: software, company and tool names whose glossary form is not the English name reach the prompt as keep-Latin, except a short list of official Chinese brand names (references/ethglossary.md).
  2. One translation PR at a time per base branch. The pipeline commits to intl/pending-{base} (e.g., intl/pending-dev). Subsequent runs merge {base} into pending first, then translate the delta. Parallel translation PRs against the same base will conflict.
  3. The pipeline only targets dev in production. Hot fixes to staging / master go out English-only and catch up via prepare-release. Don't translate against staging / master unless you have a specific reason and use a custom target_branch.
  4. Manifests are inseparable from their locale file. Each translated file has two manifests, centralized under .manifests/{destPath}/: source.json and translation.json. Delete one, you must regenerate both — easiest via the pipeline in full mode for that file+locale. Never hand-edit a manifest.
  5. The sanitizer runs post-translation, not pre. Its job is to fix Gemini-introduced artifacts (BiDi mistakes, code-fence drift, brand-name mistranslations). It receives translation outputs, never English source.
  6. Don't add transliteration data here. All term/brand/person transliteration policy lives in ETHGlossary's docs/translation-policy.md and per-language entries. The intl-pipeline consumes; it does not author.
  7. Sanitizer fixes must split on code blocks first. Every text transformation in intl-sanitizer.ts MUST start with the code-block split pattern. Modifying code-fence contents breaks Solidity / Python / TypeScript examples in tutorials.
  8. An untagged code fence is code. Fence bodies never reach the model; only a prose-tagged fence (```text, txt, md, markdown, mdx -- PROSE_FENCE_TAGS in lib/shared-patterns.ts) is translatable. To make a fence's prose translatable, tag it ```text in the English source. code-fence-content fails any other fence whose body drifts from English, comments excepted.
  9. Pipeline failures are not always pipeline bugs. A "translation looks wrong" report may be: bad Gemini output (file upstream), missing ETHGlossary term (add t
Полный SKILL.md на GitHub

Установить intl-pipeline в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/evals.jsonreferences/architecture.mdreferences/ethglossary.mdreferences/gotchas.mdreferences/manifests.mdreferences/non-english-edits.mdreferences/orchestration.mdreferences/recovery.mdreferences/runbooks/cost-guard-tripped.mdreferences/runbooks/fix-sanitizer-bug.mdreferences/sanitizer.md

FAQ

Что делает скилл intl-pipeline?

Use when working on the translation pipeline (`src/scripts/intl-pipeline/`), the post-import sanitizer (`intl-sanitizer.ts`), the `intl/pending-*` branches, the `intl-pipeline.yml` GitHub Actions workflow, ETHGlossary integration, or any translation-related issue (broken translations, missing locales, manifest drift, sanitizer false positives, ETHGlossary term lookups, language-group transliteration questions). Provides the manifest-driven incremental pipeline mental model, the "don't hand-propagate" rule, recovery procedures, the ETHGlossary-as-canonical-source policy, and the `intl/pending-{base}` orchestration contract.

Как установить скилл intl-pipeline?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл intl-pipeline запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить intl-pipeline с