In short.
zh-cn-setup is a setup skill for Chinese-speaking Claude Code users that depends on the full parent plugin and writes local configuration. Its Node.js scripts connect language and spinner configuration with optional CC Switch updates, while reporting patch and translation steps handled elsewhere. Important merge, translation and patch implementations are outside this folder. The visible backup handling is weaker than the documentation's blanket guarantees. No code was executed; installation success, compatibility and translation quality are unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes all three supplied files in plugin/skills/zh-cn-setup at commit 80419d81eaee3e32cf31f00259f9fe65153ef3c6 and the repository-level LICENSE notice. Parent-plugin overlay helpers and data, hooks, installers, patchers and translation implementations are excluded. The folder is not a self-contained installation. Findings describe source code and documentation only; execution, compatibility, translation quality and recovery outcomes are unverified.
The overview
identity
zh-cn-setup is the first-run enhancement skill within taekchef/claude-code-zh-cn. Its folder contains SKILL.md, scripts/setup.js and scripts/cc-switch-descriptions.js. It completes configuration after the parent localization plugin is installed.
The source folder at the supplied revision is [https://github.com/taekchef/claude-code-zh-cn/tree/80419d81eaee3e32cf31f00259f9fe65153ef3c6/plugin/skills/zh-cn-setup]. Locale data, CLI patchers and the skill-file translation implementation reside elsewhere in the parent project.
assessment
Its clearest use case is completing Chinese configuration when spinner text remains English after installing the parent plugin, especially where CC Switch also stores language settings. The separate description-sync tool addresses another specific problem: translated skill files whose descriptions remain English in CC Switch. These are useful configuration tasks, but successful localization depends on components beyond this folder.
users
The intended users are Chinese-speaking developers who already use Claude Code and its claude-code-zh-cn plugin. CC Switch users gain additional configuration and description-sync options. Beginners get a documented setup entry point, but still need to understand terminal commands, restart requirements and the distinction between previewing changes and authorizing database writes.
capabilities
The main script builds Chinese configuration from parent-plugin data, invokes a missing-key merge for ~/.claude/settings.json, detects CC Switch common configuration and reports CLI patch status. It also prints commands for scanning and translating skill descriptions using a separate tool.
The companion script previews which CC Switch database descriptions can be replaced with Chinese text already present in corresponding SKILL.md files. With --apply, it copies the database as a backup and updates matching description records. It synchronizes existing translations; translation generation happens elsewhere.
Using it
requirements
The setup entry point requires Node.js, the installed parent plugin and permission to write Claude Code's user configuration. It imports plugin/scripts/build-overlay.js, so this skill folder alone is insufficient. The documentation describes macOS, Linux and Windows support, but platform behavior was not exercised.
CC Switch common-configuration synchronization can use Node's node:sqlite module or the sqlite3 command-line program. The description-sync script requires node:sqlite and recommends Node 22.5 or newer in its error message; it implements no sqlite3 fallback. Optional skill-file translation is delegated to a Bash script whose runtime requirements are outside the supplied evidence.
mechanism
setup.js delegates overlay construction, missing-key merging and settings writing to imported helpers. For CC Switch common configuration, it reads common_config_claude from the settings table. Synchronization requires ZH_CN_CCSWITCH_SYNC to equal 1, true or yes, then backs up the database and performs the merge within a transaction. The imported merge helper's handling of conflicting values is unknown.
cc-switch-descriptions.js reads the skills table and pairs each row's name with ~/.cc-switch/skills/<name>/SKILL.md. It treats database descriptions containing at least 50 percent Chinese ideographs as already localized, while accepting source descriptions containing any Chinese ideograph. Without --apply it only reports the plan; with --apply it updates descriptions by record ID.
setup
The documented sequence is to install the parent plugin through Claude Code's plugin manager, then invoke this skill. Its command in the plugin environment is node "${CLAUDE_PLUGIN_ROOT}/skills/zh-cn-setup/scripts/setup.js". The plugin-root variable must identify the installed parent plugin. The script can write missing local settings immediately; optional database synchronization has separate opt-in controls.
CLI patching belongs to a session-start hook outside this folder. The documentation calls for restarting Claude Code to activate changes. For Windows native installations after updates, it describes closing every Claude Code window and running install.ps1 -UpdateOnly from the full source installation. Those patching paths were not assessed.
example
Consider a CC Switch skill whose SKILL.md description is already Chinese while its database description remains English. The documented preview command is node "${CLAUDE_PLUGIN_ROOT}/skills/zh-cn-setup/scripts/cc-switch-descriptions.js". The code is designed to list eligible records without writing. Adding --apply requests a database backup followed by description updates. This is an illustrative use case; no preview output or successful update was observed.
Assessment & evidence
limitations
The documentation promises preservation of existing settings, atomic writes and backup with rollback. The settings merge and write implementations are outside the supplied folder, so those guarantees cannot be established. In the visible setup code, a settings-backup failure is swallowed and does not prevent the subsequent write call.
The description updater backs up the database before writing, but its update loop has no explicit transaction or automatic restore. A failure partway through could leave earlier updates applied. Both database backup paths directly copy the database file; backup consistency during concurrent application activity is unassessed.
Status messages offer limited assurance. Common configuration is considered current using language, enabled tips and minimum counts of 100 verbs and 40 tips, without comparing their content. Patch reporting checks a marker file rather than verifying the installed patch. The description reporter can announce that all descriptions are Chinese when no updates are available, even if some records lack a Chinese source.
Description extraction uses a basic frontmatter parser over the first 8,000 characters rather than a full YAML parser. Chinese-character heuristics do not establish translation quality. The documentation also says descriptions influence automatic skill triggering, so the behavioral effect of translating them remains unassessed.
reasoning
The code separates several localization layers: user settings, CLI patches, skill-file descriptions and CC Switch database descriptions. This explains why completing one step may leave English text elsewhere. The skill is useful as a configuration coordinator, while complete localization depends on the parent plugin and the particular layer that still needs attention.
alternatives
The setup script describes manually adding Chinese settings to CC Switch common configuration as an alternative to automatic synchronization. For CLI translation, it points to the parent plugin's hook and installer. For skill-file translation, it points to a separate scan-and-translate tool. These routes address different layers; competing localization resources were not assessed.
evidence
The available source material comprises the complete supplied SKILL.md, setup.js and cc-switch-descriptions.js, together with the repository MIT licence. These support descriptions of documented intent and visible configuration and database control flow.
The imported overlay helpers, translation data, translation script, hook, installers and CLI patchers are outside the supplied scope. No code was executed. Successful installation, rendered Chinese text, cross-platform operation, recovery behavior and compatibility with a specific Claude Code build remain unverified.
Access & freshness
costs
The MIT notice grants permission to use and copy the supplied software without a licence fee. The files provide no pricing, token-usage or operating-cost information. Claude Code access costs, costs associated with surrounding plugin components and total operating cost are unknown.
rights
The supplied repository licence is MIT, copyright 2026 taekchef. It permits use, copying, modification, distribution, sublicensing and sale of the software and associated documentation, provided the copyright and permission notice accompany copies or substantial portions. It disclaims warranties and liability. This notice does not establish redistribution rights for Claude Code itself or other dependencies.
freshness
The source snapshot was captured on 2026-11-15 at 19:15:44.646 UTC and is pinned to commit 80419d81eaee3e32cf31f00259f9fe65153ef3c6. No release number or explicit supported Claude Code version range is established by these files. The setup anticipates patch maintenance after Claude Code updates, but subsequent source changes and present compatibility are unknown.
actions
Use the full parent plugin and identify whether the remaining English text comes from settings, CLI patches, skill files or CC Switch records. Review the description tool's read-only plan before choosing --apply. Retain independent settings and database backups because recovery is not guaranteed across every write path. Follow the installed version's restart requirements and inspect the resulting interface; a status message alone does not establish complete localization.
