xiaozhi-client: Skill for Claude Code

.agents/skills/localization-validator/SKILL.md

localization-validator is a skill for Claude Code, Codex from shenjingnan/xiaozhi-client. It costs 18 tokens per session (1,342 once invoked), scanned A, original, MIT.

A localization checker for projects whose user-facing content is meant for Chinese developers and users. It checks comments, test descriptions, interface text, errors, and documentation.

In plain words
What is it for?
Use it to review source comments, test names, hard-coded messages, error text, and documentation for localization issues.
Why use it?
It finds English text that may violate the project's Chinese-language conventions while allowing technical identifiers and code names to remain unchanged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is shenjingnan/xiaozhi-client's own configuration. It tells Claude Code and Codex how to work on xiaozhi-client 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 xiaozhi-client configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shenjingnan/xiaozhi-client. 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/shenjingnan/xiaozhi-client/main/.agents/skills/localization-validator/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client

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 localization-validator

README.md
[![agentmods](https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/localization-validator.svg)](https://agentmods.dev/skills/shenjingnan/xiaozhi-client/localization-validator)
Your own site
<a href="https://agentmods.dev/skills/shenjingnan/xiaozhi-client/localization-validator"><img src="https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/localization-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,342 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00018 $0.01342
Opus 5 $0.00009 $0.00671
Sonnet 5 $0.00004 $0.00268
Haiku 4.5 $0.00002 $0.00134

Measured 8d ago against content hash 0066f2aa23fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

localization-validator scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/localization-validator/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

本地化验证技能

技能描述

该技能用于验证项目的本地化质量,确保所有面向中文开发者和用户的内容都符合项目的本地化标准,同时遵循务实开发理念。

技能使用原则

  • 保证本地化质量,但避免过度严格:确保用户可见内容本地化,但不追求完美的本地化标准
  • 实用功能优先,理论完美次之:解决实际的本地化问题比预防所有可能更重要
  • 简单解决方案优于复杂方案:优先选择直接有效的本地化检查方式
  • 务实开发指导:评估本地化的必要性,避免过度本地化

检查项目

  1. 代码注释本地化 - 检查是否还有英文注释
  2. 测试用例描述本地化 - 检查测试文件中的 describe 和 it 语句是否使用中文
  3. 用户界面字符串本地化 - 检查硬编码的英文字符串
  4. 错误信息本地化 - 检查面向用户的错误信息
  5. 文档和注释一致性 - 确保所有文档都使用中文

验证规则

1. 代码注释检查

// ❌ 错误 - 英文注释
// Get user data from API

// ✅ 正确 - 中文注释
// 从 API 获取用户数据

2. 测试用例描述检查

// ❌ 错误 - 英文描述
describe("User Component", () => {
  it("should render user name correctly", () => {
    // ...
  });
});

// ✅ 正确 - 中文描述
describe("用户组件", () => {
  it("应该正确渲染用户名称", () => {
    // ...
  });
});

3. 硬编码字符串检查

// ❌ 错误 - 硬编码英文字符串
const serviceName = "unknown";
const status = "loading";

// ✅ 正确 - 使用中文常量
const UNKNOWN_SERVICE = "未知服务";
const LOADING_STATUS = "加载中";

4. 技术标识符例外

以下情况可以保留英文:

  • 技术标识符(如 "coze", "mcp", "stdio")
  • API 路径参数
  • 配置键名
  • 函数和变量名(遵循编程惯例)

验证流程

自动检查

  1. 使用 grep 查找英文注释模式:

    grep -r "//.*[A-Z][a-z].*" --include="*.ts" --include="*.tsx" src/
    
  2. 查找英文测试描述:

    grep -r "describe\|it(" --include="*.test.ts" --include="*.test.tsx" src/
    
  3. 查找硬编码英文字符串:

    grep -r '"[a-zA-Z]\{3,\}"' --include="*.ts" --include="*.tsx" src/
    

手动验证

  1. 检查自动检查的结果
  2. 确认技术标识符的例外情况
  3. 验证翻译的准确性和一致性

修复建议

优先级 1:高优先级

  • 用户界面中的硬编码英文字符串
  • 测试用例中的英文描述
  • 面向用户的错误信息

优先级 2:中优先级

  • 代码注释中的英文
  • 文档中的英文内容

优先级 3:低优先级

  • 开发者工具中的英文(如调试信息)
  • 技术标识符(如服务名称)

常见翻译对照

英文 中文
unknown 未知
loading 加载中
error 错误
success 成功
failed 失败
pending 待处理
completed 已完成
configuration 配置
parameter 参数
component 组件
service 服务
server 服务器
client 客户端

使用方法

当需要对项目进行本地化验证时:

  1. 运行自动检查:执行上述 grep 命令查找英文内容
  2. 分类问题:将发现的问题按优先级分类
  3. 制定修复计划:根据优先级制定修复顺序
  4. 执行修复:逐一修复发现的问题
  5. 验证修复:确保修复后没有引入新问题

Read the full file on GitHub · 161 lines

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. 8d ago First seen · 161 lines · 18 tokens per session scan A 0066f2aa23fc

Subscribe to this mod's changes

localization-validator is a skill published in the GitHub repository shenjingnan/xiaozhi-client (337 stars, last pushed 4d ago), licensed MIT. It adds 18 tokens to every session and 1,342 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. 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

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications. Triggers: "text translation", "translator", "translate text", "transliterate", "TextTranslationClient".

microsoft/skills · 60 tokens

harden

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready. Use when the user asks to harden, make production-ready, handle edge cases, add error states, or fix overflow and i18n issues.

fengshao1227/ccg-workflow · 62 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

i18n-helper

A helper for adding internationalization, which lets software show different languages and regional text. It finds user-visible text written directly in code and moves it into language files.

laolaoshiren/claude-code-skills-zh · 33 tokens