Agent skill

I18n

by lbedner in lbedner/aegis-stack

A skill your agent uses when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/…

MITAuto-check passedFrontend & Design

Install I18n

skills CLI
$ npx skills add lbedner/aegis-stack --skill i18n -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lbedner/aegis-stack i18n --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lbedner/aegis-stack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/i18n .claude/skills/i18n && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
i18n
GitHub stars
143
Token cost
~1.8k tokens
SKILL.md length
960 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/…

  • Works in 6 steps: Decide which tree owns the string… → Write or adjust the consuming code to… → Add the key with its real English string… → …
  • Template change introduces a new translation message key
  • SKILL.md covers When to use, Files that change, Procedure and Gates, plus 1 more section
  • Calls make

What it does

I18n is an agent skill from lbedner/aegis-stack. Use when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/ template tree). Covers adding the real English string, stubbing the same key into every other locale for parity, and the separate translation PR that later replaces placeholders with reviewed native text.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Internationalization and Translation. It works with FastAPI. The repository describes itself as: A production-ready FastAPI platform with modular components and a built-in control plane. The licence is MIT.

When your agent uses it

  • Template change introduces a new translation message key
  • In either the framework CLI (aegis/i18n/locales/)
  • A generated projects CLI (the app/i18n/locales/ template tree)

