Agent skill · Audited from source
Error Translator
skill · laolaoshiren/claude-code-skills-zhMIT licenceAudited 19 Oct 2026 · source 7d69626375c6
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 7d69626375c6 and found no filesystem, network or shell access and no hard-coded secrets. What it does: 编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案
Cite
Cite this page
ModelsAtlas. “Error Translator (laolaoshiren/claude-code-skills-zh)”. Retrieved 19 Oct 2026. https://modelsatlas.com/skills/laolaoshiren/error-translator
Trust audit
Audit 0.4.1 · source read 19 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 13,985 of 14,816 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 7d69626375c6 · 19 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherlaolaoshiren GitHub userOwner of the repository this skill is read from
- Source folderlaolaoshiren/claude-code-skills-zh/skills/error-translatorThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict7d69626375c6A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: 编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案
---
name: error-translator
description: 编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案
---
# 错误消息翻译专家
## 触发条件
当用户粘贴或遇到编程错误消息(英文),需要翻译和解释时激活此技能。
## 工作流程
1. **识别错误类型**
- 确定编程语言和运行环境(Python/Java/JavaScript/Go/Rust/C/C++ 等)
- 判断错误类型:语法错误、运行时错误、编译错误、框架错误、系统错误
2. **翻译错误消息**
- 将英文错误消息准确翻译为中文
- 保留关键的技术术语(类名、函数名、文件路径)
- 翻译格式:`原文 → 中文翻译`
3. **分析错误原因**
- 用简洁的中文解释错误发生的原因
- 说明常见的触发场景
- 列出可能导致此错误的代码模式
4. **提供修复方案**
- 给出 2-3 个具体的修复建议
- 包含修改前后的代码对比示例
- 如果有最佳实践,一并说明
## 输出格式
```markdown
## 🌐 错误翻译
**原始消息:** `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(...)` 或确保数据已初始化
### 示例 3: Java `NullPointerException`
**原始消息:** `java.lang.NullPointerException`
**中文翻译:** `空指针异常`
**原因分析:** 尝试使用一个为 null 的对象引用
**修复方案:** 添加 null 检查,使用 `Optional<T>`,或检查对象初始化
## 注意事项
- 保持技术术语的准确性,不要过度翻译
- 对于框架特定的错误,要说明是哪个框架
- 如果错误信息不完整,询问用户提供完整的 traceback
- 优先提供安全的修复方案,避免引入新问题
- 建议用户添加错误监控和日志记录,预防类似错误Excerpt, first 2,432 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 7d69626
git clone https://github.com/laolaoshiren/claude-code-skills-zh git -C claude-code-skills-zh checkout 7d69626375c6
The author documents no install command, so this uses the repository directly. Our verdict covers commit 7d69626375c6 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
7d69626375c6
Similar skills
All coding & review skills →laolaoshiren/claude-code-skills-zh
依据真实 OpenAPI、路由实现和现有测试生成并验证 API 测试。用于用户要求测试接口、补集成测试、验证 API 契约、生成回归用例或排查接口兼容性时;区分“生成测试”和“执行请求”的授权,不猜测状态码、响应结构或 SLA,不在未确认环境中发送写请求。
laolaoshiren/claude-code-skills-zh
Changelog 生成器 - 从 Git 历史自动生成 CHANGELOG
laolaoshiren/claude-code-skills-zh
数据库迁移助手 - Schema 对比、迁移脚本生成
laolaoshiren/claude-code-skills-zh
审计 Node.js、Python、Go、Rust、JVM、Ruby 项目的依赖漏洞、版本健康度与许可证事实;当用户要求检查 package.json、lockfile、requirements、go.mod、Cargo.toml、pom.xml、Gemfile.lock,或生成不改依赖的中文审计报告时使用
laolaoshiren/claude-code-skills-zh
项目目录结构地图 - 生成带说明的可视化目录树,快速理解任意代码库
laolaoshiren/claude-code-skills-zh
环境变量管理器:扫描、校验、同步 .env 文件,生成安全配置模板
Questions about Error Translator
What does the Error Translator skill do?
Is Error Translator safe to install?
What can Error Translator access on my machine?
How current is this page?
Sources
- github.com/laolaoshiren/claude-code-skills-zh/tree/main/skills/e — the audited source at commit 7d69626375c6 and every finding aboveObserved · 19 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Error Translator skill do?
- Is Error Translator safe to install?
- What can Error Translator access on my machine?