i18n-extract

i18n-extract is a skill for Claude Code, Codex from YYC-Cube/YYC3-i18n-Core. It costs 31 tokens per session (614 once invoked), scanned A, original, MIT.

A source-code scanner that extracts translation keys from calls such as `t('key')`. It returns a sorted, de-duplicated list and does not edit the code or language files.

In plain words
What is it for?
Use it to scan JavaScript or TypeScript source, build or update a list of translation keys, and identify keys that need comparison with language files.
Why use it?
It provides a reliable inventory of the translation keys used by the code, helping teams find keys that need to be added or reconciled with locale files. Dynamic keys cannot be extracted automatically and must be checked by hand.

Skill for Claude CodeCodex

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

Good fit Use it to scan JavaScript or TypeScript source, build or update a list of translation keys, and identify keys that need comparison with language files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yyc-cube/yyc3-i18n-core/i18n-extract
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 YYC-Cube/YYC3-i18n-Core --skill i18n-extract
Clone the repo
git clone --depth 1 https://github.com/YYC-Cube/YYC3-i18n-Core

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 i18n-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/yyc-cube/yyc3-i18n-core/i18n-extract/github.svg)](https://agentmods.dev/skills/yyc-cube/yyc3-i18n-core/i18n-extract)
Your own site
<a href="https://agentmods.dev/skills/yyc-cube/yyc3-i18n-core/i18n-extract"><img src="https://agentmods.dev/badge/skills/yyc-cube/yyc3-i18n-core/i18n-extract/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 i18n-extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/yyc-cube/yyc3-i18n-core/i18n-extract"><img src="https://agentmods.dev/badge/skills/yyc-cube/yyc3-i18n-core/i18n-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 614 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.00031 $0.00614
Opus 5.5 $0.00012 $0.00246
Sonnet 5.5 $0.00006 $0.00123
Haiku 4.5 $0.00003 $0.00061

Measured yesterday against content hash f33945056527, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

i18n-extract 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/extract.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/i18n-extract/SKILL.md · 58 lines

What it actually says

i18n-extract — 源码翻译键提取

你是 i18n 键提取助手,遵循 @yyc3/i18n-core(YYC³)约定:从代码文本中 提取 t('key') 调用键,产出排序去重的键清单,供语言包初始化与同步。

前置条件

  • 引擎:@yyc3/i18n-core ≥ 3.3.0。
  • 输入:源代码文本(TS/JS/Lit/React 均可——正则按 t(...) 调用匹配, 不解析 AST)。

工作流

  1. 提取(二选一):
    • MCP 工具:extract_keys { code, unique? }(code 传文件内容而非 glob/路径——规避沙箱文件系统暴露)。
    • 脚本直连:node skills/i18n-extract/scripts/extract.mjs <file...> (可多文件合并去重)。
  2. 归一:默认 unique: true——去重并排序;需要出现次序时传 false。
  3. 落盘建议:把键清单与现有 en.json 对账——新增键走 i18n-translate 补齐,孤儿键人工确认后删除。

红线

  • 只产出键清单,不得改写源码或语言包。
  • 动态键(t(variable))提取不到——报告中须提示人工排查。
  • 键名遵循点分命名;模板字面量(t(`nav.${x}`))同样属于动态键。

报告格式

{ "keys": ["nav.title", "nav.subtitle"], "count": 2, "unique": true }

示例

输入:const a = t('nav.title'); const b = t("nav.title"); const c = t('hello', { name });

extract_keys { "code": "..." } → keys: ["hello", "nav.title"](去重排序,参数不参与键名)。


© 2026 YanYuCloudCube™(YYC³)· [email protected] · MIT

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 58 lines · 31 tokens per session scan A f33945056527

Subscribe to this mod's changes

i18n-extract is a skill published in the GitHub repository YYC-Cube/YYC3-i18n-Core (0 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 614 once invoked, about $0.0001 per session on Opus 5.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-11-05.

Related

Other skills, from other repositories

iflytek-text-proofread

A tool that checks Chinese writing through iFlytek’s official document-proofreading service. It looks for spelling, punctuation, wording, factual, terminology, and sensitive-content problems.

iflytek/iFly-Skills · 88 tokens

iflytek-translate

A text-translation tool that uses iFlytek's machine-translation service and supports more than 70 language pairs. It can translate text supplied directly, through standard input, or from a file.

iflytek/iFly-Skills · 65 tokens

iflytek-video-translate

A tool that translates a video’s speech into another language and creates dubbed audio. Video localization means adapting video content for viewers who speak a different language.

iflytek/iFly-Skills · 91 tokens

tongwen

Use when translating engineering DWG drawings with Tongwen — TWEXTRACTALL / TWTRANSLATE / TWWRITEBACKFILE in AutoCAD 2019/2021/2025/2026, glossary CSV with CM/TM precedence, placeholder QA blocking write-back, or headless Tongwen.Runner.BatchCli -i -o -c -m runs; also when extraction fails with a Named Pipe connection…

znlgis/opengis-skills · 111 tokens

backend-internationalization

Use this skill when implementing multi-language support, translation workflows, or locale-aware formatting. This skill enforces: BCP 47 locale tags, ICU MessageFormat for complex messages, dot-separated namespaced keys, fallback chains, and CI-validated translation files. Applies to any backend stack serving…

j4flmao/agent-skills · 86 tokens

thai-resume

Use this skill for any task involving Thai-language or bilingual (TH/EN) resumes and CVs. Trigger whenever the user asks to: write a Thai resume, draft a CV in Thai, build a bilingual Thai-English resume, format an application for a Thai employer, choose between พ.ศ. and ค.ศ. dates in a CV, or tailor a resume for…

Boom-Vitt/claude-thai-skills · 0 tokens