zmNinjaNg: Skill for Claude Code

.claude/skills/add-language/SKILL.md

add-language is a skill for Claude Code from ZoneMinder/zmNinjaNg. It costs 55 tokens per session (1,037 once invoked), scanned A, original, Apache-2.0.

A procedure for adding a new language to an application’s user interface. It covers translation files, language pickers, internationalization resources, and documentation.

In plain words
What is it for?
Use it when adding a locale, translating the interface, updating supported-language lists, or checking that translation keys match.
Why use it?
It prevents incomplete translations, missing language choices, and silent fallback to English.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ZoneMinder/zmNinjaNg's own configuration. It tells Claude Code how to work on zmNinjaNg itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zmNinjaNg configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ZoneMinder/zmNinjaNg. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ZoneMinder/zmNinjaNg/main/.claude/skills/add-language/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ZoneMinder/zmNinjaNg

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-language

README.md
[![agentmods](https://agentmods.dev/badge/skills/zoneminder/zmninjang/add-language/github.svg)](https://agentmods.dev/skills/zoneminder/zmninjang/add-language)
Your own site
<a href="https://agentmods.dev/skills/zoneminder/zmninjang/add-language"><img src="https://agentmods.dev/badge/skills/zoneminder/zmninjang/add-language/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-language

Your own site · 80×15
<a href="https://agentmods.dev/skills/zoneminder/zmninjang/add-language"><img src="https://agentmods.dev/badge/skills/zoneminder/zmninjang/add-language.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,037 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 105
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 125
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.01037
Opus 5 $0.00028 $0.00518
Sonnet 5 $0.00011 $0.00207
Haiku 4.5 $0.00006 $0.00104

Measured 9d ago against content hash 540bf1c279cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-language scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/add-language/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adding a new interface language

The app bundles translations at build time. Adding a locale means touching five code locations plus two prose locations. Miss any one and the failure is silent: i18next falls back to English mid-screen, or the new locale ships with no key-parity coverage.

Run all npm commands from app/.

Below, {code} is the ISO code (it) and {Name} is the language's own name for itself (Italiano).

1. Create the translation file

mkdir -p app/src/locales/{code}
cp app/src/locales/en/translation.json app/src/locales/{code}/translation.json

2. Translate the values

Translate every value in app/src/locales/{code}/translation.json. Do not change, add, or drop keys. The key-parity test in step 5 fails if the shape drifts from en.

Labels must fit 320px (project rule in AGENTS.project.md), so prefer the concise translation where two options exist.

3. Add the language name to every translation file

The languages section of each locale lists all languages, so the picker reads correctly whatever language the UI is currently in. Add "{code}": "{Name}" to the languages section of every translation.json under app/src/locales/, the new one included. List them first rather than working from memory:

ls app/src/locales

Use the same string {Name} in all of them. Language names are not translated.

4. Register the locale in i18n

In app/src/i18n.ts, add the import alongside the others and the entry in resources:

import {code}Translation from './locales/{code}/translation.json';
resources: {
  // ...
  {code}: { translation: {code}Translation },
},

5. Update both language pickers

There are two, and they carry separate hardcoded lists:

  • app/src/components/settings/AppearanceSection.tsx — Settings → Appearance. Add a SelectItem:

    <SelectItem value="{code}" data-testid="settings-language-option-{code}">{t('languages.{code}')}</SelectItem>
    

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 126 lines · 55 tokens per session scan A 540bf1c279cc

Subscribe to this mod's changes

add-language is a skill published in the GitHub repository ZoneMinder/zmNinjaNg (108 stars, last pushed 3d ago), licensed Apache-2.0. It adds 55 tokens to every session and 1,037 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.