Agent skill

Ok Script I18n

by AliceJump in AliceJump/ok-end-field

Maintain gettext translations for ok-script task UI and runtime messages.

AGPL-3.0Auto-check passedFrontend & Design

Install Ok Script I18n

skills CLI
$ npx skills add AliceJump/ok-end-field --skill ok-script-i18n -a claude-code

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

GitHub CLI
$ gh skill install AliceJump/ok-end-field ok-script-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/AliceJump/ok-end-field.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ok-script-i18n .claude/skills/ok-script-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
ok-script-i18n
GitHub stars
556
Token cost
~828 tokens
SKILL.md length
348 words
Files
5 (incl. scripts, references)
Skills in repo
14
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Maintain gettext translations for ok-script task UI and runtime messages.

  • Works in 4 steps: Inspect every changed task class for… → Discover locales from… → Run the helper in the locked… → …
  • Config labels and options
  • SKILL.md covers Sync task strings, Keep translation inputs stable and Keep gettext separate from OCR…
  • Runs Python scripts from its folder; calls uv

What it does

Ok Script I18n is an agent skill from AliceJump/ok-end-field. Maintain gettext translations for ok-script task UI and runtime messages. Use for task metadata, config labels and options, instructions, PO/MO catalogs, or translation-pool pollution; OCR matcher JSON belongs to ok-script-ocr-lang.

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/merge-po.md` and `scripts/merge_po.py`).

It sits in Frontend & Design, covering Translation and Internationalization. It works with Python. The repository describes itself as: 终末地 End Field Automation 基于ok-script开发的自动化. The licence is AGPL-3.0.

When your agent uses it

  • Config labels and options
  • Translation-pool pollution
  • OCR matcher JSON belongs to ok-script-ocr-lang

Example prompts

  • “/ok-script-i18n”

Requirements

  • Python 3

Workflow steps

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

  1. Inspect every changed task class for visible names, descriptions, config keys/help/options, instructions, and runtime messages. In…
  2. Discover locales from i18n/*/LC_MESSAGES/ok.po. Keep msgid identical to the source text, append missing entries at the end of every…
  3. Run the helper in the locked environment. Its scanner catches literal metadata assignments and .update(...) calls, but constants, imports…
  4. Check catalogs, compile changed PO files to MO, and run the repository's pollution/consistency test

What it can do on your machine

Read from SKILL.md and the folder at commit 31604a6. 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

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv

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

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    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

Ok Script I18n loads about 828 tokens when it runs, and up to ~1.1k if it reads all its reference files. Until then it costs about 62 tokens; SKILL.md has 348 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~828
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.1k

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); the scripts in this folder are not scanned.

SKILL.md

The full file from AliceJump/ok-end-field at commit 31604a6, republished under its AGPL-3.0 licence (© AliceJump). 348 words, ~828 tokens.

Download SKILL.mdSave it as .claude/skills/ok-script-i18n/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
ok-script-i18n
description
Maintain gettext translations for ok-script task UI and runtime messages. Use for task metadata, config labels and options, instructions, PO/MO catalogs, or translation-pool pollution; OCR matcher JSON belongs to ok-script-ocr-lang.

OK Script i18n

Sync task strings

  1. Inspect every changed task class for visible names, descriptions, config keys/help/options, instructions, and runtime messages. In ok-end-field, DailyTask composes independent subtasks; scanning it alone misses strings in those classes.

  2. Discover locales from i18n/*/LC_MESSAGES/ok.po. Keep msgid identical to the source text, append missing entries at the end of every locale, and preserve existing translations, entry metadata, and entry order; do not sort the catalogs.

  3. Run the helper in the locked environment. Its scanner catches literal metadata assignments and .update(...) calls, but constants, imports, f-strings, comprehensions, and helper-built values still need manual review:

    uv run --locked python .agents/skills/ok-script-i18n/scripts/task_i18n_helper.py scan --task src/tasks/onetime/DailyDeliveryTask.py

  4. Check catalogs, compile changed PO files to MO, and run the repository's pollution/consistency test:

    powershell
    uv run --locked python .agents/skills/ok-script-i18n/scripts/task_i18n_helper.py check --i18n i18n
    uv run --locked python .agents/skills/ok-script-i18n/scripts/task_i18n_helper.py compile --i18n i18n
    uv run --locked python -m unittest tests.TestPoLocaleConsistency -v

Translate concise UI text, preserving placeholders, code-significant punctuation, and hotkey names such as F8 or Ctrl. An empty msgstr is appropriate only for an intentional source-language fallback. Do not add log-only strings unless requested.

Show full SKILL.md (191 more words)Show less

Keep translation inputs stable

  • Call self.tr("固定文本") or self.tr("模板 {value}").format(...). Never pass formatted runtime data, OCR output, account names, or user input into tr(); debug collection would add them as bogus msgids.
  • Static log literals can stay in log_info("固定文本") because the rendering layer translates them. For dynamic logs, translate the stable outer template before formatting; log_info and mark_task_failure do not format arguments.
  • Dynamic user-input dropdown values bypass translation through src/core/dynamic_config_keys.py. Do not register project-resource option lists there. Use re.Pattern.pattern when formatting regexes into messages.
  • If catalogs are polluted, fix the producer, remove bad entries from every locale, then rerun check, compile, and TestPoLocaleConsistency.

Keep gettext separate from OCR language JSON

assets/lang/ and src/data/lang/ belong to $ok-script-ocr-lang; read that skill before editing them. GUI explanations use gettext, not lang JSON. Keep decoration such as emoji and HTML outside msgids when it needs no translation. Persisted config keys remain raw for lookup, but pass a stable key through self.tr(key) when displaying it; changing a stored key requires $ok-config-migration.

For PO merge conflicts, read references/merge-po.md. On Windows, programmatic PO writes may convert LF to CRLF; keep touched catalogs in the repository's LF format before compiling.

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

Files

SKILL.md and 4 other files (scripts, references) in .agents/skills/ok-script-i18n of AliceJump/ok-end-field.

  • SKILL.md
  • agents/openai.yaml
  • references/merge-po.md
  • scripts/merge_po.py
  • scripts/task_i18n_helper.py

Open the folder on GitHubat commit 31604a6

Compare with similar skills

Ok Script 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.

Ok Script I18n compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ok Script I18n this skillAliceJump/ok-end-field556—~828Automated safety check: PassAGPL-3.0
Fluent MigrationBrowserWorks/waterfox-android3791 repos~4.2kAutomated safety check: PassCustom licence
I18nbrickbots/PiFinder250—~2.8kAutomated safety check: PassGPL-3.0
Claude Desktop Chinese Localizationjavaht/claude-desktop-zh-cn7.5k—~1.6kAutomated safety check: PassMIT
Ok Script I18nbaoxin1100/ok-kes100—~903Automated safety check: PassNone
Viewer i18n Translatorliaohch3/claude-tap3.3k—~666Automated safety check: PassMIT

Similar skills

  • Fluent Migration

    BrowserWorks/waterfox-android

    A skill your agent uses when a patch or local changes rename, restructure, move, or replace Fluent (.ftl) strings - or migrate legacy .properties strings to Fluent - and you need a migration recipe…

    379 GitHub starsUsed in 1 repo~4.2k tokens
    Frontend & DesignAuto-check passed
  • I18n

    brickbots/PiFinder

    PiFinder's internationalization (i18n) workflow — marking strings for translation, running the Babel extract/update/compile pipeline, adding or updating language translations, and filling in missing…

    250 GitHub stars~2.8k 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
  • Ok Script I18n

    baoxin1100/ok-kes

    Add, sync, repair, and compile gettext translations for ok-script Python task classes and task metadata.

    100 GitHub stars~903 tokensUpdated 8 days ago
    Frontend & DesignAuto-check passed
  • Viewer i18n Translator

    liaohch3/claude-tap

    Fills missing translations in claude-tap's viewer_i18n.json by sending untranslated keys to OpenRouter for Japanese, Korean, French, Arabic, German and Russian.

    3.3k GitHub stars~666 tokensUpdated 16 days ago
    Frontend & DesignAuto-check passed
  • Frappe Core Translation

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when implementing translations/i18n in Frappe v14-v16 apps.

    188 GitHub stars~1.9k tokensUpdated 22 days ago
    Writing & ContentAuto-check passed

More from AliceJump/ok-end-field

All 14 skills in this repo
  • Deploy

    AliceJump/ok-end-field

    Commit validated changes, calculate an annotated stable/beta/alpha version tag, and push the release to the publishing remote.

    556 GitHub stars~625 tokensUpdated today
    Auto-check passed
  • GitHub Rulesets

    AliceJump/ok-end-field

    Diagnose or configure GitHub branch/tag rulesets on ok-script repos.

    556 GitHub stars~595 tokensUpdated today
    Auto-check passed
  • Use Local Venv

    AliceJump/ok-end-field

    Prefer the repository-local Python virtual environment for coding-agent work.

    556 GitHub stars~688 tokensUpdated today
    Auto-check passed
  • Ok Script PR Review

    AliceJump/ok-end-field

    Triage CodeRabbit reviews on ok-script pull requests. An agent skill from AliceJump/ok-end-field.

    556 GitHub stars~904 tokensUpdated today
    Auto-check passed
  • Ok Script Tasks

    AliceJump/ok-end-field

    Create, modify, register, or review ok-script BaseTask and TriggerTask classes.

    556 GitHub stars~619 tokensUpdated today
    Auto-check passed
  • Wiki Skill Sync

    AliceJump/ok-end-field

    Compare Endfield operator skills with official wiki data and update assets/data/characterskills/.json.

    556 GitHub stars~453 tokensUpdated today
    Auto-check passed

Works with

Questions about Ok Script I18n

What does Ok Script I18n do?

Maintain gettext translations for ok-script task UI and runtime messages. Ok Script I18n is an agent skill from AliceJump/ok-end-field. Maintain gettext translations for ok-script task UI and runtime messages.

When should I use Ok Script I18n?

Ok Script I18n fits situations like: config labels and options; translation-pool pollution; OCR matcher JSON belongs to ok-script-ocr-lang.

How do I install Ok Script I18n in Claude Code?

Run `npx skills add AliceJump/ok-end-field --skill ok-script-i18n -a claude-code`. Or copy the skill folder (.agents/skills/ok-script-i18n in AliceJump/ok-end-field) into .claude/skills/ok-script-i18n in your project. Claude Code loads it when a task matches its description.

How do I install Ok Script I18n in Codex?

Run `npx skills add AliceJump/ok-end-field --skill ok-script-i18n -a codex`. Or copy the skill folder (.agents/skills/ok-script-i18n in AliceJump/ok-end-field) into .agents/skills/ok-script-i18n in your project. Codex loads it when a task matches its description.

Can I use Ok Script 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 AliceJump/ok-end-field --skill ok-script-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/ok-script-i18n, .gemini/skills/ok-script-i18n, .github/skills/ok-script-i18n and .opencode/skills/ok-script-i18n in your project.

What does Ok Script I18n need to run?

Going by SKILL.md and its folder, Ok Script I18n needs Python for the scripts in its folder and the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Ok Script I18n access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Ok Script 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Ok Script I18n use?

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

How many tokens does Ok Script I18n use?

About 828 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 315 tokens, read only when the agent opens those files.

What are the alternatives to Ok Script I18n?

Skills that share tags, products or a category with Ok Script I18n: Fluent Migration (BrowserWorks/waterfox-android, 379 stars), I18n (brickbots/PiFinder, 250 stars), Claude Desktop Chinese Localization (javaht/claude-desktop-zh-cn, 7.5k stars) and Ok Script I18n (baoxin1100/ok-kes, 100 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ok Script I18n?

AliceJump (a GitHub user) maintains it in AliceJump/ok-end-field, which has 556 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 9, 2026.

Source: AliceJump/ok-end-field on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.