Skills CLI
For any agent that reads SKILL.md files: Claude Code, Codex, Cursor and others. Run it in your app's folder and pick your agent when asked.
$ npx skills add Kamaleshkabeerdoss/nativeskill --skill nativeskillInstall the skill, then see what your agent does when you ask it to add a language or check the ones you have: the steps, the evidence labels, the three scripts, and what the check reports.
The repo holds one skill, nativeskill. Install it with the skills CLI, as a Claude Code plugin, or link it from a clone. Every method installs the same folder.
For any agent that reads SKILL.md files: Claude Code, Codex, Cursor and others. Run it in your app's folder and pick your agent when asked.
$ npx skills add Kamaleshkabeerdoss/nativeskill --skill nativeskillThe repo is also a plugin marketplace. Add it, then install the plugin.
$ /plugin marketplace add Kamaleshkabeerdoss/nativeskill $ /plugin install nativeskill@nativeskill
Choose Codex in the skills CLI. The repo also ships a Codex plugin manifest, .codex-plugin/plugin.json, with ready-made prompts.
Clone the repo and link skills/nativeskill into your agent's skills folder. The scripts work through the link.
$ git clone https://github.com/Kamaleshkabeerdoss/nativeskill $ mkdir -p .claude/skills $ ln -s "$PWD/nativeskill/skills/nativeskill" .claude/skills/nativeskill
Node.js 22.20 or later. The scripts use nothing else: no packages, no account, no server.
Run the install command again. Then ask your agent to use nativeskill as before; nothing in your app needs to change.
Ask your agent to add one or more languages. The skill gives it these steps, in this order, and it does not stop until the check passes.
Detect the stack and the source catalog: ARB, JSON or i18next, strings.xml, .strings or .xcstrings. New strings go in the format the app already uses.
scan.mjs lists UI text typed straight into the code. Each hit moves into the catalog under a key named for its action, like billing.stopRenewal, not cancel2.
Before any wording, decide what each control does and its role: button, link, title, field label, error or status. A key called cancel is not an action.
For contested actions (account, billing, permissions) lookup.mjs returns words real apps ship. A match is reused; anything else is written and labelled draft.
Create the target file with the exact keys, the plural categories that language needs, and placeholders copied byte for byte. Then register the locale where the platform reads it.
Run check.mjs, fix every error, run it again. Then read each new line as a native speaker would and shorten anything that will not fit its button.
Ask your agent to check languages you already ship. It reports each problem with the key, the current text, the action it should perform, a proposal and its evidence label.
Run the check before editing, so missing keys, placeholder drift, broken ICU, incomplete plurals, length blowups and untranslated copies are listed first.
A string can pass the check and still be the wrong action, the wrong formality or a word-for-word calque. The agent reads what remains against the locale notes.
A review-only request gets the table and no file changes. A fix request applies the edits, then reruns the check until it exits 0.
Grammatical lines that still mean the wrong thing:
Batal on stop-renewalتحميل for download过滤器 for filtersகாப்பிடு for archiveअभी नहीं for skipHerunterladen Sieします on a buttonUnduh in MalayEvery proposed string carries one label, so you can see at a glance which words real apps already ship and which are new.
| Label | Meaning |
|---|---|
| source-attested | A pinned upstream UI shipped this phrase for this action and role, and no reviewer rejected it. |
| draft | An unreviewed suggestion, including every sentence the agent composes and every catalog draft. |
| uncovered | The lookup found nothing. The agent writes the smallest accurate phrase and labels it draft. |
| mixed | The hits disagree, or one is marked preferred: false. The agent decides by what the control does and reports both candidates. |
lookup.mjs ta auth.sign_in button is mixed: Django's உள்ளே போ is attested but rejected (it means “go inside”), and the preferred line is the draft உள்நுழை. The button gets உள்நுழை, labelled draft.They live in the installed skill folder and run with plain Node.js. Your agent runs them; you can too.
scan.mjs Find hardcoded textLooks in Dart, Kotlin, Java, Swift, TSX, JSX, XML and Vue for literals in Text(…), setText(…), title, label, hint, placeholder and android:text. Skips @string/ references, URLs and tokens with no spaces. Exits 1 when it finds any.
$ node <skill-dir>/scripts/scan.mjs lib app/srclookup.mjs Find the wordsTakes a locale, an action id and a role. Prints the locale profile (script, direction, plural categories) and the wording with its status, preferred entry and sources.
$ node <skill-dir>/scripts/lookup.mjs ms-MY billing.stop_renewal button $ node <skill-dir>/scripts/lookup.mjs ta auth.sign_out button
check.mjs Check a catalogCompares a target catalog to its source. Exits 0 with no errors, 1 with errors and 2 on wrong arguments. --json prints a machine-readable report; --format is auto, json, android, strings or xcstrings.
$ node <skill-dir>/scripts/check.mjs --source app_en.arb --target app_ar.arb --locale ar --source-locale enPlural categories come from Intl.PluralRules for the target locale. Android <plurals> and i18next _one / _other keys are checked the same way.
| Code | Severity | Meaning |
|---|---|---|
missing-key | error | The source has a message the target does not. |
extra-key | warning | The target has a key the source does not. |
empty-message | error | The translation is blank. |
value-type-mismatch | error | One side is a plural and the other is a single string. |
placeholder-mismatch | error | A named or printf placeholder was added, removed or retyped. A numbered %1$s that becomes %1$d is a type change. |
placeholder-order | error | Unnumbered %@ / %d swapped. Keep the order, or number them %1$@ and %2$d. |
selector-mismatch | error | An ICU select branch was renamed or removed. |
exact-choice-missing | error | An exact plural such as =0 was added or removed. |
markup-mismatch | error | Rich-text tags changed. |
icu-syntax | error | A brace, plural or placeholder is not closed, or a plural has no other. |
plural-missing | error | A plural is missing a CLDR category this locale needs. |
plural-unused | warning | A plural has a category this locale does not use. |
possible-source-copy | warning | The text equals the source although the language changed. Keep it only for a brand or a shared glossary term. |
plural-number-missing | warning | A plural branch has no # although the source shows the number, and that category covers more than one number. |
length-blowup | warning | The translation is more than three times the source and at least 12 characters longer. Check the control. |
The agent looks at the repo before choosing a format, writes new strings in that format, and registers the locale where the stack actually reads it.
| Stack | It finds | Registers in |
|---|---|---|
| Flutter | l10n.yaml, *.arb, flutter gen-l10n | Generated supportedLocales |
| iOS | Localizable.xcstrings, Localizable.strings | knownRegions and the string catalog |
| Android | res/values/strings.xml | locales_config.xml |
| Web (i18next) | useTranslation, locales/en/common.json | supportedLngs |
| React Native | I18nManager, expo-localization | The catalog system it already uses |
110 languages and 449 regional profiles, each with CLDR 49.0.0 plural categories and text direction. Wording coverage is narrower and strongest in the ten languages with locale notes.
English, Tamil, Hindi, German, Spanish.
entahideesMalay, Indonesian, Japanese, Chinese. An English one branch copied in is unused.
msidjazhArabic. one and other alone are an error.
arFrench also has many for very large numbers. Include it when the message is a real plural.
frtamsarhizhjadeesfrid. Tamil buttons are short verbs, German buttons are infinitives, Japanese buttons drop します, and Arabic stays Modern Standard with ، and ؟.3,288 source-attested labels from pinned upstream files whose licences can sit beside MIT. Everything else bundled is a draft: an original suggestion, not a copy and not a review.
| Source id | Project | Licence | What we take |
|---|---|---|---|
ooui | wikimedia/oojs-ui | MIT | Dialog, navigation, file and retry buttons |
visualeditor | wikimedia/VisualEditor | MIT | Editing menu and find |
visualeditor-mediawiki | mediawiki-extensions-VisualEditor | MIT | Edit, save, upload, publish |
uls | wikimedia/jquery.uls | MIT | Language search |
django-admin | django/django | BSD-3-Clause | Sign in, sign out, delete, save, search |
django-forms | django/django | BSD-3-Clause | Clear selection, required field |
flutter | flutter/flutter | BSD-3-Clause | Material buttons |
aosp | platform_frameworks_base | Apache-2.0 | Allow, deny, share, submit, loading, skip |
aosp-settings | platform_packages_apps_Settings | Apache-2.0 | Archive and restore app buttons |
devise-i18n | tigrish/devise-i18n | MIT | Sign up, reset password, confirm account |
Yes. All 110 languages come with their plural and text-direction rules, so the files are always correct. Where the library has no entry yet, the agent writes the wording itself and labels it draft, and the check still runs until it passes.
No. Brand, product and legal names stay as they are, and your project's glossary always wins over a bundled example.
One per language for the whole file. It matches what the app already uses (French vous, German Sie, Hindi आप). If there is none, it picks one and names it in the report.
JSON. Read wording.status, wording.preferred and wording.disagreement first, then each entry's text, role, status and source.
No. The skill tells it to fix the catalog and run the same command again. Exit 0 means no errors; warnings still print.
Yes. For Arabic, Hebrew, Persian and Urdu it sets direction at the root the platform uses, mirrors start and end, flips back arrows and uses Arabic punctuation, in the same change as the strings.
Their licences (GPL-2.0-only, and AGPL with extra terms) cannot sit in an MIT repo. Lines that only existed there are drafts now.
Unit tests lock the checker, lookup and scanner, and an eval compares an agent with and without the skill on three scenarios. Results are in the repo's evals/REPORT.md.
npx skills add Kamaleshkabeerdoss/ nativeskill --skill nativeskill