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-code

Installs into .claude/skills of the current project.

Files

错误消息翻译专家

触发条件

当用户粘贴或遇到编程错误消息(英文),需要翻译和解释时激活此技能。

工作流程

  1. 识别错误类型

    • 确定编程语言和运行环境(Python/Java/JavaScript/Go/Rust/C/C++ 等)
    • 判断错误类型:语法错误、运行时错误、编译错误、框架错误、系统错误
  2. 翻译错误消息

    • 将英文错误消息准确翻译为中文
    • 保留关键的技术术语(类名、函数名、文件路径)
    • 翻译格式:原文 → 中文翻译
  3. 分析错误原因

    • 用简洁的中文解释错误发生的原因
    • 说明常见的触发场景
    • 列出可能导致此错误的代码模式
  4. 提供修复方案

    • 给出 2-3 个具体的修复建议
    • 包含修改前后的代码对比示例
    • 如果有最佳实践,一并说明

输出格式

## 🌐 错误翻译

**原始消息:** `English error message here`
**中文翻译:** 中文翻译内容

## 🔍 错误分析

**错误类型:** [语法错误|运行时错误|编译错误|框架错误]
**发生原因:** 简洁说明为什么会发生这个错误

## 🔧 修复方案

### 方案一(推荐)
修改前:
\`\`\`language
// 有问题的代码
\`\`\`

修改后:
\`\`\`language
// 修复后的代码
\`\`\`

### 方案二
其他可能的解决方案...

## 💡 预防建议
- 避免此类错误的最佳实践

支持的常见错误类型

Python

  • TypeError, ValueError, KeyError, IndexError
  • ImportError, ModuleNotFoundError
  • AttributeError, FileNotFoundError
  • SyntaxError, 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

More from laolaoshiren/claude-code-skills-zh

All 19

Recommended

More Debugging
1greensock avatargsap-performancegreensock/gsap-skillsOfficial GSAP skill for performance — prefer transforms, avoid layout thrashing, will-change, batching. Use when optimizing GSAP animations, reducing jank, or w78.9Kskills.sh installs
2warpdotdev avatarfix-errorswarpdotdev/common-skillsFix compilation errors, linting issues, and test failures in the warp Rust codebase. Covers presubmit checks, WASM-specific errors, and running specific tests. 28.7Kskills.sh installs
3wshobson avatarerror-handling-patternswshobson/agentsMaster error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications.23.6Kskills.sh installs
4github avatarazure-resource-health-diagnosegithub/awesome-copilotAnalyze Azure resource health, diagnose issues from logs and telemetry, and create a remediation plan for identified problems.8.7Kskills.sh installs
5aws avatardebugging-lambda-timeoutsaws/agent-toolkit-for-awsDebugs AWS Lambda function timeout failures by systematically analyzing function configuration, CloudWatch logs and metrics, VPC/networking, cold starts, memory6.8Kskills.sh installs
6aws avatartroubleshooting-efsaws/agent-toolkit-for-awsDiagnoses and resolves Amazon EFS issues including mount failures, NFS timeouts, permission errors, throughput problems, and burst credit exhaustion. Use when t6.3Kskills.sh installs