typescript

Enforce strict typing and Zod runtime validation across JARVIS AI codebases.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/ConnectiveTCS/Gradient_Generator --skill typescript-connectivetcs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/ConnectiveTCS/Gradient_Generator/tree/main/.agents/skills/typescript
Command: npx skills add https://github.com/ConnectiveTCS/Gradient_Generator --skill typescript-connectivetcs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Type-safe development patterns reduce runtime errors and enforce contracts across the JARVIS AI codebase, providing reliable type safety from data models to UI components.

Core Features & Use Cases

  • Type-branded primitives and discriminated unions to prevent ID mix-ups and state mistakes.
  • Runtime validation with Zod to ensure external data conforms to schemas in production.
  • Patterns for UI state, generic components, and safe data access across modules.
  • Use Case: Define a type-safe API surface and guard against invalid inputs in API routes and handlers.

Quick Start

Ask me to generate a type-safe data validator for a given API response using 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 and prevent ID mix-ups in my codebase?

Type safety prevents ID mix-ups by using type-branded primitives and discriminated unions to enforce strict contracts across data models and UI components, reducing state mistakes and runtime errors.

How do I validate external API responses at runtime using Zod?

Runtime validation with Zod validates external API responses by ensuring data conforms to defined schemas in production, generating type-safe validators that guard against invalid inputs in API routes and handlers.

What's the best way to manage UI state with discriminated unions?

Managing UI state with discriminated unions prevents state mistakes by applying strict typing patterns across Vue components and modules, ensuring safe data access and consistent state transitions throughout the application.

When do I need branded types for type-safe development?

Branded types are needed for type-safe development when preventing ID mix-ups and enforcing strict contracts across data models, API layers, and UI state management to reduce runtime errors.

Can I use Zod runtime validation with Vue components and API layers?

Zod runtime validation works with Vue components and API layers by applying type-safe patterns across the codebase, ensuring external data conforms to schemas and enforcing robust contracts from data models to UI.

How do I define a type-safe API surface to guard against invalid inputs?

Defining a type-safe API surface guards against invalid inputs by applying strict typing, branded types, discriminated unions, and Zod-based runtime validation across API routes and handlers to enforce robust contracts.