m13-domain-error

Design domain error frameworks with recovery strategies for backend services.

3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/0xharryriddle/codex-field-kit --skill m13-domain-error-0xharryriddle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: m13-domain-error
Source: https://github.com/0xharryriddle/codex-field-kit/tree/main/archive/upstream/chasebuild-agent-skills/rust/skills/m13-domain-error
Command: npx skills add https://github.com/0xharryriddle/codex-field-kit --skill m13-domain-error-0xharryriddle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Domain error handling planning and design guidance, including error categorization, recovery strategies, and resilience patterns.

Core Features & Use Cases

  • Explicit error type taxonomy: User-facing, Internal, System, Transient, Permanent.
  • Recovery strategies: retry with backoff, fallbacks, circuit breakers, timeouts, and bulkheads.
  • Design guidance: trace-up and trace-down relationships to align with domain constraints and implementation.
  • Use cases: backend services, APIs, microservices requiring structured error handling and observable diagnostics.

Quick Start

Design and document a domain error strategy for your app, outlining error types, recovery options, and logging requirements.

Frequently Asked Questions about m13-domain-error

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a domain error handling framework for backend services?

Design a domain error framework by classifying errors into a taxonomy of User-facing, Internal, System, Transient, and Permanent types, then prescribing targeted recovery strategies like retry with backoff, fallbacks, and circuit breakers for each category.

What is the best way to handle transient errors and implement retry policies in APIs?

Handle transient errors by implementing recovery strategies like retry with backoff, fallbacks, timeouts, and circuit breakers to prevent cascading failures and ensure API resilience during temporary system disruptions.

How does a circuit breaker pattern fit into a comprehensive error categorization strategy?

A circuit breaker fits into error categorization as a recovery strategy for transient and system errors, stopping cascading failures by tripping after repeated failures, while allowing trace-up and trace-down relationships for observable diagnostics.

Can I use this domain error framework for asynchronous workflows and microservices?

Yes, this domain error framework applies to microservices and asynchronous workflows requiring structured error handling, clear user-facing versus internal typing, context propagation, and observable tracing to support debugging.

When should I distinguish between user-facing and internal error types in my application?

Distinguish between user-facing and internal error types across synchronous and asynchronous workflows to ensure clear communication, prescribing appropriate recovery strategies and context propagation for observable diagnostics.

Why does my error handling strategy fail to support debugging and resilience across microservices?

Your strategy may lack observable tracing and context propagation. A robust domain error framework requires explicit error categorization, trace-up and trace-down relationships, and prescribed recovery strategies to support debugging and resilience.