typescript-core

Enforce TypeScript type correctness and runtime safety with strict tsconfig settings.

Updated May 20, 2026
One-click install
npx skills add https://github.com/Hollowvyn/cognipace-v2 --skill typescript-core-hollowvyn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-core
Source: https://github.com/Hollowvyn/cognipace-v2/tree/main/.agents/skills/core
Command: npx skills add https://github.com/Hollowvyn/cognipace-v2 --skill typescript-core-hollowvyn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It reduces TypeScript-related bugs by teaching advanced type design, strict configuration, and boundary runtime validation so your code stays correct as it grows.

Core Features & Use Cases

  • Advanced type safety patterns (const type parameters, satisfies, template literal types, discriminated unions) to prevent incorrect states and improve inference.
  • Strict tsconfig guidance (e.g., noUncheckedIndexedAccess, exactOptionalPropertyTypes, verbatimModuleSyntax, isolatedModules) to catch mistakes earlier and keep imports/exports correct.
  • Runtime validation workflows using Zod/TypeBox/Valibot patterns so external data is validated before it is trusted.
  • Troubleshooting decision support for common errors and configuration mismatches, with guidance on narrowing, module resolution, and safer alternatives to any.

Quick Start

Ask the TypeScript Core Skill to help you set up a strict tsconfig and design a type-safe API boundary by pairing satisfies with Zod runtime validation for an external request payload.

Frequently Asked Questions about typescript-core

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

FAQPage Schema
How do I set up a strict tsconfig to catch TypeScript errors earlier?

A strict tsconfig prevents TypeScript errors by enabling flags like noUncheckedIndexedAccess, exactOptionalPropertyTypes, verbatimModuleSyntax, and isolatedModules to enforce type correctness and module safety.

What's the best way to validate external API request payloads in TypeScript?

The best way to validate external API payloads in TypeScript is pairing boundary parsing libraries like Zod, TypeBox, or Valibot with the satisfies operator to ensure runtime validation aligns with compile-time types.

How does the satisfies operator improve TypeScript type safety?

The satisfies operator improves TypeScript type safety by verifying an expression matches a type while preserving the narrowest inferred type, preventing incorrect states without losing literal type information for downstream operations.

Can I use discriminated unions and template literal types together for safer routing?

Yes, you can use discriminated unions and template literal types together for safer TypeScript routing by enforcing exhaustive type narrowing and generating literal route paths to prevent invalid API states.

Why does verbatimModuleSyntax require type-only imports in TypeScript?

verbatimModuleSyntax requires type-only imports in TypeScript because it enforces that types are explicitly marked with the import type syntax, preventing runtime import errors and ensuring isolatedModules compatibility.

How do I narrow types error-proof without using any in TypeScript?

You narrow types error-proof without using any in TypeScript by applying discriminated unions, const type parameters, and safer narrowing strategies to achieve precise type narrowing and eliminate unsafe type assertions.