
Error Translator
If you work with international teams or learn from English documentation but think in Chinese, this handles the translation grunt work for error messages across Python, JavaScript, Java, Go, Rust, and more. It translates the error, explains what caused it, and gives you two or three concrete fixes with before and after code. The format is consistent: original message, Chinese translation, error type breakdown, and actionable solutions. It covers the usual suspects like Python's KeyError, JavaScript's undefined property errors, and Java's NullPointerException, plus framework specific stuff from Django, React, and Spring. Honestly most useful for intermediate developers who can fix the bug once they understand what the English error actually means.
- GitHub stars
- 328
- last updated
- May 13, 2026
Install
$ npx -y skills add laolaoshiren/claude-code-skills-zh --skill error-translator --agent claude-codeInstalls into .claude/skills of the current project.
Files
错误消息翻译专家
触发条件
当用户粘贴或遇到编程错误消息(英文),需要翻译和解释时激活此技能。
工作流程
-
识别错误类型
- 确定编程语言和运行环境(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数据处理错误
Sponsors
Details
- Repository
- github.com/laolaoshiren/claude-code-skills-zh
- Category
- Debugging
- License
- MIT
- First seen
- Jun 11, 2026