🌐
WritingPython

Error Translator

by laolaoshiren

Error Translator is a Writing skill for Claude Code, published by laolaoshiren in claude-code-skills-zh.

786 stars84 forkson laolaoshiren/claude-code-skills-zhAdded 2026/08/23+1% in starsRepository updated 2026/08/23
ai-agentawesome-listclaude-codeclaude-skillsdeveloper-toolsprompt-engineeringskills
Install in seconds
Install Error Translator
Copy Error Translator into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/laolaoshiren/claude-code-skills-zh/tree/main/skills/error-translator ~/.claude/skills/error-translator

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/laolaoshiren/claude-code-skills-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/error-translator/SKILL.md in laolaoshiren/claude-code-skills-zh
Installs to
~/.claude/skills/error-translator
Collection
One of 20 skills cataloged from this repository
Category
Writing1012 skills

What Error Translator does

Error Translator translates English programming errors into Chinese and explains likely causes. Use it when you need a clear reading of a traceback or message plus concrete fix ideas.

Error Translator is cataloged under Writing on DirSkills. Error Translator comes from a repository tagged ai-agent, awesome-list, claude-code, claude-skills and developer-tools.

Documentation

README

错误消息翻译专家

触发条件

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

工作流程

  1. 识别错误类型

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

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

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

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

输出格式

## 🌐 错误翻译

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

## 🔍 错误分析

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

## 🔧 修复方案

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

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

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

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

支持的常见错误类型

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Error Translator

  • What else does laolaoshiren publish alongside Error Translator?

    Error Translator is one of 20 skills that DirSkills catalogs from laolaoshiren/claude-code-skills-zh, the repository it ships in. Its siblings there include API Tester, Changelog Generator and Chinese Code Reviewer. Each one is a separate skill with its own page in this directory, installs the same way Error Translator does, and is maintained by laolaoshiren in that same repository. The rest of the collection is listed on the laolaoshiren/claude-code-skills-zh page.

  • How does Error Translator compare to other Writing skills?

    Error Translator ranks #567 by stars among the 1012 Writing skills in this catalog. The most-starred ones next to it are Article Writing, Social Media Content Calendar and Knowledge Comic Creator. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Error Translator against them. Open each page to compare what they document and how they install.

More from laolaoshiren/claude-code-skills-zh

Error Translator is one of 20 skills cataloged on DirSkills from laolaoshiren/claude-code-skills-zh.

See all 20 skills