type

Audit TypeScript projects and enforce strict type safety with Zod schemas.

26|8|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/arbazkhan971/godmode --skill type-arbazkhan971
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: type
Source: https://github.com/arbazkhan971/godmode/tree/main/skills/type
Command: npx skills add https://github.com/arbazkhan971/godmode --skill type-arbazkhan971

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Type safety and API boundary validation are often neglected, leading to brittle code, runtime errors, and hard-to-maintain systems. This skill provides a structured approach to enforce strict TypeScript types and runtime validation across your codebase.

Core Features & Use Cases

  • Enforces strict TypeScript configuration and eliminates common sources of unsound typing.
  • Introduces runtime validation using Zod schemas that derive types, ensuring data correctness at boundaries.
  • Supports a schema-first workflow with discriminated unions to model state machines and guard against invalid states.
  • Use cases include API layer input validation, data model integrity, and safe boundary-crossing between services.

Quick Start

Audit a TypeScript project and implement Zod-based schemas to enforce boundaries.

Frequently Asked Questions about type

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

FAQPage Schema
How do I enforce runtime validation and TypeScript type safety at API boundaries?

To enforce runtime validation and TypeScript type safety, use a schema-first approach with Zod to derive types and validate inputs at API boundaries. This ensures end-to-end data correctness across services and data models.

What is a schema-first approach in TypeScript for eliminating unsound typing?

A schema-first approach in TypeScript defines Zod validation schemas first, then derives TS types from them. This eliminates unsound typing by guaranteeing runtime data matches static types across boundaries and services.

How do I model state machines with discriminated unions to guard against invalid states?

Model state machines with discriminated unions by defining Zod schemas with a shared discriminator field. This guards against invalid states by ensuring only type-safe, valid transitions are representable in TypeScript code.

Do I need to enable strict mode in TypeScript to use Zod schemas for type inference?

Yes, you need to enable strict mode in TypeScript to use Zod schemas for type inference effectively. Strict mode configuration is required to eliminate common unsound typing sources and enforce boundary checks.

What's the best way to audit a TypeScript project for type safety and API boundary validation?

The best way to audit a TypeScript project for type safety is to enforce strict configuration and implement Zod-based schemas. This validates API boundary inputs and derives types to ensure data model integrity.