error-handling-ts

Define typed errors with remediation actions for TypeScript applications.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/jralph/.config-opencode --skill error-handling-ts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-ts
Source: https://github.com/jralph/.config-opencode/tree/main/skills/error-handling-ts
Command: npx skills add https://github.com/jralph/.config-opencode --skill error-handling-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides structured error handling patterns for TypeScript/JavaScript applications, enabling consistent remediation workflows and observable failures.

Core Features & Use Cases

  • Typed errors with remediation actions: Define error types with executable remediation paths.
  • Centralized remediation flow: Encapsulate recovery logic in a reusable pattern.
  • Dual-channel logging: Separate AI and human-visible logs to improve observability.
  • Testable guarantees: Includes property-based tests examples to validate error behavior.

Quick Start

Create a TypeScript project, install the error-handling-core package, implement the Error156 class and its remediation() method, and run the test suite to verify behavior.

Frequently Asked Questions about error-handling-ts

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

FAQPage Schema
How do I implement structured error handling in TypeScript applications?

Structured error handling in TypeScript uses reusable error types with executable remediation paths. You define a core error class, encapsulate recovery logic centrally, and validate behavior using property-based tests to ensure deterministic remediation.

What is the best way to handle API client failures with remediation workflows in JavaScript?

Handling API client failures with remediation workflows in JavaScript involves creating typed errors with executable remediation actions. This approach encapsulates recovery logic into reusable patterns, ensuring clear observability and deterministic failure resolution at service boundaries.

How do I test TypeScript error handling behavior using property-based testing?

Testing TypeScript error handling behavior using property-based testing involves running test suites that validate error types against generated inputs. This strategy checks executable remediation paths to guarantee deterministic recovery actions and observable failures under varied conditions.

Can I separate AI logs from human-visible logs for JavaScript error observability?

You can separate AI logs from human-visible logs for JavaScript error observability by applying dual-channel logging patterns. This structured error handling technique routes machine-readable and human-readable outputs independently to improve failure diagnostics.

Does structured error handling work for authentication flows in TypeScript?

Structured error handling works for authentication flows in TypeScript by applying typed errors with remediation actions at service boundaries. This ensures deterministic recovery workflows and clear observability for failed authentication attempts.

When should I use centralized remediation flows instead of try-catch blocks in JavaScript?

Centralized remediation flows in JavaScript should be used when failures require deterministic recovery actions and clear observability. Unlike standard try-catch blocks, this structured approach encapsulates reusable error types and executable remediation paths.