/zh-skills:error-translatorfrom Claude Code Skills 中文精选集 · 原创技能
Translates single or short English error messages and stack traces into natural Chinese, explains root causes, and provides actionable fixes. Useful when users paste terminal errors, compilation failures, runtime exceptions, or framework errors and request Chinese explanations.
Ships in Claude Code Skills 中文精选集 · 原创技能. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
eslint-fix;多行或大体积 .log / 容器日志聚合分析 → log-analyzer;汉化英文 SKILL.md 或规则文档 → skill-translator。UnicodeDecodeError: 'gbk' codec、标记“&&”不是有效语句分隔符 等)。原文 → 中文翻译)。## 🌐 错误翻译
**原始消息:** `English error message here`
**中文翻译:** 中文翻译内容
## 🔍 错误分析
**语言 / 环境:** {例如 Python 3.12 / Windows PowerShell}
**错误类型:** 语法错误 / 运行时错误 / 编译与类型错误 / 环境与编码错误 / 框架错误
**发生原因:** 简洁说明直接原因与常见触发条件
## 🔧 修复方案
### 方案一(推荐)
修改前:
```language
// 有问题的代码或命令
修改后:
// 修复后的代码或命令
其他可选思路与权衡...
## 常见错误模式参考
### Python
- `TypeError` / `ValueError` / `KeyError` / `IndexError` / `AttributeError`
- `ImportError` / `ModuleNotFoundError` / `FileNotFoundError`
- `UnicodeDecodeError: 'gbk' codec can't decode byte`(Windows 默认 CP936 编码读 UTF-8 文件,需显式传 `encoding="utf-8"`)
- `asyncio` 事件循环错误、`pandas` / `numpy` 形状或类型不匹配
### JavaScript / TypeScript
- `TypeError: Cannot read properties of undefined`、`ReferenceError`、`UnhandledPromiseRejection`
- ESM / CommonJS 模块混用(`ERR_REQUIRE_ESM`、`Cannot use import statement outside a module`)
- React Hooks 规则错误、Hydration mismatch、TypeScript 类型收窄报错
### Java / Go / Rust / 其他
- Java:`NullPointerException`、`ClassNotFoundException`、`OutOfMemoryError`、Spring 依赖注入冲突
- Go:`nil pointer dereference`、`index out of range`、channel 死锁与并发竞态
- Rust:borrow checker 借用冲突、lifetime 生命周期约束、trait bound 未满足
- Windows 终端常见坑:PowerShell 5.1 不支持 `&&`、`curl` 别名指向 `Invoke-WebRequest`、路径分隔符与权限问题
## 注意事项
- 优先结合仓库里真实出错的文件行号作答,避免脱离上下文泛泛而谈。
- 涉及安装依赖或修改环境配置的修复命令,先说明影响并让用户决定是否执行。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/ai-video-producer把一句话选题或一段文案做成可发布的 AI 视频:先调研与提案、再写脚本分镜、生成或采集素材、剪辑合成、烧中文逐字字幕并导出多平台尺寸。覆盖口播、解说、产品演示、纪录片混剪、短剧等场景,支持零基础与专业两种档位。/api-tester依据真实 OpenAPI、路由实现和现有测试生成并验证 HTTP / REST / GraphQL / gRPC 接口测试与契约。用于用户要求测试接口、补接口集成测试、验证 API 契约、生成接口回归用例或排查接口兼容性时;区分“生成测试”与“三档环境执行”授权,不猜测状态码、业务错误码或 SLA,不在未确认环境中发送写请求,也不替代纯函数/模块内部逻辑测试(test-generator)。/changelog-gen从真实 Git 提交历史生成结构化中文 CHANGELOG 或 Release Notes。用于用户要求生成更新日志、版本发布说明、整理发版变更清单或建议语义化版本号时;兼容 Conventional Commits 与中文自由提交历史,严禁编造不存在的 PR/Issue/CVE 编号,覆盖 CHANGELOG.md、打 git tag 或发布 Release 前必须取得确认。npx claudepluginhub laolaoshiren/claude-code-skills-zh --plugin zh-skillsOther plugins' skills for the same job