aidd-error-causes

Official

Structured error handling made simple for JavaScript/TypeScript.

Authorparalleldrive
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines error handling in JavaScript/TypeScript by replacing raw errors with structured, named errors, which improves consistency and enable automatic error routing.

Core Features & Use Cases

  • Structured Error Handling: Replace raw new Error() with named, routable errors.
  • Cross-Memory Realm Compatibility: Works across memory realms (unlike instanceof).
  • Consistent Metadata: Provides consistent error metadata (name, code, message, cause).
  • Error Routing: Enables automatic error routing by name.
  • Use Case: Ideal for APIs or applications that require explicit error handling and consistent error information.

Quick Start

Start by importing the necessary functions and throw structured errors using createError.

Dependency Matrix

Required Modules

error-causes

Components

scripts

💻 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: aidd-error-causes
Download link: https://github.com/paralleldrive/aidd/archive/main.zip#aidd-error-causes

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 620,000+ vetted skills library on demand.