AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Claude Code Zh

skill-yuaicode-ai-skills-claude-code-zh · by YuAICode

把 Claude Code 汉化 —— 让 Claude 默认用中文回复,并给每个工具调用加中文 tooltip 提示。当用户想"汉化 Claude Code""让 Claude 说中文""装中文命令提示""localize Claude Code to Chinese"时使用。

No reviews yet
0 installs
33 views
0.0% view→install

Install

$ agentstack add skill-yuaicode-ai-skills-claude-code-zh

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-yuaicode-ai-skills-claude-code-zh)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Claude Code Zh? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

claude-code-zh —— Claude Code 中文化

能做什么 / 做不到什么

| 层级 | 能不能 | 说明 | | --- | --- | --- | | ① AI 全程中文回复 | ✅ | 写一段指令到 ~/.claude/CLAUDE.md,所有 session 永久生效 | | ② 命令中文 tooltip | ✅ | PostToolUse hook,跑命令后弹中文解释,不碰 Claude 本体 | | ③ 中文状态栏(statusline) | ✅ | 自前轻量 bash 脚本,经 settings.jsonstatusLine 输出「模型名 / 目录 / git 分支 / 上下文用量」。上下文段带进度条+颜色(<70 绿 / 70-84 黄 / ≥85 红+⚠ /compact)。默认不启用,ccstatus on 开启。 | | ④ 界面 chrome(菜单//config 面板) | ❌ | Claude Code v2.1.113+ 已是编译二进制,无 cli.js,字符串替换汉化方案全部失效。别尝试改二进制(会破坏代码签名 + 升级即失效)。 |

如何使用

一键安装

bash install.sh
  • 把中文回复指令写进 ~/.claude/CLAUDE.md(用 `` 标记包裹,可逆)
  • 安装 tool-tips-post.sh~/.claude/hooks/
  • 用 python3 幂等地把 PostToolUse hook 写进 ~/.claude/settings.json(安装前自动备份为 settings.json.zh.bak)

安装后重启 Claude Code,tooltip 才会加载;中文回复指令下个 session 全局生效。

中文状态栏(可选)

ccstatus on       # 开启:底部显示 🌸 🤖 模型 │ 📁 目录 │ 🌿 分支 │ ctx ▓▓▓░░ 72% /200k
ccstatus off      # 关闭(还原你原来的 statusLine)
ccstatus status   # 查看当前状态

默认不启用;开启会备份你已有的 statusLine,关闭时还原。改动 settings.json 后需重启 Claude Code 生效。

卸载

bash uninstall.sh

干净移除四处改动(CLAUDE.md 区块、settings.json 条目、hook 脚本、statusline/ccstatus 脚本及别名)。statusLine 若被 ccstatus 开过会先还原再删。

工作原理

  • 中文回复:靠 CLAUDE.md 指令引导模型语言,不改任何二进制,零风险。
  • tooltip:tool-tips-post.sh 从 stdin 读工具调用 JSON,识别 Bash/Read/Write/Edit/Grep/MCP 等,输出 {"systemMessage":"🌸 ... 🌸"},Claude Code 把它显示给用户。脚本只打印,不写文件、不联网、不执行下载内容,exit 0

自定义

  • 嫌 tooltip 太吵:把 settings.json 里该 hook 的 "matcher": "" 改成 "matcher": "Bash"(只在跑命令时提示)。
  • 改/加命令翻译:编辑 ~/.claude/hooks/tool-tips-post.sh 里的 desc_shell 函数。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.