chen5656/huajun-shared-skills/i18n-translate

Claude Code and agent skill by chen5656/huajun-shared-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Lingui i18n translation runbook. Delegates the actual translation to a non-interactive agent CLI worker and only checks/loops/verifies the result. Covers requests such as "translate" and "update locales".

Install

npx vskill@latest install chen5656/huajun-shared-skills/i18n-translate

SKILL.md

The same SKILL.md was published earlier as chen5656/huajun-shared-skills/i18n-translate.

i18n Translation Skill

Bulk Lingui catalog translation is done by an external agent CLI (configured via init), not by you. Your job here is orchestration only: check whether translation is needed, launch the worker, verify its result, and retry a bounded number of times. Never translate strings yourself and never open worker.md — that file is the worker's prompt, not yours.

Init: first-time setup

Check whether <SKILL_DIR>/.init-config.json exists. If it doesn't, read <SKILL_DIR>/init.md and follow it before continuing. If it does, read it for agent_cli, model, skill_dir, and optional extra_flags.

Orchestrator workflow

  1. Check. From the target repo root, run npm run lingui:extract. If Lingui

reports 0 missing entries across all locales, stop — there is nothing to translate.

  1. Call the worker (attempt 1 of 3). Run, in the background:

``bash cd "$REPO_ROOT" && $AGENT_CLI --model "$MODEL" --mode accept-edits --add-dir "$SKILL_DIR" --print-timeout 30m $EXTRA_FLAGS \ --print "Act as the translation worker for the repo at $REPO_ROOT. That is the target repo: run every command there, and never in $SKILL_DIR (that directory only holds the worker prompt and helper scripts). Read $SKILL_DIR/worker.md in full, then follow it to completion. Do not launch another worker." ``

$EXTRA_FLAGS is the extra_flags value from .init-config.json (empty if unset) — e.g. for agy this is typically --dangerously-skip-permissions. $REPO_ROOT is the absolute path of the target repo you ran the extract in. Always spell it out in the prompt and cd there first: some agent CLIs adopt the --add-dir path as their working directory, and a worker that starts in $SKILL_DIR finds no catalogs and exits reporting "0 missing" — a false success. If a worker's report says it found no catalogs or no package.json, treat that as an environment failure, not a translation result, and re-run with the repo path stated explicitly.

Tell the user it's running and wait for it to exit rather than polling. A full run can take 20-30 minutes.

  1. Verify. Run npm run lingui:extract again. If every locale now shows 0

missing entries, report success with the counts and changed files — done.

  1. Retry or stop. If entries are still missing:
  • If fewer than 3 worker attempts have run, go back to step 2. The worker's own

extract step will pick up only what's still missing.

  • If 3 attempts have run and entries are still missing, stop. Report which

locales/counts remain, the last worker output, and wait for a human — do not attempt the translation yourself and do not start a 4th attempt.

Rules:

  • Run one worker at a time. Never run two workers concurrently, and never

translate a string yourself under any circumstance — that defeats the point of routing this to a cheap model.

  • Do not run lingui:compile or the Python helpers yourself; those belong to the

worker.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/chen5656/huajun-shared-skills/i18n-translate/badge)](https://verified-skill.com/skills/chen5656/huajun-shared-skills/i18n-translate)

Something wrong with this skill or its page? Tell us.