Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add taekchef/claude-code-zh-cn/plugin install claude-code-zh-cnWrote 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.
[](https://agentmods.dev/skills/taekchef/claude-code-zh-cn/zh-cn-setup)<a href="https://agentmods.dev/skills/taekchef/claude-code-zh-cn/zh-cn-setup"><img src="https://agentmods.dev/badge/skills/taekchef/claude-code-zh-cn/zh-cn-setup/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.
<a href="https://agentmods.dev/skills/taekchef/claude-code-zh-cn/zh-cn-setup"><img src="https://agentmods.dev/badge/skills/taekchef/claude-code-zh-cn/zh-cn-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.01176 |
| Opus 5.5 | $0.00031 | $0.00470 |
| Sonnet 5.5 | $0.00016 | $0.00235 |
| Haiku 4.5 | $0.00008 | $0.00118 |
Grade B, and why
zh-cn-setup 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 3mo 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
1. **合并 spinner 中文化配置**到 `~/.claude/settings.json`(从插件内置的 verbs/tips 数据构建,只补齐缺失项,不覆盖用户已有配置;带备份 + 原子写) How it starts
The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
zh-cn-setup:中文本地化增强安装
本 skill 是 claude-code-zh-cn 插件的首次增强安装入口。在用户通过 claude plugin marketplace add + claude plugin install 装好插件后,运行本 skill 可补齐以下"装插件本身不会自动完成"的步骤。
何时使用
当用户表达以下意图时主动触发:
- "spinner 还是英文" / "转圈的文字没翻译"
- "怎么完整启用中文" / "安装完后还要做什么"
- 在 Windows / macOS / Linux 上刚装好插件,想确认中文化是否完整
执行步骤
运行跨平台安装脚本(macOS / Linux / Windows 通用,需 Node.js):
node "${CLAUDE_PLUGIN_ROOT}/skills/zh-cn-setup/scripts/setup.js"
脚本会自动完成:
- 合并 spinner 中文化配置到
~/.claude/settings.json(从插件内置的 verbs/tips 数据构建,只补齐缺失项,不覆盖用户已有配置;带备份 + 原子写) - 检测 CC Switch:若检测到 CC Switch 的通用配置缺少中文设置,脚本会输出需要用户确认的提示——因为是交互式安装,请把脚本输出的指令原文转达给用户,让用户决定是否授权同步
- 报告 patch 状态并提示是否需要重启
- 输出 skill 描述汉化的只读扫描、翻译和恢复命令;CC Switch skill 位于
~/.claude外时,使用ZH_CN_SKILL_I18N_EXTRA_ROOTS指定真实目录 - 检测 CC Switch 数据库 skill 描述:若
~/.cc-switch/cc-switch.db的skills表中描述仍为英文、但对应SKILL.md已翻译为中文,脚本会提示运行可选工具cc-switch-descriptions.js(默认只读预览,--apply才写入并先备份数据库,输出还原命令)
重要约束
- 不要在 skill 里调用
claude plugin install/claude plugin update:插件本体的安装/更新由用户手动或 Claude plugin manager 负责,避免"插件装自己/更新自己"的循环 - CLI patch(npm cli.js / native exe)由 session-start hook 自动维护,不在本 skill 内手动 patch。native exe 更新后需要用户关闭所有 Claude Code 窗口再重开,脚本会提示
- CC Switch 数据库写入必须由用户主动授权:
cc-switch-descriptions.js的--apply只在用户主动运行时执行,skill 只输出命令,不在进程内替用户写数据库 - 脚本所有写操作都带备份和失败回滚,不会让机器配置损坏
CC Switch skill 描述同步工具
ZH_CN_SKILL_I18N_EXTRA_ROOTS 只翻译 SKILL.md 文件本体,不会写 CC Switch 数据库。若脚本检测到 ~/.cc-switch/cc-switch.db 的 skills 表描述仍为英文,把以下命令原文转达给用户:
# 只读预览(默认,不写入)
node "${CLAUDE_PLUGIN_ROOT}/skills/zh-cn-setup/scripts/cc-switch-descriptions.js"
# 确认后写入(先备份数据库,输出还原命令)
node "${CLAUDE_PLUGIN_ROOT}/skills/zh-cn-setup/scripts/cc-switch-descriptions.js" --apply
同一份 description 同时用于 CC Switch 管理界面、Claude Code /skills 面板和 model 自动触发,所以默认只读、由用户决定是否 --apply。
给用户的最终提示
脚本跑完后,根据其输出告诉用户:
- 如果提示"请重启 Claude Code":说明 CLI patch 已由 hook 处理,重启后生效
- 如果提示 CC Switch 同步:把脚本给出的手动步骤或授权命令转给用户
- 如果提示 Windows 需手动运行
install.ps1 -UpdateOnly:确认用户已完全退出所有 Claude Code 窗口后,把脚本输出的两行命令原文转给用户(Set-Location '<目录>'+powershell ... -File .\install.ps1 -UpdateOnly)。务必提醒扩展名必须是.ps1(末尾的1不能漏),否则 PowerShell 会报the file does not have a '.ps1' extension。
What ships with it
2 files 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.
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.
- 3mo ago First seen · 62 lines · 78 tokens per session scan B ebd38d90576c
zh-cn-setup is a skill published in the GitHub repository taekchef/claude-code-zh-cn (869 stars, last pushed yesterday), licensed MIT. It adds 78 tokens to every session and 1,176 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
zh-cn-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| zh-cn-setuptaekchef/claude-code-zh-cn | Skill | 869 | yesterday | MIT | B | 78 | Claude Code |
| internationalization-i18nsoulcodex/agentic | Skill | 10 | 12d ago | MIT | A | 72 | Claude Code, Codex |
| i18n Unused Key Reviews977043/river-review | Skill | 8 | today | MIT | A | 36 | Claude Code |
| i18n-auditparisgroup-ai/imersao-ia-setup | Skill | 1 | 7d ago | MIT | A | 85 | Claude Code |
| i18n-maintenanceparisgroup-ai/imersao-ia-setup | Skill | 1 | 7d ago | MIT | A | 67 | Claude Code |
| dialectosKyaniteLabs/DialectOS | Skill | 4 | 3d ago | Apache-2.0 | A | 35 | Codex |
| i18n-localization-patternsfindscripter/everything-skills | Skill | 12 | yesterday | none | A | 115 | Claude Code |