orion-error-engineering
OfficialBuild correct structured errors with orion-error
System Documentation
What problem does it solve?
This Skill helps you migrate to and apply the orion-error Rust crate correctly so your services produce consistent, structured, and interoperable error boundaries instead of stale or legacy error-handling patterns.
Core Features & Use Cases
- Domain reason modeling and governance: choose stable identities for business variants and keep shared infrastructure categories transparent over UnifiedReason.
- Correct API selection for conversions and sources: decide between to_err(), source_err(), source_raw_err(), with_source(), conv_err(), and interop APIs based on the upstream error type and boundary semantics.
- Diagnostics-to-protocol workflow: use report(), exposure(), and JSON/protocol rendering paths to produce correct machine and human-facing error representations while keeping payloads out of reason values.
- Migration guidance and review heuristics: detect and replace removed/legacy APIs (owe_*, err_wrap, with, etc.) and update old 0.6/0.7-era examples to current 0.8.x practices.
Quick Start
Use this skill to review an existing Rust codebase that uses legacy orion-error error APIs and update it to structured 0.8.x patterns: migrate a failing service that still calls owe_* and map_err wrappers into source_err()/source_raw_err() with correct identities and protocol rendering.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: orion-error-engineering Download link: https://github.com/galaxio-labs/orion-skills/archive/main.zip#orion-error-engineering Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.