typescript:functional-patterns
CommunityType-safe TypeScript patterns for reliability.
Software Engineering#typescript#discriminated-unions#branded-types#adt#domain-models#state-machines#option-result
Authormartinffx
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Model and enforce safe, reliable domain logic in TypeScript using ADTs, Option/Result, and branded types.
Core Features & Use Cases
- Discriminated unions and Algebraic Data Types for exhaustive state modeling
- Option and Result types for explicit error handling and nullable values
- Branded types for domain invariants (IDs, units, and validated values)
- Practical guidance for pattern usage in real-world scenarios such as state machines, configuration parsing, and safe migrations
Quick Start
Create a small TypeScript example showing a discriminated union and an exhaustive switch to model a simple traffic-light state.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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:functional-patterns Download link: https://github.com/martinffx/atelier/archive/main.zip#typescript-functional-patterns 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 223,000+ vetted skills library on demand.