typescript-core

Apply advanced TypeScript patterns and runtime validation with Zod, TypeBox, or Valibot.

68|19|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill typescript-core-bobmatnyc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-core
Source: https://github.com/bobmatnyc/claude-mpm-skills/tree/main/toolchains/typescript/core
Command: npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill typescript-core-bobmatnyc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers write more robust, type-safe, and maintainable TypeScript code by leveraging advanced language features and best practices.

Core Features & Use Cases

  • Advanced Type Patterns: Utilize const type parameters, satisfies operator, and template literal types for precise type definitions.
  • Runtime Validation: Integrate Zod, TypeBox, or Valibot for validating external data at runtime.
  • Configuration Best Practices: Optimize tsconfig.json for modern projects and monorepos.
  • Use Case: Ensure API request/response payloads strictly adhere to defined types, preventing runtime errors and improving developer confidence.

Quick Start

Apply the recommended tsconfig.json baseline for a new TypeScript project.

Frequently Asked Questions about typescript-core

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

FAQPage Schema
What is the best way to choose between Zod, TypeBox, and Valibot for TypeScript runtime validation?

Choosing a TypeScript runtime validation library depends on your performance and bundle size needs. This Skill provides decision trees comparing Zod, TypeBox, and Valibot to help you select the right type safety validator for your project.

How do I use the TypeScript satisfies operator and const type parameters for strict type safety?

The TypeScript satisfies operator and const type parameters enable precise type definitions without widening. This Skill demonstrates advanced type patterns to ensure your objects strictly match interfaces while retaining literal types.

When should I use type versus interface in TypeScript?

Use TypeScript type aliases for unions and primitives, and interfaces for extensible object shapes. This Skill includes decision trees for choosing between type and interface to optimize your type system configuration.

How do I optimize tsconfig.json for a TypeScript monorepo build performance?

Optimize your tsconfig.json by configuring project references and strict compilation options. This Skill offers configuration best practices to improve TypeScript build performance and maintainability in monorepos.

Why does my TypeScript generic constraint cause a type inference error?

TypeScript generic constraint errors often occur when type parameters are too wide. This Skill covers troubleshooting common type inference errors and provides patterns to resolve them using advanced generics.

Can I validate API request payloads with TypeScript without manual type definitions?

You can validate API payloads by integrating Zod or Valibot to infer TypeScript types directly from validation schemas. This Skill shows how to ensure runtime data matches your defined types automatically.