typescript

Enforce strict TypeScript compiler options and Zod runtime validation.

5|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/sinhong2011/minikyu --skill typescript-sinhong2011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/sinhong2011/minikyu/tree/main/.opencode/skill/typescript
Command: npx skills add https://github.com/sinhong2011/minikyu --skill typescript-sinhong2011

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures type safety and promotes robust development patterns in TypeScript, preventing runtime errors and improving code maintainability across the JARVIS AI Assistant.

Core Features & Use Cases

  • Type Safety Enforcement: Guarantees strict type checking for all code, including complex data structures and API boundaries.
  • Runtime Validation: Integrates Zod for validating external data, ensuring data integrity even after TypeScript types are erased.
  • Secure Coding Practices: Implements branded types, discriminated unions, and type guards for enhanced security and reliability.
  • Use Case: Automatically validate incoming API requests against a defined schema, preventing malformed data from causing application crashes or security vulnerabilities.

Quick Start

Use the typescript skill to define a type-safe interface for user data, including validation with Zod.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I enforce type safety for external API data in TypeScript?

Enforce type safety for external API data by integrating Zod for runtime validation, ensuring data integrity even after TypeScript types are erased at runtime.

What's the best way to prevent runtime errors from type erasure in TypeScript?

Prevent runtime errors from type erasure by combining strict compiler options with Zod runtime validation, ensuring malformed external data is caught before causing application crashes.

How do I use branded types and discriminated unions for secure coding?

Use branded types and discriminated unions to create distinct type categories and enforce secure coding patterns, preventing the misuse of `any` and enhancing overall code reliability.

Does this TypeScript skill require specific dependencies to validate data?

No specific dependencies are required to start, but integrating Zod is recommended to validate incoming API requests against defined schemas and prevent security vulnerabilities.

Why should I avoid using `any` in TypeScript development?

Avoid using `any` to ensure strict type checking across complex data structures and API boundaries, as misuse undermines type safety and introduces potential security vulnerabilities.

Can I validate complex data structures against a defined schema automatically?

Yes, you can automatically validate incoming API requests against a defined schema using Zod, preventing malformed data from causing application crashes and ensuring data integrity.