Error handling is a key part of writing reliable code. This guide helps you decide between Result, Option, and panic. It shows when a failure is expected or when it is a bug.
You will learn to ask the right questions before handling an error. The skill covers common patterns like ? for propagation and .context() for adding details. It also explains when to use anyhow or thiserror depending on whether you are writing a library or an application.
By following this skill, you avoid common mistakes like overusing unwrap() or losing error context. Your code becomes safer and easier to debug.
Global
mkdir -p ~/.claude/skills/m06-error-handlingProject
mkdir -p .claude/skills/m06-error-handlingSource Repository
Find Skillsvercel-labs/skills
Find and install the perfect skill to extend your AI agent
Microsoft Foundrymicrosoft/azure-skills
Build, deploy, and improve AI agents on Microsoft Foundry from start to finish
Azure Aimicrosoft/azure-skills
Search, transcribe, and analyze with Azure AI tools for smarter apps
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Build, deploy, and manage your Copilot SDK apps on Azure with ease
Triagemattpocock/skills
Triage issues with a state machine driven by clear roles and agent briefs
Handoffmattpocock/skills
Hand off your work to another AI agent with a clear summary
Image Editagentspace-so/runcomfy-agent-skills
Smart router picks the best AI model for your image editing needs
Agentspaceagentspace-so/skills
See your AI agent's live folder from any browser instantly