# Error Handling

> Guide for Rust error handling. Use when working with Result, Option, the ? operator, implementing custom error types, or composing errors with thiserror and anyhow.

- Skill: `vinnie357/error-handling` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add vinnie357/error-handling`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vinnie357/error-handling/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vinnie357 (https://skillmd.com/u/vinnie357)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/vinnie357/error-handling

---


# Rust Error Handling

Result, Option, error propagation, and custom error types.

For Result, Option, ? operator, custom error type patterns, and the thiserror/anyhow ecosystem crates, see `references/error-handling.md`.

## Anti-fabrication

This skill follows `core:anti-fabrication`. Every claim about `Result`/`Option` behavior,
the `?` operator, and the `thiserror`/`anyhow` crate APIs is verified against the official
documentation and crates.io versions cited in `sources.md` — not inferred from generic
familiarity with the ecosystem. Before asserting an error-handling pattern or crate API this
skill and its references do not cover, check the installed crate version's docs.rs page
rather than guessing.

