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.
curl -O https://raw.githubusercontent.com/shenjingnan/xiaozhi-client/main/.agents/skills/localization-validator/SKILL.mdgit clone --depth 1 https://github.com/shenjingnan/xiaozhi-clientWrote 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/shenjingnan/xiaozhi-client/localization-validator)<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>- NVIDIA SkillSpector pass
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.00018 | $0.01342 |
| Opus 5 | $0.00009 | $0.00671 |
| Sonnet 5 | $0.00004 | $0.00268 |
| Haiku 4.5 | $0.00002 | $0.00134 |
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.
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.
本地化验证技能
技能描述
该技能用于验证项目的本地化质量,确保所有面向中文开发者和用户的内容都符合项目的本地化标准,同时遵循务实开发理念。
技能使用原则
- 保证本地化质量,但避免过度严格:确保用户可见内容本地化,但不追求完美的本地化标准
- 实用功能优先,理论完美次之:解决实际的本地化问题比预防所有可能更重要
- 简单解决方案优于复杂方案:优先选择直接有效的本地化检查方式
- 务实开发指导:评估本地化的必要性,避免过度本地化
检查项目
- 代码注释本地化 - 检查是否还有英文注释
- 测试用例描述本地化 - 检查测试文件中的 describe 和 it 语句是否使用中文
- 用户界面字符串本地化 - 检查硬编码的英文字符串
- 错误信息本地化 - 检查面向用户的错误信息
- 文档和注释一致性 - 确保所有文档都使用中文
验证规则
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 路径参数
- 配置键名
- 函数和变量名(遵循编程惯例)
验证流程
自动检查
-
使用 grep 查找英文注释模式:
grep -r "//.*[A-Z][a-z].*" --include="*.ts" --include="*.tsx" src/ -
查找英文测试描述:
grep -r "describe\|it(" --include="*.test.ts" --include="*.test.tsx" src/ -
查找硬编码英文字符串:
grep -r '"[a-zA-Z]\{3,\}"' --include="*.ts" --include="*.tsx" src/
手动验证
- 检查自动检查的结果
- 确认技术标识符的例外情况
- 验证翻译的准确性和一致性
修复建议
优先级 1:高优先级
- 用户界面中的硬编码英文字符串
- 测试用例中的英文描述
- 面向用户的错误信息
优先级 2:中优先级
- 代码注释中的英文
- 文档中的英文内容
优先级 3:低优先级
- 开发者工具中的英文(如调试信息)
- 技术标识符(如服务名称)
常见翻译对照
| 英文 | 中文 |
|---|---|
| unknown | 未知 |
| loading | 加载中 |
| error | 错误 |
| success | 成功 |
| failed | 失败 |
| pending | 待处理 |
| completed | 已完成 |
| configuration | 配置 |
| parameter | 参数 |
| component | 组件 |
| service | 服务 |
| server | 服务器 |
| client | 客户端 |
使用方法
当需要对项目进行本地化验证时:
- 运行自动检查:执行上述 grep 命令查找英文内容
- 分类问题:将发现的问题按优先级分类
- 制定修复计划:根据优先级制定修复顺序
- 执行修复:逐一修复发现的问题
- 验证修复:确保修复后没有引入新问题
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.
- 8d ago First seen · 161 lines · 18 tokens per session scan A 0066f2aa23fc
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.
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.
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".
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.
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.
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.
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.