iwasa-kosuiiwasa-kosuiCommunityยท4 Agent Skills Included

functional-ts-principles

Functional TypeScript domain modeling and adversarial code review

Generates robust server-side TypeScript code using discriminated unions, pure state transitions, Result types, and schema-validated boundaries. Reviews pull requests against a severity-tagged checklist covering error handling, PII protection, and domain modeling. Eliminates runtime crashes from unvalidated inputs, thrown exceptions, and leaked personal data in logs.
npx skills add iwasa-kosui/functional-ts-principles --all -g -y

All Skills in This Repository (4)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install functional-ts-principles?โ–ผ

Run `npx skills add iwasa-kosui/functional-ts-principles --all -g -y` in your terminal to install both the code generation and review skills globally.

How to model domain state in TypeScript without classes?โ–ผ

The kamae skill guides your coding agent to represent states as discriminated unions with pure transition functions, making invalid transitions compile-time errors.

How to review TypeScript code for error handling issues?โ–ผ

The kamae-review skill walks a severity-tagged checklist that flags thrown exceptions, missing Result types, unsafe type assertions, and unvalidated boundaries.

Does it work with Zod, Valibot, and neverthrow?โ–ผ

Yes. The skills auto-detect your project's validation library (Zod, Valibot, ArkType) and Result library (neverthrow, byethrow, fp-ts, option-t) from package.json and load matching guidance.

How to prevent PII leaks in TypeScript logs?โ–ผ

The skills apply a Sensitive type wrapper that automatically masks personal data in JSON.stringify, console.log, and template literals at runtime.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’