编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案
npx skills add https://github.com/laolaoshiren/claude-code-skills-zh --skill error-translator
当用户粘贴或遇到编程错误消息(英文),需要翻译和解释时激活此技能。
原文 → 中文翻译## 🌐 错误翻译
**原始消息:** `English error message here`
**中文翻译:** 中文翻译内容
## 🔍 错误分析
**错误类型:** [语法错误|运行时错误|编译错误|框架错误]
**发生原因:** 简洁说明为什么会发生这个错误
## 🔧 修复方案
### 方案一(推荐)
修改前:
\`\`\`language
// 有问题的代码
\`\`\`
修改后:
\`\`\`language
// 修复后的代码
\`\`\`
### 方案二
其他可能的解决方案...
## 💡 预防建议
- 避免此类错误的最佳实践
TypeError, ValueError, KeyError, IndexErrorImportError, ModuleNotFoundErrorAttributeError, FileNotFoundErrorSyntaxError, IndentationErrorasyncio 异步错误pandas/numpy 数据处理错误TypeError, ReferenceError, SyntaxErrorCannot read property of undefinedPromise rejection 错误ESLint/Prettier 配置错误NullPointerException, ClassNotFoundExceptionRuntimeException, IOExceptionOutOfMemoryError)nil pointer, index out of range, goroutine 泄漏borrow checker, lifetime 错误segmentation fault, undefined reference, 内存泄漏Undefined variable, 命名空间错误KeyError原始消息: KeyError: 'username'
中文翻译: 键错误:'username'
原因分析: 尝试访问字典中不存在的键 'username'
修复方案: 使用 .get('username', default_value) 或检查键是否存在
Cannot read property 'map' of undefined原始消息: TypeError: Cannot read property 'map' of undefined
中文翻译: 类型错误:无法读取未定义对象的 'map' 属性
原因分析: 尝试在 undefined 值上调用 .map() 方法
修复方案: 添加空值检查 data?.map(...) 或确保数据已初始化
NullPointerException原始消息: java.lang.NullPointerException
中文翻译: 空指针异常
原因分析: 尝试使用一个为 null 的对象引用
修复方案: 添加 null 检查,使用 Optional<T>,或检查对象初始化
Analyzes meeting transcripts and recordings to uncover behavioral patterns, communication insights, and actionable feedback. Identifies when you avoid conflict, use filler words, dominate conversations, or miss opportunities to listen. Perfect for professionals seeking to improve their communication and leadership skills.
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
Analyzes your recent Claude Code chat history to identify coding patterns, development gaps, and areas for improvement, curates relevant learning resources from HackerNews, and automatically sends a personalized growth report to your Slack DMs.
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack.
A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.
Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.
Prepare meeting materials with Notion context and Codex research; use when gathering context, drafting agendas/pre-reads, and tailoring materials to attendees.
Interactive daily standup/meeting update generator. Use when user says 'daily', 'standup', 'scrum update', 'status update', 'what did I do yesterday', 'prepare for meeting', 'morning update', or 'team sync'. Pulls activity from GitHub, Jira, and Claude Code session history. Conducts 4-question interview (yesterday, today, blockers, discussion topics) and generates formatted Markdown update.
Take laolaoshiren/error-translator from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.