ts-patterns

Community

Idiomatic TypeScript patterns for safer code.

Authoryandy-r
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Writing safe, maintainable TypeScript code can be error-prone without clear idioms. This Skill provides a curated set of patterns and ergonomics to enforce strong types, predictable APIs, and cross-runtime compatibility.

Core Features & Use Cases

  • Strict by default TypeScript design and inference-first APIs to minimize annotation burden.
  • Patterns like discriminated unions, branded types, and satisfies to preserve literals and ensure exhaustiveness.
  • Guidance for ESM/CJS dual publishing with exports maps for dual publishing.

Quick Start

Enable strict TypeScript in your tsconfig and begin applying these idioms across your codebase.

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: ts-patterns
Download link: https://github.com/yandy-r/claude-plugins/archive/main.zip#ts-patterns

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.