Skill / SKILL.md

Rust Errors

rewrite-rs/skills

Design Rust error types and panic policy — Result over unwrap, thiserror for libraries, anyhow for binaries, context that survives the call stack. Use when code calls unwrap or expect outside tests, when designing or refactoring an error enum, when choosing between thiserror and anyhow, or when the user asks how errors should be handled or propagated.
2 views 29 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Design Rust error types and panic policy — Result over unwrap, thiserror for libraries, anyhow for binaries, context that survives the call stack. Use when code calls unwrap or expect outside tests, when designing or refactoring an error enum, when choosing between thiserror and anyhow, or when the user asks how errors should be handled or propagated.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/rewrite-rs/skills' skill-source

Use the complete skill-source/skills/rust/rust-errors directory with your client’s skill installer.

  • skills/rust/rust-errors

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/rust/rust-errors

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
89851d25116763d8c5b7267eee1fc99aa3f6494971a2fa601a416fb484647f70
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills