
M13 Domain Error
Layered error-handling guide that sorts errors by audience and recovery path, with Rust examples.
- skills.sh installs
- 3.6K
- GitHub stars
- 1.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers error categorization for end users, developers, ops, and automation, plus transient versus permanent recovery patterns
- Includes a
thiserrorerror hierarchy with ais_retryable()check and an exponential-backoff retry helper built ontokio-retry - Lists recovery patterns for retry, fallback, circuit breaker, timeout, and bulkhead, along with common mistakes and anti-patterns
- Designed for Rust developers designing error types and resilience behavior, with trace links to related skills
Install
$ npx -y skills add actionbook/rust-skills --skill m13-domain-error -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Domain Error Strategy
Layer 2: Design Choices
Core Question
Who needs to handle this error, and how should they recover?
Before designing error types:
- Is this user-facing or internal?
- Is recovery possible?
- What context is needed for debugging?
Error Categorization
| Error Type | Audience | Recovery | Example |
|---|---|---|---|
| User-facing | End users | Guide action | InvalidEmail, NotFound |
| Internal | Developers | Debug info | DatabaseError, ParseError |
| System | Ops/SRE | Monitor/alert | ConnectionTimeout, RateLimited |
| Transient | Automation | Retry | NetworkError, ServiceUnavailable |
| Permanent | Human | Investigate | ConfigInvalid, DataCorrupted |
Thinking Prompt
Before designing error types:
-
Who sees this error?
- End user → friendly message, actionable
- Developer → detailed, debuggable
- Ops → structured, alertable
-
Can we recover?
- Transient → retry with backoff
- Degradable → fallback value
- Permanent → fail fast, alert
Details
- Repository
- github.com/actionbook/rust-skills
- Categories
- Rust, Backend & APIs
- First seen
- May 16, 2026
More from actionbook/rust-skills
All 38- M11 Ecosystem3.6K
- Unsafe Checker3.6K
- Rust Code Navigator3.6K
- Rust Trait Explorer3.5K
- Rust Call Graph3.5K
- Rust Symbol Analyzer3.5K
- Domain Web3.5K
- Domain Cli3.5K
- Rust Learner3.4K
- Rust Skill Creator3.4K
- Rust Deps Visualizer3.3K
- Meta Cognition Parallel3.3K
- Rust Daily3.3K
- Domain Embedded3.2K
- Domain Cloud Native3.2K
- Domain Fintech3.1K
- Domain Ml3.1K
- Domain Iot3K
- Rust Router3K
- Core Agent Browser2.3K
- Core Dynamic Skills2.1K
- Core Actionbook2.1K
- Core Fix Skill Docs2.1K
- M15 Anti Pattern9.4K
Similar to M13 Domain Error
More Rust
m06-error-handlingactionbook/rust-skills3.8K installsDecision guide for Rust error handling: choosing Result, Option, panic, thiserror, or anyhow.
error-handling-patternssickn33/agentic-awesome-skills367 installsGeneric guidance skill for error-handling design that points to a separate playbook for detailed patterns.
error-handlingaffaan-m/ecc6.3K installsPatterns for typed errors, retries, circuit breakers, and user-facing failure messages across TypeScript, Python, and Go.
api-error-handlingaj-geddes/useful-ai-prompts514 installsStandardized API error handling covering response formats, logging, retries, circuit breakers, and validation.
error-handling-uxowl-listener/designer-skills2.5K installsCross-flow error prevention, detection, and recovery covering message content, placement, and escape routes.
python-error-handlingwshobson/agents15K installsThis covers the error handling patterns you actually need in production Python code. It shows you how to validate inputs early with clear error messages, use Py