functional-ts-ja
CommunityFunctional TS domain modeling for server apps.
Software Engineering#typescript#validation#discriminated-unions#domain-modeling#pure-functions#railway-oriented-programming#PII-protection
Authoriwasa-kosui
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a principled blueprint for modeling server-side TypeScript domains using functional patterns, avoiding class-based OOP and ensuring safer, maintainable code through discriminated unions, pure state transitions, Result-based error handling, and runtime boundary validation.
Core Features & Use Cases
- Domain modeling with Discriminated Unions as the primary state representation.
- Pure functions for state transitions and companion objects to group domain logic.
- Railway-oriented error handling with Result types and discriminated error unions.
- Runtime boundary validation using Zod/Valibot/ArkType and avoidance of type assertions.
- Sensitive<T> for PII protection and safe logging.
- Real-world use cases include modeling taxi requests, domain events, and repository interactions.
Quick Start
Define a minimal taxi-request domain using discriminated unions and a companion object to demonstrate a valid transition from Waiting to EnRoute.
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: functional-ts-ja Download link: https://github.com/iwasa-kosui/functional-ts-principles/archive/main.zip#functional-ts-ja 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.