Skip to content
Back to skills

q-zh-claude

ASecurity

Claude Code CLI 简体中文汉化(自管 mods 插件)——静态词典 + 官方 hooks,只改 UI 显示文字,零 token、零网络、不碰官方产物。适用场景:「汉化cc」「重新汉化」「汉化不生效」「cc升级后重汉化」「还原英文」「检查汉化状态」「补词条」。维护 ~/Dev/Private/claude-code-zh/mods/cc-zh。

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsbashgit

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add jiangnanquan/claude-code-zh --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of q-zh-claude?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for q-zh-claude
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiangnanquan-q-zh-claude/badge)](https://www.skillsdirectory.com/skills/jiangnanquan-q-zh-claude)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: q-zh-claude
description: Claude Code CLI 简体中文汉化(自管 mods 插件)——静态词典 + 官方 hooks,只改 UI 显示文字,零 token、零网络、不碰官方产物。适用场景:「汉化cc」「重新汉化」「汉化不生效」「cc升级后重汉化」「还原英文」「检查汉化状态」「补词条」。维护 ~/Dev/Private/claude-code-zh/mods/cc-zh。
allowed-tools: Bash
---

# Claude Code 汉化(mods 版)

只做一件事:把 Claude Code 会话内 UI 文字显示为简体中文,**不碰功能逻辑、不碰官方产物**。
实现方式是官方 mods(Claude Code ≥ 2.1.287),失效时退回英文,不会把 CLI 改崩。

## 当前状态(2026-10-12,CC 2.1.296)

- 插件已装进全局 `~/.claude/settings.json`:`env.CLAUDE_CODE_PLUGIN_DIRS` 指向本仓 `mods/cc-zh`
- `claude plugin validate .` → 13 钩子 + 8 个 `$` 调用通过;`claude plugin test .` → 11 pass / 0 fail
- TTY 实机:中文排版正常、溢出 0 行;`/cc-zh-dump` → 命令 0,配置 0

## 快速开始

```bash
cd ~/Dev/Private/claude-code-zh/mods/cc-zh

# 自检(改完词典/hooks 后必跑)
claude plugin validate .   # 应:Validation passed
claude plugin test .       # 应:11 pass / 0 fail

# 单会话试装(不影响全局配置;日常使用已装全局,无需此步)
claude --plugin-dir "$PWD"
```

- 会话内输入 **`/cc-zh-dump`**:列出仍是英文的命令 / 配置 / 屏幕文案
- 还原英文:删掉 `~/.claude/settings.json` 的 `env.CLAUDE_CODE_PLUGIN_DIRS` 一行(先备份)

## 补词条(汉化不生效 / 发现英文残留时)

1. 跑 `/cc-zh-dump` 拿未译清单;
2. 用 `tools/runtime-sampler/` 取**权威英文原文**(不要用 dump 的屏幕输出——会折行、吞反引号);
3. 原文逐字作为 key 写进 `dict.json` 的 `exact`;带运行时变量的写 `patterns`;
4. `claude plugin validate .` + `claude plugin test .` + `tools/tty-probe.py` TTY 验收;
5. 新会话生效。

## 安全原则(必须遵守)

1. **不碰官方产物**:不改二进制、不改字节码,只走官方 hooks
2. **不猜词条**:命不中一律放行英文原文并记录,绝不写「大概意思」的中文
3. **官方只读字段不碰**:`CommandOutput.command/args`、`ToolResult.tool`、各类 id 与视图状态
4. **给官方本地化开关让路**:`spinnerVerbs` 已含中文时原样放行,不覆盖用户配置
5. **按设计不可汉化**:权限确认窗口、欢迎屏、`/config` `/model` 子选择屏、错误信息、
   tips、`auto mode on` pill、`claude --help`——不是 bug,别去试

## 交付闭环与 Git 提交/推送规程

每次改完词典/插件并全绿通过自检与验收后:
1. **更新状态与文档**:更新 `00_状态.md` 记录本次词条增补或升级适配;
2. **规范原子提交**:`git status` 确认无脏文件,执行本地原子提交(`git commit -m "feat(i18n): ..."`);
3. **推送决策**:
   - 默认模式:主动汇报验收结果与 commit 哈希,询问用户是否执行 `git push`;
   - 授权模式:用户要求“提交并 push”或明确许可时,主动执行 `git push origin main` 并汇报结果。

## 项目位置与入口

- 项目本体:`~/Dev/Private/claude-code-zh`(本 skill 通过软链接指向)
- 插件:`mods/cc-zh/`(README 有覆盖面与设计契约)
- 状态卡:[`00_状态.md`](00_状态.md);续作入口:[`HANDOFF.md`](HANDOFF.md)
- 详细流程见 [SOP.md](SOP.md),验收/采样工具见 [`mods/cc-zh/tools/README.md`](mods/cc-zh/tools/README.md)

Files in this skill

  • .claude-plugin/marketplace.json588 B
  • 00_状态.md5.1 KB
  • HANDOFF.md6.1 KB
  • SKILL.md3.5 KB
  • SOP.md8.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.