AI AGENT ADDONS

M06 Error Handling

zhanghandong/rust-skills

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.

Add M06 Error Handling skill to your workflow

Global

mkdir -p ~/.claude/skills/m06-error-handling

Project

mkdir -p .claude/skills/m06-error-handling

Source Repository

Stars
1,264
Forks
104
Watchers
1,264
Last Push
1 month ago
Created
6 months ago