
M13 domain error
Guides an agent in designing domain error types, categories, and retry or fallback
M13 domain error is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 21
- Last commit
- License
- MIT
- Listing updated
Similar skills
About M13 domain error
This skill gives the agent a decision framework for error design in Rust-style domain code. It starts from the question of who will handle an error (end user, developer, or operations) and whether recovery is possible, then sorts errors into user-facing, internal, system, transient, and permanent groups with matching responses.
The guidance covers recovery patterns such as retry with exponential backoff, fallback values, circuit breakers, timeouts, and bulkheads, along with a sample thiserror error enum that marks retryable variants and a retry helper built on tokio-retry. It also lists common mistakes and anti-patterns, such as retrying every error, exposing internal details to users, and using string errors.
The skill is a Markdown reference with no scripts. It points to related skills for error basics, concurrency, and domain modeling, and it expects a Rust project that uses thiserror, anyhow, and tokio.
When your agent uses it
Use when designing domain error handling. Keywords: domain error, error categorization, recovery strategy, retry, fallback, domain error hierarchy, user-facing vs internal errors, error code design, circuit breaker, graceful degradation, resilience, error context, backoff, retry with backoff, error recovery, transient vs permanent error, 领域错误, 错误分类, 恢复策略, 重试, 熔断器, 优雅降级
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (5 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/m13-domain-error to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/m13-domain-error &&
cp -R "$tmp/.claude/skills/m13-domain-error" ~/.claude/skills/m13-domain-error &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/m13-domain-error inside it instead.
Copy the skill folder to ~/.agents/skills/m13-domain-error to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/m13-domain-error &&
cp -R "$tmp/.claude/skills/m13-domain-error" ~/.agents/skills/m13-domain-error &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/m13-domain-error inside it instead.
Copy the skill folder to ~/.cursor/skills/m13-domain-error to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/m13-domain-error &&
cp -R "$tmp/.claude/skills/m13-domain-error" ~/.cursor/skills/m13-domain-error &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/m13-domain-error inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/k1-c/linear-tui.git --path .claude/skills/m13-domain-errorOr copy the folder to ~/.gemini/skills/m13-domain-error yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/m13-domain-error:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/m13-domain-error &&
cp -R "$tmp/.claude/skills/m13-domain-error" ~/.copilot/skills/m13-domain-error &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/m13-domain-error inside it instead.
Get the folder:
git clone --depth 1 https://github.com/k1-c/linear-tui.gitThen copy linear-tui/.claude/skills/m13-domain-error into your agent's skills folder as m13-domain-error. Agents that support SKILL.md read one folder per skill.
What it does
- Error audience categories
- Sorts errors into user-facing, internal, system, transient, and permanent groups, each with a suggested response.
- Recovery pattern reference
- Summarizes retry, fallback, circuit breaker, timeout, and bulkhead patterns and when each applies.
- Rust error hierarchy example
- Shows a thiserror enum separating validation, retryable, and internal errors with an is_retryable check.
- Retry with backoff example
- Provides an async retry helper using exponential backoff with a delay cap and attempt limit.
- Common mistakes checklist
- Lists frequent error-handling mistakes such as infinite retries and leaking internal messages, with better alternatives.
- Trace links to related skills
- Points to neighboring skills for error basics, concurrency, domain modeling, and user-facing APIs.
Good for
- Design an error type hierarchy for a Rust service
- Decide which failures should be retried and how
- Add exponential backoff retry around a flaky API call
- Plan graceful degradation with cached fallback values
- Review error handling for leaked internal details
M13 domain error FAQ
Does M13 domain error run any scripts?
No. The skill is a single SKILL.md file with reference guidance and code examples, and it ships no scripts.
What language does the skill assume?
Its examples are in Rust and reference thiserror, anyhow, tokio, tokio-retry, and failsafe-rs.
When does the skill trigger?
It is meant for tasks about designing domain error handling, and its frontmatter lists keywords such as retry, backoff, circuit breaker, and error categorization.
How do I install M13 domain error in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/m13-domain-error to use it in all your projects, or to .claude/skills/m13-domain-error in one project.
Does M13 domain error run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use M13 domain error?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to M13 domain error?
The closest alternatives to M13 domain error are M06 error handling, Error handling, M09 domain, Go error handling and M03 mutability.
Where this comes from
- Description: from the skill's own SKILL.md.
More from k1-c/linear-tui

Gives the agent a quick reference of Rust-specific naming, error handling and async rules
- Open source
- 21 GitHub stars
- Developer tools

Guides the agent to write Conventional Commits, splitting mixed changes into several
- Open source
- 21 GitHub stars
- Developer tools

Guides an agent through building Rust command-line tools with clap, config layers
- Open source
- 21 GitHub stars
- Developer tools

Guides the agent through Rust ownership, borrow and lifetime compiler errors
- Open source
- 21 GitHub stars
- Developer tools

Guides an agent in choosing Rust smart pointers like Box, Rc, Arc, Weak and RefCell
- Open source
- 21 GitHub stars
- Developer tools

Guides a Rust agent through E0596/E0499/E0502 borrow errors and interior mutability
- Open source
- 21 GitHub stars
- Developer tools



