m06-error-handling
Helps you handle errors correctly in Rust code instead of letting the program crash.
Installation
Paste this into Claude Code, Cursor, or any agent that can run commands.
What this skill does
What it does:
This skill guides how errors and failures should be handled in Rust code. It helps decide whether a problem is an expected, normal situation that the program should gracefully handle, or a real bug that should stop the program immediately. It explains the difference between returning a result that might fail, returning nothing when something is simply missing, and crashing on purpose when something has gone seriously wrong. It also compares two popular helper tools, one for reusable code libraries and one for regular applications.
When to use it:
- Writing or reviewing code that might fail, such as reading a file or a network request
- Deciding whether to stop the program, show an error message, or pass the problem up to the calling code
- Fixing a crash caused by an unhandled failure
- Adding helpful context to an error so it's easier to understand what went wrong
This is background guidance used automatically while working with Rust error handling, not a command a person types directly.
The full skill text could not be loaded right now. It installs fine with the command above, or read it at the source.
Mirrored from the author's public source. Install counts from the open skills registry.