write-terva-locale

write-terva-locale is a skill for Claude Code, Codex from terva-sh/terva. It costs 68 tokens per session (2,339 once invoked), scanned A, original, MIT.

A localization guide for translating terva's user interface into another language. Localization means adapting an interface's text for users of a particular language or region.

In plain words
What is it for?
Use it to start or finish a terva language, edit translated wording, or make new interface strings translatable.
Why use it?
It explains how to add or correct translations while keeping missing text safely in English and allowing local overrides.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to start or finish a terva language, edit translated wording, or make new interface strings translatable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/terva-sh/terva/write-terva-locale
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add terva-sh/terva --skill write-terva-locale
Clone the repo
git clone --depth 1 https://github.com/terva-sh/terva

Made for: Claude Code, Codex.

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 write-terva-locale

README.md
[![agentmods](https://agentmods.dev/badge/skills/terva-sh/terva/write-terva-locale/github.svg)](https://agentmods.dev/skills/terva-sh/terva/write-terva-locale)
Your own site
<a href="https://agentmods.dev/skills/terva-sh/terva/write-terva-locale"><img src="https://agentmods.dev/badge/skills/terva-sh/terva/write-terva-locale/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 write-terva-locale

Your own site · 80×15
<a href="https://agentmods.dev/skills/terva-sh/terva/write-terva-locale"><img src="https://agentmods.dev/badge/skills/terva-sh/terva/write-terva-locale.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,339 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.
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.00068 $0.02339
Opus 5 $0.00034 $0.01170
Sonnet 5 $0.00014 $0.00468
Haiku 4.5 $0.00007 $0.00234

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

Security

Grade A, and why

write-terva-locale 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.

packages/agent/skills/builtin/write-terva-locale/SKILL.md · 158 lines

How it starts

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

Translating terva

Use this skill when the user wants to localize terva — start a new UI language, finish or fix an existing one, or make a newly added string translatable. terva ships English and loads translations from a per-key catalog that an operator can edit and contribute back.

How terva's i18n works (read this first)

  • English is the key. The message id is the English sentence. A locale file maps that English to your language: "start a fresh session": "aloita uusi istunto". There is no separate key to invent or look up.
  • Embedded default + operator overlay. Shipped translations live in packages/i18n/locales/<lang>.json (embedded in the binary). Your edits live in $TERVA_HOME/locales/<lang>.json and shadow the embedded file per key — override one string without copying the rest.
  • Graceful fallback. Any key you leave blank ("") or don't include falls back to English, so a partial translation is always safe to ship and run.
  • Selecting a language. TERVA_LANG=<tag> terva, or set "language": "<tag>" in config.json. The tag is BCP-47: fi, pt-BR, de. en/en-* is the built-in source — no file read UNLESS the operator opts into an English overlay ($TERVA_HOME/locales/en.json or prompts/en.json) to reword or override strings in place. See docs/localization.md in the repo.

Translating a language — the workflow

  1. Scaffold the file. terva locale init <lang> writes $TERVA_HOME/locales/<lang>.json listing every source string. Existing translations are pre-filled (so you tweak in place); the rest are blank.
  2. Edit the JSON. For each entry, replace the empty value with your translation. The key stays exactly as-is — never edit a key.
    {
      "show this help": "näytä tämä ohje",
      "saved %d files": "",              // still to translate
      "%d agent|%d agents": { "one": "%d agentti", "other": "%d agenttia" }
    }
    
  3. Preserve the machinery. Keep every %s / %d / %0.1f format verb — same ones, any order. Keep {{user}}/{{char}} macros, flag names (--persona), command names (terva locale), and file paths ($TERVA_HOME/..., docs/rpc.md) verbatim. Translate the prose around them.
  4. Plurals. A plural entry's key is "english one|english other"; its value is an object of CLDR categories. Your language's set may be more than one/other (Polish has one/few/many/other) — terva locale init scaffolds the right categories for the tag. Fill each; other is required.
  5. Check it. terva locale validate (JSON + that your %-args match the source), terva locale diff <lang> (what's missing or now-orphaned), terva locale list (coverage %).

Read the full file on GitHub · 158 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 · 158 lines · 68 tokens per session scan A 59f13c16bb09

Subscribe to this mod's changes

write-terva-locale is a skill published in the GitHub repository terva-sh/terva (2 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 2,339 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-31.

Related

Other skills, from other repositories

pi-sync

Daily upstream-sync job for the pi Go port — fetch upstream pi, triage every change since the recorded pin, port what's in scope, verify idiomatic + parity via independent reviews, update the ledger, and push. Use for "sync with upstream", "porting job", or as the scheduled daily run.

sky-valley/pi · 66 tokens

pi-go-review

Review ported Go code for idiomatic quality — that the port maximizes Go rather than transliterating TypeScript. Use after porting upstream pi changes, or standalone on any diff in this repo.

sky-valley/pi · 45 tokens

sls-dashboard-builder

A tool for creating and modifying importable JSON dashboards for Alibaba Cloud SLS, a service for searching and monitoring logs. It maps checked queries and analysis needs to dashboard charts.

alibaba/loongsuite-pilot · 72 tokens

loongsuite-pilot-insight

A reporting workflow for turning LoongSuite Pilot and AI coding-agent logs into structured reports about events, teams, data quality, development efficiency, and AI use. It defines the meaning of the log fields and the measurements used in dashboards.

alibaba/loongsuite-pilot · 91 tokens

code-guidelines-go

Go 1.24–1.27 coding guidelines for the dimetron/pi-go AI agent runtime. Use this skill whenever writing, reviewing, or refactoring ANY Go code in pi-go. This covers idiomatic style, error handling, concurrency, project layout, testing (table-driven, fuzz, benchmarks, synctest), new stdlib usage, golangci-lint v2…

dimetron/pi-go · 124 tokens

go-127

What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…

dimetron/pi-go · 177 tokens