error-translator

error-translator is a skill for Claude Code, Codex from laolaoshiren/claude-code-skills-zh. It costs 28 tokens per session (1,116 once invoked), scanned A, original, MIT.

A Chinese-language assistant that translates English programming errors and explains what they mean. It covers common errors from languages and frameworks including Python, JavaScript, TypeScript, Java, and others.

In plain words
What is it for?
Use it to translate an error, identify its type, explain common triggers, and suggest fixes with before-and-after code examples. It can also provide prevention advice.
Why use it?
It helps developers understand unfamiliar error messages without losing important names such as functions, classes, or file paths. It connects the message to likely causes and possible fixes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to translate an error, identify its type, explain common triggers, and suggest fixes with before-and-after code examples. It can also provide prevention advice.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laolaoshiren/claude-code-skills-zh/error-translator
Install

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.

Any agent
npx skills add laolaoshiren/claude-code-skills-zh --skill error-translator
Clone the repo
git clone --depth 1 https://github.com/laolaoshiren/claude-code-skills-zh

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for error-translator

README.md
[![agentmods](https://agentmods.dev/badge/skills/laolaoshiren/claude-code-skills-zh/error-translator/github.svg)](https://agentmods.dev/skills/laolaoshiren/claude-code-skills-zh/error-translator)
Your own site
<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.

agentmods 80×15 button for error-translator

Your own site · 80×15
<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>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,116 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash 28aff505617a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

skills/error-translator/SKILL.md · 125 lines

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.

错误消息翻译专家

触发条件

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

工作流程

  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 数据处理错误

JavaScript/TypeScript

  • TypeError, ReferenceError, SyntaxError
  • Cannot read property of undefined
  • Promise rejection 错误
  • React/Vue/Angular 框架错误
  • Node.js 模块和依赖错误
  • TypeScript 类型错误
  • ESLint/Prettier 配置错误

Java

  • NullPointerException, ClassNotFoundException
  • RuntimeException, 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(...) 或确保数据已初始化

Read the full file on GitHub · 125 lines

Changes

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.

  1. 10d ago First seen · 125 lines · 28 tokens per session scan A 28aff505617a

Subscribe to this mod's changes

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.

Related

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.

rockscy/solo-skills · 68 tokens

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.

rockscy/solo-skills · 60 tokens

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.

WenyuChiou/awesome-agentic-ai-zh · 62 tokens

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".

tobihagemann/turbo · 71 tokens

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"…

tobihagemann/turbo · 107 tokens

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…

tobihagemann/turbo · 78 tokens