jajupmochi/agent-harness/i18n-sync
Claude Code and agent skill by jajupmochi/agent-harness
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Check key parity across locales/*.json. If divergence is detected, list missing keys per locale and offer to add stubs. Use after editing any locale file.
Install
npx vskill@latest install jajupmochi/agent-harness/i18n-syncSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jajupmochi/agent-harness/i18n-sync.
/i18n-sync
Verify all locales/*.json files have identical key trees, and add stubs where they diverge.
Why
The site loads locales/<lang>.json at runtime. If zh.json is missing a key that en.json has, the user sees the English fallback (or empty text) where the Chinese should be — visible bug.
Steps
- Glob
locales/*.jsonto find all locale files. - Validate JSON for each (
jq empty) — error out if any is invalid (thejq-validate-jsonhook should already prevent this, but verify). - Extract key tree from
en.json(the canonical):
``bash jq 'paths(scalars) | map(tostring) | join(".")' locales/en.json | sort -u > /tmp/keys-en.txt ``
- For each non-en locale, extract its key tree and
diffagainst the canonical:
``bash for f in locales/*.json; do [ "$f" = "locales/en.json" ] && continue jq 'paths(scalars) | map(tostring) | join(".")' "$f" | sort -u > /tmp/keys-$(basename "$f" .json).txt diff /tmp/keys-en.txt /tmp/keys-$(basename "$f" .json).txt done ``
- Report:
- Which locales have which missing keys
- Which locales have EXTRA keys not in
en.json(potential typo)
- Offer to add stubs: for each missing key in a non-en locale, add a stub value (e.g.,
"<TODO: translate>") so the next deploy doesn't show empty text.
Notes for the agent
en.jsonis the canonical key tree. Other locales must match.- DON'T add a key to
en.jsonwithout also adding it to other locales. Use this skill to check parity AFTER edits. - Stubs use
<TODO: translate>so they're easy to grep + replace later. - If a locale has EXTRA keys not in
en.json, ask the user: did they add a key only to that locale by mistake, or shoulden.jsonget the key too?
Companion
jq-validate-jsonhook — runs automatically after every Write/Edit onlocales/*.jsonfiles; catches syntax errors immediately.githooks/pre-commit(optional) — a stricter version of this skill that fails the commit if parity is broken; consider adding for stricter discipline
Example output
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
- SKILL.md in the repositoryCheckingtemplates/personal-cite-static/.claude/skills/i18n-sync/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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
[](https://verified-skill.com/skills/jajupmochi/agent-harness/i18n-sync)