design_patterns-typed_error_sentinels

Official

Isolate package errors with typed sentinels.

Authoramarbel-llc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Errors across packages can collide or be misinterpreted; typed error sentinels provide per-package phantom types to isolate and categorize errors at compile time.

Core Features & Use Cases

  • Define per-package disambiguation types to classify errors at compile time.
  • Create and export sentinels with MakeTypedSentinel or NewWithType, and check origin with IsTyped.
  • Wrap and propagate typed errors with WrapWithType while preserving type information; reuse built-in sentinels like ErrNotFound as needed.

Quick Start

Declare a per-package disambiguation type, create typed sentinels with NewWithType or MakeTypedSentinel, and export a package checker with IsTyped.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: design_patterns-typed_error_sentinels
Download link: https://github.com/amarbel-llc/dodder/archive/main.zip#design-patterns-typed-error-sentinels

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.