nativeskill
Docs

How nativeskill works.

Install 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.

Install

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.

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 nativeskill

Claude Code plugin

The repo is also a plugin marketplace. Add it, then install the plugin.

$ /plugin marketplace add Kamaleshkabeerdoss/nativeskill
$ /plugin install nativeskill@nativeskill

Codex

Choose Codex in the skills CLI. The repo also ships a Codex plugin manifest, .codex-plugin/plugin.json, with ready-made prompts.

From a clone

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

Requirements

Node.js 22.20 or later. The scripts use nothing else: no packages, no account, no server.

Updating

Run the install command again. Then ask your agent to use nativeskill as before; nothing in your app needs to change.

Adding a language

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.

01

Find the catalog

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.

02

Move hardcoded text

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.

03

Name the action

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.

04

Look up the words

For contested actions (account, billing, permissions) lookup.mjs returns words real apps ship. A match is reused; anything else is written and labelled draft.

05

Write and register

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.

06

Check until it passes

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.

Checking a language

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.

01

Check first

Run the check before editing, so missing keys, placeholder drift, broken ICU, incomplete plurals, length blowups and untranslated copies are listed first.

02

Read for meaning

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.

03

Report or fix

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.

04

Common catches

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 Malay

Evidence labels

Every proposed string carries one label, so you can see at a glance which words real apps already ship and which are new.

LabelMeaning
source-attestedA pinned upstream UI shipped this phrase for this action and role, and no reviewer rejected it.
draftAn unreviewed suggestion, including every sentence the agent composes and every catalog draft.
uncoveredThe lookup found nothing. The agent writes the smallest accurate phrase and labels it draft.
mixedThe hits disagree, or one is marked preferred: false. The agent decides by what the control does and reports both candidates.
Worked example. 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.

The three scripts

They live in the installed skill folder and run with plain Node.js. Your agent runs them; you can too.

scan.mjs Find hardcoded text

Looks 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/src

lookup.mjs Find the words

Takes 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 catalog

Compares 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 en

What the check finds

Plural categories come from Intl.PluralRules for the target locale. Android <plurals> and i18next _one / _other keys are checked the same way.

CodeSeverityMeaning
missing-keyerrorThe source has a message the target does not.
extra-keywarningThe target has a key the source does not.
empty-messageerrorThe translation is blank.
value-type-mismatcherrorOne side is a plural and the other is a single string.
placeholder-mismatcherrorA named or printf placeholder was added, removed or retyped. A numbered %1$s that becomes %1$d is a type change.
placeholder-ordererrorUnnumbered %@ / %d swapped. Keep the order, or number them %1$@ and %2$d.
selector-mismatcherrorAn ICU select branch was renamed or removed.
exact-choice-missingerrorAn exact plural such as =0 was added or removed.
markup-mismatcherrorRich-text tags changed.
icu-syntaxerrorA brace, plural or placeholder is not closed, or a plural has no other.
plural-missingerrorA plural is missing a CLDR category this locale needs.
plural-unusedwarningA plural has a category this locale does not use.
possible-source-copywarningThe text equals the source although the language changed. Keep it only for a brand or a shared glossary term.
plural-number-missingwarningA plural branch has no # although the source shows the number, and that category covers more than one number.
length-blowupwarningThe translation is more than three times the source and at least 12 characters longer. Check the control.

Platforms

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.

StackIt findsRegisters in
Flutterl10n.yaml, *.arb, flutter gen-l10nGenerated supportedLocales
iOSLocalizable.xcstrings, Localizable.stringsknownRegions and the string catalog
Androidres/values/strings.xmllocales_config.xml
Web (i18next)useTranslation, locales/en/common.jsonsupportedLngs
React NativeI18nManager, expo-localizationThe catalog system it already uses

Languages and plurals

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.

01

one, other

English, Tamil, Hindi, German, Spanish.

entahidees
02

other only

Malay, Indonesian, Japanese, Chinese. An English one branch copied in is unused.

msidjazh
03

zero, one, two, few, many, other

Arabic. one and other alone are an error.

ar
04

one, many, other

French also has many for very large numbers. Include it when the message is a real plural.

fr
Locale notes cover register, button shape and known traps for tamsarhizhjadeesfrid. Tamil buttons are short verbs, German buttons are infinitives, Japanese buttons drop します, and Arabic stays Modern Standard with ، and ؟.

Where words come from

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 idProjectLicenceWhat we take
oouiwikimedia/oojs-uiMITDialog, navigation, file and retry buttons
visualeditorwikimedia/VisualEditorMITEditing menu and find
visualeditor-mediawikimediawiki-extensions-VisualEditorMITEdit, save, upload, publish
ulswikimedia/jquery.ulsMITLanguage search
django-admindjango/djangoBSD-3-ClauseSign in, sign out, delete, save, search
django-formsdjango/djangoBSD-3-ClauseClear selection, required field
flutterflutter/flutterBSD-3-ClauseMaterial buttons
aospplatform_frameworks_baseApache-2.0Allow, deny, share, submit, loading, skip
aosp-settingsplatform_packages_apps_SettingsApache-2.0Archive and restore app buttons
devise-i18ntigrish/devise-i18nMITSign up, reset password, confirm account
Left out on purpose. Telegram (GPL-2.0-only) and Pretix (AGPL with extra terms). Hindi Android's skip label, which means “not now”. Tamil Settings' archive, which means copy. Full pinned revisions are in sources.md.

Questions

Can I add a language the word library does not cover?

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.

Does it change my brand names?

No. Brand, product and legal names stay as they are, and your project's glossary always wins over a bundled example.

Which formality does it use?

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.

What does a lookup print?

JSON. Read wording.status, wording.preferred and wording.disagreement first, then each entry's text, role, status and source.

Can the agent edit the checker to pass?

No. The skill tells it to fix the catalog and run the same command again. Exit 0 means no errors; warnings still print.

Does it handle right-to-left?

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.

Why not bundle Telegram or Pretix 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.

How was it tested?

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.

Install nativeskill in one command.

npx skills add Kamaleshkabeerdoss/nativeskill --skill nativeskill