Error handling

From vinnie357/claude-skills · View interactive version

Error handling is an AI agent skill from the GitHub repository vinnie357/claude-skills. Guide for Rust error handling. Use when working with Result, Option, the ? operator, implementing custom error types, or composing errors with thiserror and anyhow.

How to use this skill

Skill file

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.