Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add laolaoshiren/claude-code-skills-zh --skill error-translatorgit clone --depth 1 https://github.com/laolaoshiren/claude-code-skills-zhWrote 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/laolaoshiren/claude-code-skills-zh/error-translator)<a href="https://agentmods.dev/skills/laolaoshiren/claude-code-skills-zh/error-translator"><img src="https://agentmods.dev/badge/skills/laolaoshiren/claude-code-skills-zh/error-translator/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/laolaoshiren/claude-code-skills-zh/error-translator"><img src="https://agentmods.dev/badge/skills/laolaoshiren/claude-code-skills-zh/error-translator.svg" alt="Reviewed on agentmods" width="80" 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.00028 | $0.01116 |
| Opus 5 | $0.00014 | $0.00558 |
| Sonnet 5 | $0.00006 | $0.00223 |
| Haiku 4.5 | $0.00003 | $0.00112 |
Grade A, and why
error-translator 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 10d 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 — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
错误消息翻译专家
触发条件
当用户粘贴或遇到编程错误消息(英文),需要翻译和解释时激活此技能。
工作流程
-
识别错误类型
- 确定编程语言和运行环境(Python/Java/JavaScript/Go/Rust/C/C++ 等)
- 判断错误类型:语法错误、运行时错误、编译错误、框架错误、系统错误
-
翻译错误消息
- 将英文错误消息准确翻译为中文
- 保留关键的技术术语(类名、函数名、文件路径)
- 翻译格式:
原文 → 中文翻译
-
分析错误原因
- 用简洁的中文解释错误发生的原因
- 说明常见的触发场景
- 列出可能导致此错误的代码模式
-
提供修复方案
- 给出 2-3 个具体的修复建议
- 包含修改前后的代码对比示例
- 如果有最佳实践,一并说明
输出格式
## 🌐 错误翻译
**原始消息:** `English error message here`
**中文翻译:** 中文翻译内容
## 🔍 错误分析
**错误类型:** [语法错误|运行时错误|编译错误|框架错误]
**发生原因:** 简洁说明为什么会发生这个错误
## 🔧 修复方案
### 方案一(推荐)
修改前:
\`\`\`language
// 有问题的代码
\`\`\`
修改后:
\`\`\`language
// 修复后的代码
\`\`\`
### 方案二
其他可能的解决方案...
## 💡 预防建议
- 避免此类错误的最佳实践
支持的常见错误类型
Python
TypeError,ValueError,KeyError,IndexErrorImportError,ModuleNotFoundErrorAttributeError,FileNotFoundErrorSyntaxError,IndentationError- Django/Flask/FastAPI 框架错误
asyncio异步错误pandas/numpy数据处理错误
JavaScript/TypeScript
TypeError,ReferenceError,SyntaxErrorCannot read property of undefinedPromise rejection错误- React/Vue/Angular 框架错误
- Node.js 模块和依赖错误
- TypeScript 类型错误
ESLint/Prettier配置错误
Java
NullPointerException,ClassNotFoundExceptionRuntimeException,IOException- Spring/Hibernate 框架错误
- Maven/Gradle 构建错误
- JVM 内存错误(
OutOfMemoryError)
其他语言
- Go:
nil pointer,index out of range,goroutine泄漏 - Rust:
borrow checker,lifetime错误 - C/C++:
segmentation fault,undefined reference, 内存泄漏 - SQL: 语法错误、约束冲突、连接池错误
- PHP:
Undefined variable, 命名空间错误
常见错误模式示例
示例 1: Python KeyError
原始消息: KeyError: 'username'
中文翻译: 键错误:'username'
原因分析: 尝试访问字典中不存在的键 'username'
修复方案: 使用 .get('username', default_value) 或检查键是否存在
示例 2: JavaScript Cannot read property 'map' of undefined
原始消息: TypeError: Cannot read property 'map' of undefined
中文翻译: 类型错误:无法读取未定义对象的 'map' 属性
原因分析: 尝试在 undefined 值上调用 .map() 方法
修复方案: 添加空值检查 data?.map(...) 或确保数据已初始化
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.
- 10d ago First seen · 125 lines · 28 tokens per session scan A 28aff505617a
error-translator is a skill published in the GitHub repository laolaoshiren/claude-code-skills-zh (828 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 1,116 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
postmortem-solo
Run a lightweight, blame-free postmortem after an incident, failed launch, or missed deadline — for one person. Use when the user says "that didn't go well", "the launch flopped", "we had an outage", "I missed my deadline", or wants to learn from a recent failure.
bug-from-user
Convert a vague user complaint into a reproducible bug report a solo dev can act on. Use when the user pastes a confusing customer message, says "user says it's broken but I can't repro", "this email makes no sense", or wants to triage a bug report.
tool-calling-tutor
Use when a tool-calling agent does not call a tool, sends wrong arguments, loops without stopping, or needs a function schema. Guides a four-branch diagnosis and five-step schema repair. Do not use for framework-specific, MCP-server, or production-observability questions.
audit
Project-wide health audit pipeline that fans out to all analysis skills in parallel, evaluates findings, and produces a unified report at .turbo/audit.md. Use when the user asks to "audit the project", "run a full audit", "project health check", "audit my code", "codebase audit", or "comprehensive review".
investigate
Systematically investigate bugs, test failures, build errors, performance issues, or unexpected behavior by cycling through characterize-isolate-hypothesize-test steps. Use when the user asks to "investigate this bug", "debug this", "figure out why this fails", "find the root cause", "why is this broken"…
consult-oracle
Consult ChatGPT Pro via ChatGPT browser automation for problems that resist standard approaches. Use when stuck on a very hard problem, when standard approaches have failed, when multiple debugging attempts haven't worked, or when the user says "ask the oracle", "consult oracle", "consult chatgpt", "I'm completely…