From all-skills
Guides Rust error handling with Result, Option, the ? operator, custom error types, and thiserror/anyhow for error composition.
How this skill is triggered — by the user, by Claude, or both
Slash command
/all-skills:error-handlingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Result, Option, error propagation, and custom error types.
Result, Option, error propagation, and custom error types.
Activate when:
For Result, Option, ? operator, custom error type patterns, and the thiserror/anyhow ecosystem crates, see references/error-handling.md.
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.
npx claudepluginhub vinnie357/claude-skills --plugin sbx2plugins reuse this skill
First indexed Jul 19, 2026
Guides Rust error handling with Result, Option, the ? operator, custom error types, and thiserror/anyhow for error composition.
Guides error handling decisions in Rust: when to use Result vs Option vs panic, how to propagate errors with ?, and when to use anyhow vs thiserror.
Guides Rust error handling design: thiserror for libraries vs anyhow for applications, typed error enums, and recoverable vs panic errors.