typescript-error-handling
CommunityRobust TypeScript error handling patterns.
AuthorJylhis
Version1.0.0
Installs0
System Documentation
What problem does it solve?
TypeScript does not reliably type exceptions, leading to untracked failures and inconsistent error propagation. This Skill provides structured patterns for error handling, including subclassing, hierarchies, and Result types, to improve reliability and debuggability.
Core Features & Use Cases
- Error subclassing with consistent names and contextual data.
- Hierarchical error types for API boundaries and user-facing messages.
- Result-based error handling for library code and composable flows.
- Safe catch clauses, error.cause chaining, and robust async error flow.
- Zod validation error handling and integration with validation schemas.
- Practical guidance for real-world apps, CLI tools, and API clients.
Quick Start
Ask the AI to apply TypeScript error handling patterns to a sample module.
Dependency Matrix
Required Modules
None requiredComponents
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: typescript-error-handling Download link: https://github.com/Jylhis/skills/archive/main.zip#typescript-error-handling Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.