typescript-strict

Enforce TypeScript strict mode patterns and advanced type techniques.

6|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/SPeeDoA1/everything-opencode --skill typescript-strict-speedoa1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-strict
Source: https://github.com/SPeeDoA1/everything-opencode/tree/main/.opencode/skills/stacks/typescript-strict
Command: npx skills add https://github.com/SPeeDoA1/everything-opencode --skill typescript-strict-speedoa1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams enforce rigorous TypeScript strict mode patterns and advanced type techniques to reduce bugs and improve maintainability.

Core Features & Use Cases

  • Strict configuration guidance for tsconfig to enable comprehensive type safety.
  • Advanced type techniques: type guards, discriminated unions, mapped types, and branded types.
  • Practical patterns for robust APIs and libraries with precise inference.
  • Use Case: refactor a codebase towards strict mode while preserving runtime behavior.

Quick Start

Create or update a tsconfig.json with strict: true and enable recommended strict options. Then apply patterns like type guards, discriminated unions, and branded types across your codebase.

Frequently Asked Questions about typescript-strict

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

FAQPage Schema
How do I refactor a codebase to TypeScript strict mode without changing runtime behavior?

Refactoring to TypeScript strict mode involves enabling strict options in tsconfig.json and applying type guards, discriminated unions, and mapped types to improve type inference and safety while preserving existing runtime execution.

When do I need branded types and discriminated unions in TypeScript?

Branded types and discriminated unions are needed when you require precise type narrowing and want to prevent invalid state representations in complex TypeScript applications, ensuring robust API surfaces and improved maintainability.

What's the best way to enforce strict type safety in a TypeScript library?

The best way to enforce strict type safety in a TypeScript library is by enabling strict mode in tsconfig.json and utilizing built-in and custom types, mapped types, and type guards for precise inference across API surfaces.

Does TypeScript strict mode work with mapped types and generics?

Yes, TypeScript strict mode works seamlessly with mapped types and generics, enhancing type inference and safety. These utilities are explicitly showcased to satisfy strict configuration guidelines and improve maintainability.

Why does enabling TypeScript strict mode cause type inference errors?

Enabling TypeScript strict mode causes type inference errors because it activates comprehensive type safety checks, exposing previously hidden type vulnerabilities that require type narrowing, discriminated unions, or explicit type annotations to resolve.

Can I use TypeScript strict patterns for complex applications and APIs?

Yes, TypeScript strict patterns are applied across API surfaces, libraries, and applications to improve type inference, narrowing, and safety in complex codebases, ensuring robust and maintainable software engineering practices.