typescript-development

Review TypeScript code for type safety and runtime validation.

2|1|Updated Jul 25, 2026
One-click install
npx skills add https://github.com/CODE-SAURABH/OpenSkills --skill typescript-development-code-saurabh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-development
Source: https://github.com/CODE-SAURABH/OpenSkills/tree/main/typescript-development
Command: npx skills add https://github.com/CODE-SAURABH/OpenSkills --skill typescript-development-code-saurabh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers build and maintain production TypeScript systems without relying on unchecked runtime data, unsafe type escapes, fragile async behavior, or unverified build artifacts.

Core Features & Use Cases

  • Type-Safe Design: Model domain states precisely with discriminated unions, narrow types, exhaustive handling, and strict compiler settings.
  • Runtime Validation: Securely parse untrusted API payloads, environment variables, files, storage values, queue events, and third-party responses before domain use.
  • Production Delivery: Guide Node.js services, libraries, monorepos, package exports, testing, builds, timeouts, retries, cancellation, shutdown, security, and operational handoffs.
  • Use Case: Apply it when adding a TypeScript API endpoint or shared package to inspect the existing toolchain, define compatible contracts, validate boundaries, implement safely, and verify the real production artifact.

Quick Start

Ask the TypeScript development skill to review the requested change, identify its contracts and runtime boundaries, implement a type-safe solution, and report verification commands, compatibility effects, and remaining risks.

Frequently Asked Questions about typescript-development

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

FAQPage Schema
How do I validate untrusted API payloads in TypeScript at runtime?

Runtime validation secures untrusted API payloads by parsing incoming data against strict schemas before domain use. This prevents unchecked data from entering your TypeScript application, ensuring that only verified values trigger downstream logic and eliminating unsafe type escapes.

What is the best way to model domain states safely in TypeScript?

Modeling domain states safely in TypeScript requires using discriminated unions, narrow types, and exhaustive handling under strict compiler settings. This approach precisely represents valid states, eliminates illegal transitions, and leverages the compiler to enforce complete code coverage for all possible variations.

How do I handle async timeouts, retries, and cancellation in Node.js services?

Handling async timeouts, retries, and cancellation in Node.js services requires bounding asynchronous work with explicit operational limits. This prevents hanging processes and fragile async behavior by enforcing strict execution boundaries, secure shutdowns, and controlled retry mechanisms within your production environment.

Does this approach work for building and publishing shared monorepo packages?

Yes, this approach works for building and publishing shared monorepo packages by guiding package exports, verifying production artifacts, and defining compatible contracts. It ensures your published libraries maintain strict type discipline and explicit compatibility reporting across your toolchain.

Why does my TypeScript build pass but fail with type errors in production?

TypeScript builds often pass but fail in production due to unverified build artifacts and unchecked runtime data bypassing strict compiler settings. You must verify the real production artifact, validate process boundaries, and enforce secure configuration to prevent runtime mismatches.