rust-error
✓错误处理专家。处理 Result, Option, panic, anyhow, thiserror, 自定义错误, 错误传播等问题。触发词:Result, Error, panic, ?, unwrap, expect, anyhow, thiserror, error handling, 错误处理, 错误类型
Installation
SKILL.md
| 不变量违反 | 配置文件验证失败 | 程序无法继续 | | 初始化检查 | EXPECTEDENV.isset() | 配置问题需要修复 | | 测试 | asserteq! | 验证假设 | | 不可恢复 | 连接意外断开 | 最好让程序崩溃 |
| .unwrap() 到处都是 | 生产环境 panic | ? 或 withcontext() | | Box | 丢失类型信息 | thiserror 枚举 | | 静默忽略错误 | bug 隐藏 | 处理或传播 | | 错误类型层次过深 | 过度设计 | 按需设计 | | panic 用于流程控制 | 滥用 panic | 正常控制流 |
| 库返回自定义错误 | Result | thiserror | | 应用快速开发 | Result | anyhow | | absence 正常 | Option | None / Some(x) | | 预期 panic | panic! / assert! | 仅限特殊情况 | | 错误转换 | .maperr() / .withcontext() | 添加上下文 |
错误处理专家。处理 Result, Option, panic, anyhow, thiserror, 自定义错误, 错误传播等问题。触发词:Result, Error, panic, ?, unwrap, expect, anyhow, thiserror, error handling, 错误处理, 错误类型 Source: huiali/rust-skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/huiali/rust-skills --skill rust-error- Source
- huiali/rust-skills
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is rust-error?
错误处理专家。处理 Result, Option, panic, anyhow, thiserror, 自定义错误, 错误传播等问题。触发词:Result, Error, panic, ?, unwrap, expect, anyhow, thiserror, error handling, 错误处理, 错误类型 Source: huiali/rust-skills.
How do I install rust-error?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/huiali/rust-skills --skill rust-error Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/huiali/rust-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01