functional-ts-review

Analyze server-side TypeScript code for functional-ts domain modeling conformity.

51|2|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/iwasa-kosui/functional-ts-principles --skill functional-ts-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: functional-ts-review
Source: https://github.com/iwasa-kosui/functional-ts-principles/tree/main/skills/functional-ts-review
Command: npx skills add https://github.com/iwasa-kosui/functional-ts-principles --skill functional-ts-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Review server-side TypeScript code against the functional domain modeling principles defined in the functional-ts skill. This review ensures conformity to discriminated unions, companion objects, branded types, immutability, proper file structure, pure state transitions, and boundary defense.

Core Features & Use Cases

  • Checks code for adherence to functional-ts principles during review.
  • Detects anti-patterns such as class usage, type assertions, thrown errors, and unprotected PII; provides actionable fixes.
  • Integrates into code review workflows to maintain consistent safety guarantees and design integrity.

Quick Start

Run a code review pass on your repository to surface functional-ts compliance issues.

Frequently Asked Questions about functional-ts-review

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

FAQPage Schema
How do I review TypeScript code for functional domain modeling compliance?

Railway-style error handling in TypeScript replaces thrown errors with pure state transitions using discriminated unions. Review checks ensure your code avoids unprotected thrown exceptions and uses exhaustive switch checks to safely route operations across success and failure paths.

What anti-patterns should I look for in functional TypeScript code reviews?

Functional TypeScript code reviews should detect class usage, type assertions, thrown errors, and unprotected PII as anti-patterns. The review process provides actionable fixes to enforce boundary defense with schema validation and maintain consistent safety guarantees.

How do I enforce immutability and boundary defense in server-side TypeScript?

Enforce immutability and boundary defense in server-side TypeScript by validating schemas at system boundaries and avoiding type assertions. Code review passes surface compliance issues, ensuring exact file structure and pure functional domain modeling principles are maintained.

Does this functional TypeScript review check for exhaustive switch checks and companion objects?

Yes, this functional TypeScript review specifically targets exhaustive switch checks and companion objects. It analyzes your codebase to ensure conformity with these structural patterns, providing actionable guidance to fix non-compliant domain modeling implementations.

When should I use type assertions in TypeScript, and when are they an anti-pattern?

Type assertions are considered an anti-pattern in functional TypeScript domain modeling and should be avoided in favor of schema validation for boundary defense. Code reviews detect type assertions and provide actionable fixes to ensure type safety without bypassing the compiler.