Example prompts

  • “/i18n”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Decide which tree owns the string (framework CLI vs generated-project
  2. Write or adjust the consuming code to call t(".", ...) or
  3. Add the key with its real English string to that tree's en.py, under
  4. Add the same key to every other locale file in that tree, using the
  5. Run the gates (see Gates below) and confirm the completeness test passes.
  6. If the generated-project tree changed, treat it as a template change

What it can do on your machine

Read from SKILL.md and the folder at commit fb708b7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

I18n loads about 1.8k tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 960 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lbedner/aegis-stack at commit fb708b7, republished under its MIT licence (© lbedner). 960 words, ~1,846 tokens.

Download SKILL.mdSave it as .claude/skills/i18n/SKILL.md (or your agent's skills folder).
name
i18n
description
Use when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/ template tree). Covers adding the real English string, stubbing the same key into every other locale for parity, and the separate translation PR that later replaces placeholders with reviewed native text.

i18n

Adds a new i18n message key so tests/core/test_i18n.py (framework side) or the generated project's own tests/test_i18n.py keeps passing. Both trees share the same rule: a key that exists in English must exist, with some value, in every other locale file, or the completeness test fails by name.

When to use

Use when a feature or fix needs a brand-new string shown through the translation layer (t("some.key") or lazy_t("some.key")), in either:

  • The framework's own CLI (aegis ... commands), backed by aegis/i18n/locales/.
  • A generated project's CLI (app/i18n/locales/ under the copier template), which is a separate, parallel i18n tree with the same shape.

Do NOT use this skill to perform the actual translation work into non-English languages; that is a separate, later PR (see Procedure below). Do NOT use it for changing the wording of an existing English string without adding a key; that is ordinary feature work, though it still needs the placeholder value updated in every other locale if the value materially changes (rare - most wording tweaks are English-only maintenance and do not require this skill).

Files that change

Framework i18n (aegis/i18n/):

  • aegis/i18n/locales/en.py: canonical MESSAGES: dict[str, str]. Add the key with its real English value under the matching section-comment banner (e.g. # --- Validation ---, # --- Interactive: AI service ---). Keys are dot-separated <area>.<name>, matching existing groups such as service.<name>, component.<name>, interactive.*, projectmap.*, add_service.*, deploy.*.
  • aegis/i18n/locales/{de,es,fr,ja,ko,ru,zh,zh_hant}.py: add the SAME key to each file, value = the English string, unmodified (a placeholder, not a translation).
  • aegis/i18n/locales/__init__.py: AVAILABLE_LOCALES set; only touch this if adding a whole new locale, not a new key.
  • aegis/i18n/registry.py: translate() does the lookup and fallback; no edit needed for a new key, it is generic over the dict.
  • tests/core/test_i18n.py: TestMessageCompleteness is the gate. A missing key fails with a message like Keys in en but not de: {'the.new.key'}; an extra key (present in a locale but not English) fails the mirror-image assertion.

Generated-project i18n (a template change, see the template-dev skill for the commit/render caveat):

  • aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/en.py
  • aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/{de,es,fr,ja,ko,ru,zh,zh_hant}.py
  • aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/registry.py.jinja: same fallback-chain translate(); no edit needed for a new key.
  • aegis/templates/copier-aegis-project/{{ project_slug }}/tests/test_i18n.py: the generated project's own completeness test. It imports only en and zh explicitly and asserts those two key sets match; it does not loop over all nine locales the way the framework's test does. Stub the key into all eight non-English locales anyway, for consistency with the framework rule and to keep every locale file real (no dangling English-only keys).

Procedure

Adding a new key:

  1. Decide which tree owns the string (framework CLI vs generated-project CLI). If both need it independently, repeat the rest of these steps once per tree.
  2. Write or adjust the consuming code to call t("<area>.<name>", ...) or lazy_t("<area>.<name>", ...) at the call site.
  3. Add the key with its real English string to that tree's en.py, under the appropriate section-comment banner, following the existing <area>.<name> naming.
  4. Add the same key to every other locale file in that tree, using the English string as the value (a placeholder, not a translation).
  5. Run the gates (see Gates below) and confirm the completeness test passes.
  6. If the generated-project tree changed, treat it as a template change: commit it (or use aegis init --dev) before validating with make test-template, per the template-dev skill.

Translation PR (separate flow, later):

  1. Take the placeholder (English-value) entries in the non-English locale files and replace them with real, native translations.
  2. The agent produces the initial translation pass.
  3. A human translator reviews and corrects it; iterate back and forth until the wording reads native, not like a literal translation. Mandarin is the main quality bar for "does this sound native."
  4. Keep phrasing compact: these are CLI strings rendered in a terminal. Prefer a compact, natural phrase over a longer one that is technically clearer; skip "clearer but longer" rewrites suggested along the way.
  5. Run the same gates again; only wording changed, so the completeness test should already pass, but confirm no key was dropped in the edit.
Show full SKILL.md (299 more words)Show less

Gates

  • make check (framework side: lint, typecheck, tests/core/test_i18n.py included in the default test run) must pass whenever aegis/i18n/locales/ changed.
  • make test-template when the generated-project locale files under aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/ changed; this generates a project and runs its own test suite, including tests/test_i18n.py.

Pitfalls

  • Adding a key to en.py only fails tests/core/test_i18n.py, which checks both directions (missing keys and extra keys) for every locale, so the key must exist everywhere before make check is green.
  • Do not write real translations in the same change that introduces the key; that is the separate translation PR's job, done with a human translator in the loop, not invented inline.
  • Word-for-word translations read wrong to native speakers; the bar is natural, native phrasing, and Mandarin is where this has mattered most in review.
  • CLI strings render in a fixed terminal width; prefer the compact phrasing and skip "clearer but longer" rewrites even when they read a bit better in isolation.
  • Generated-project locale edits are template changes: Copier renders from the committed git state (or the working tree only under aegis init --dev), so an uncommitted edit under app/i18n/locales/ will not show up in a freshly generated project until it is committed.
  • The runtime fallback in translate() (current locale, then English, then the raw key) means a missing locale entry would still show something reasonable at runtime, but tests/core/test_i18n.py does not rely on runtime behavior; it asserts exact key-set equality, so relying on the fallback instead of stubbing the key still fails the gate.
  • The generated project's own tests/test_i18n.py only compares en against zh by name; it will not catch a key missing from de, es, fr, ja, ko, ru, or zh_hant. Stub the key into all eight non-English locales regardless, since that test's narrower coverage is not a license to skip the others.

© lbedner, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/i18n of lbedner/aegis-stack.

Open the folder on GitHubat commit fb708b7

Compare with similar skills

I18n next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

I18n compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
I18n this skilllbedner/aegis-stack143—~1.8kAutomated safety check: PassMIT
Chatbox i18n Translatorchatboxai/chatbox42k—~508Automated safety check: PassGPL-3.0
Internationalization Workflow with i18niOfficeAI/AionUi33k1 repos~1.9kAutomated safety check: PassApache-2.0
Enforce Rules For I18nmoeru-ai/airi50k—~1.5kAutomated safety check: PassMIT
Claude Desktop Chinese Localizationjavaht/claude-desktop-zh-cn7.5k—~1.6kAutomated safety check: PassMIT
Translation ReviewDevolutions/UniGetUI26k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Chatbox i18n Translator

    chatboxai/chatbox

    Translates new or changed i18n keys from a Chatbox Pro diff, staged changes or a commit range, writing the locale JSON files directly with a built-in glossary.

    42k GitHub stars~508 tokensUpdated 14 days ago
    Frontend & DesignAuto-check passed
  • Standards for keeping all user-facing text translatable: read the i18n config first, use namespaced keys, reuse shared strings and follow the key naming rules.

    33k GitHub starsUsed in 1 repo~1.9k tokens
    Frontend & DesignAuto-check passed
  • Review pending AIRI translations on Crowdin in a batch, then sync them into the repository.

    50k GitHub stars~1.5k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Claude Desktop Chinese Localization

    javaht/claude-desktop-zh-cn

    Adds missing Simplified and Traditional Chinese translations to the Claude Desktop Chinese patch across three layers, then checks how many mappings actually hit.

    7.5k GitHub stars~1.6k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Translation Review

    Devolutions/UniGetUI

    Reviews UniGetUI .json language files for localization quality, detects parity issues, English-equal entries, wrong-script content, and cross-language outliers, then generates a dataset for…

    26k GitHub stars~1.3k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Frontend I18n

    langflow-ai/langflow

    Add, change, or review user-facing text in the Langflow frontend using the i18n system (i18next / react-i18next).

    156k GitHub stars~1k tokensUpdated today
    Frontend & DesignAuto-check passed

More from lbedner/aegis-stack

All 9 skills in this repo
  • Release

    lbedner/aegis-stack

    A skill your agent uses when cutting a release of the aegis-stack package.

    143 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Template Dev

    lbedner/aegis-stack

    A skill your agent uses when developing or modifying Copier templates in aegis/templates, or backporting a change from a generated project (e.g.

    143 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Add CLI Command

    lbedner/aegis-stack

    A skill your agent uses when adding a command to the aegis tool CLI (the framework's own aegis ...

    143 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Create Plugin

    lbedner/aegis-stack

    A skill your agent uses when building an Aegis Stack plugin, a separate package (aegis-stack-<name) that renders files into a project through aegis add <name.

    143 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Execute Issue

    lbedner/aegis-stack

    A skill your agent uses when handed a GitHub issue (number or URL) to execute end to end.

    143 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Squash Branch

    lbedner/aegis-stack

    A skill your agent uses when collapsing a feature branch into a single commit before opening or merging a PR.

    143 GitHub stars~660 tokensUpdated today
    Auto-check passed

Works with

Questions about I18n

What does I18n do?

A skill your agent uses when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/…. I18n is an agent skill from lbedner/aegis-stack. Use when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/ template tree).

When should I use I18n?

I18n fits situations like: template change introduces a new translation message key; in either the framework CLI (aegis/i18n/locales/); A generated projects CLI (the app/i18n/locales/ template tree).

How do I install I18n in Claude Code?

Run `npx skills add lbedner/aegis-stack --skill i18n -a claude-code`. Or copy the skill folder (.claude/skills/i18n in lbedner/aegis-stack) into .claude/skills/i18n in your project. Claude Code loads it when a task matches its description.

How do I install I18n in Codex?

Run `npx skills add lbedner/aegis-stack --skill i18n -a codex`. Or copy the skill folder (.claude/skills/i18n in lbedner/aegis-stack) into .agents/skills/i18n in your project. Codex loads it when a task matches its description.

Can I use I18n in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lbedner/aegis-stack --skill i18n -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/i18n, .gemini/skills/i18n, .github/skills/i18n and .opencode/skills/i18n in your project.

What does I18n need to run?

Going by SKILL.md and its folder, I18n needs the command-line tools its instructions call (make).

Does I18n access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is I18n safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does I18n use?

I18n is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does I18n use?

About 1.8k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to I18n?

Skills that share tags, products or a category with I18n: Chatbox i18n Translator (chatboxai/chatbox, 42k stars), Internationalization Workflow with i18n (iOfficeAI/AionUi, 33k stars), Enforce Rules For I18n (moeru-ai/airi, 50k stars) and Claude Desktop Chinese Localization (javaht/claude-desktop-zh-cn, 7.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains I18n?

lbedner (a GitHub user) maintains it in lbedner/aegis-stack, which has 143 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.

Source: lbedner/aegis-stack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.