Live-Translator-Hub: Skill for Claude Code

.agent/skills/translate-dictionary/SKILL.md

translate-dictionary is a skill for Claude Code, Codex from Uncle-Gao/Live-Translator-Hub. It costs 42 tokens per session (877 once invoked), scanned B, original, MIT.

A maintenance guide for a Chinese translation dictionary used to translate Cursor's settings interface. It describes browser-based text matching and the JSON files that hold translation entries and longer text fragments.

In plain words
What is it for?
Use it to add or organize translated interface terms, maintain the dictionary and fragment files, and rebuild the translation script after changes.
Why use it?
It explains how translations are found and updated without changing the application's internal JavaScript, reducing the risk of breaking Cursor while adding coverage.

Skill for Claude CodeCodex

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

This is Uncle-Gao/Live-Translator-Hub's own configuration. It tells Claude Code and Codex how to work on Live-Translator-Hub 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 Live-Translator-Hub configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Uncle-Gao/Live-Translator-Hub. 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/Uncle-Gao/Live-Translator-Hub/master/.agent/skills/translate-dictionary/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Uncle-Gao/Live-Translator-Hub

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 translate-dictionary

README.md
[![agentmods](https://agentmods.dev/badge/skills/uncle-gao/live-translator-hub/translate-dictionary/github.svg)](https://agentmods.dev/skills/uncle-gao/live-translator-hub/translate-dictionary)
Your own site
<a href="https://agentmods.dev/skills/uncle-gao/live-translator-hub/translate-dictionary"><img src="https://agentmods.dev/badge/skills/uncle-gao/live-translator-hub/translate-dictionary/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 translate-dictionary

Your own site · 80×15
<a href="https://agentmods.dev/skills/uncle-gao/live-translator-hub/translate-dictionary"><img src="https://agentmods.dev/badge/skills/uncle-gao/live-translator-hub/translate-dictionary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 877 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00042 $0.00877
Opus 5 $0.00021 $0.00439
Sonnet 5 $0.00008 $0.00175
Haiku 4.5 $0.00004 $0.00088

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

Security

Grade B, and why

translate-dictionary scanned grade B with 1 finding 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 11d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

3. **注入投递引擎**:在项目内打开终端,调用 `sudo node cursor_zh_pro.js` 并选择注入选项 `1`。工具会安全地重打包包含了全新指纹与词条内存的 `cursor-i18n.js`。
.agent/skills/translate-dictionary/SKILL.md · 29 lines

What it actually says

Cursor 汉化 Pro 维护技能 (translate-dictionary)

目的

本技能旨在指导维护 cursor_zh_pro.js 的核心汇编逻辑及 i18n/*.json 资源文件,重点配合 V2 架构的 DOM 拦截外挂脚本(cursor-i18n-runtime.js),指导 AI 确保安全地拓宽汉化覆盖面。

字典规则演进 (V2 架构革新)

在 V2 纯运行时 HTML 的外挂注入体系中,我们彻底抛弃了在几十兆源码里做危险正则替换的做法。所有翻译的映射都独立且安全地发生于浏览器渲染引擎中的前台文本节点 (node.textContent) 与悬浮提示 (title) 的变化瞬间!

  1. dictionary.json

    • 定位:V2 工作流的主力库。适用各类单短词、高频系统级名词(如 "Settings")、组合词以及各种悬浮气泡文本。
    • 匹配原理:运行时被编译为内存哈希表,依靠原生 DOM 抓取其内含 textContent.trim() 和字典键极速进行 严格字符串等值命中
    • 🚨 封印解除 (安全重定义):在 V2 的运行时维度,现在完全允许把极短或普适的英文短词(例如 "All", "Default", "True", "False"录入基础字典!因为运行时的 MutationObserver 只会针对网页前端暴露出来的 UI 文本节点做判断,绝对不会干扰隐匿在后面运作的 JavaScript 内部框架变量和对象键,从物理隔离上 100% 消灭了引发渲染进程崩溃黑屏的可能!
  2. fragments.json (兼容式超长注释/片段包):

    • 定位:遗留下来的巨型设置说明释义本。
    • 加载原理:目前的安装程序会在执行时自动读取本文件,过滤掉无用的上下文特殊边界符,将其全量合并打平灌入到主字典环境。
    • M4 计划:在未来,此文件(或拆分为 patterns.json)将进一步进化为存放具备正则表达式特性的匹配模板(如 "(.*) files analyzed"),用于处理运行时含可变数字动态更新的复杂字符串。

维护作业流淌 (V2)

  1. 拾取英文节点:直观地阅读未汉化的设置页面 UI(或使用外部 DOM 分析剥离工具)。
  2. 扩充语料库:以纯文本键值对的形式补充进 i18n/dictionary.json 适当的分层内。
  3. 注入投递引擎:在项目内打开终端,调用 sudo node cursor_zh_pro.js 并选择注入选项 1。工具会安全地重打包包含了全新指纹与词条内存的 cursor-i18n.js
  4. 重载视界:回到 Cursor 主界面按下 Cmd+R (Reload Window)。DOM 树被完全撕毁重构的瞬间,新的术语映射即可就绪显现。
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. 11d ago First seen · 29 lines · 42 tokens per session scan B 5c75af7b056b

Subscribe to this mod's changes

translate-dictionary is a skill published in the GitHub repository Uncle-Gao/Live-Translator-Hub (32 stars, last pushed 4d ago), licensed MIT. It adds 42 tokens to every session and 877 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

vibetime

Work with local VibeTime agent-coding activity data. Use when Codex needs to inspect VibeTime time tracking, agent activity, project/session/turn history, token usage, cost attribution, hook health, local SQLite data, data quality, dirty data, or safe database cleanup. Default to VibeTime CLI summaries for ordinary…

BarryYangi/vibetime · 92 tokens

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

chinese-commit-conventions

A Chinese-language guide to Conventional Commits, a format for writing consistent Git commit messages, plus related changelog, commit-checking, and commit-helper configuration.

jnMetaCode/superpowers-zh · 65 tokens

systematic-debugging

A step-by-step method for finding the underlying cause of technical problems before changing code. It covers reading errors, reproducing failures, checking recent changes, and tracing data across system components.

jnMetaCode/superpowers-zh · 24 tokens

extract-source-sample

Given the path to a finished content-goose ad-run folder, extract everything that defines that ad — recipe shot list, VO script, characters, voices, world, atom-skills, master mp4 — and emit a source-sample.json in the exact shape the upload-ad-sample skill writes to the Goose Ads library. Also links every character…

gooseworks-ai/goose-skills · 160 tokens