typescript-pro

Enforce strict TypeScript typing and architecture across large codebases.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/lgili/skillex --skill typescript-pro-lgili
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-pro
Source: https://github.com/lgili/skillex/tree/main/skills/typescript-pro
Command: npx skills add https://github.com/lgili/skillex --skill typescript-pro-lgili

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Senior TypeScript engineering specialist for designing, implementing, reviewing, and refactoring type-safe, production-grade TypeScript code with strict mode, modern tooling, and Node.js or browser runtimes. Use when working with .ts/.tsx files, tsconfig.json, package.json, vitest/jest suites, async services, library design, or performance-sensitive code. Trigger for asks like "typescript pro", "strict typescript", "fix type errors", "design types for this", "refactor to typescript", "improve type safety", "type this correctly", "add generics", or any task involving TypeScript architecture, strict mode violations, or quality.

Core Features & Use Cases

  • Enforce strict typing and architecture
  • Provide type-first design patterns and utilities for TS projects
  • Improve code quality with static checks and tooling guidance

Quick Start

Configure a strict TypeScript setup for my project and generate starter types, tests, and tooling guidelines.

Frequently Asked Questions about typescript-pro

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

FAQPage Schema
How do I enforce strict TypeScript type safety across a large codebase?

Type-safe TypeScript patterns help you design types first, enforce strict mode in tsconfig.json, and apply discriminated unions alongside unknown data handling to prevent runtime errors and resolve type errors.

What is the best way to refactor JavaScript to strict TypeScript?

The best way to refactor to strict TypeScript uses type-first design patterns, enabling strict mode in tsconfig.json, and adding static checks to gradually migrate .ts/.tsx files while resolving type errors.

How do I configure a strict TypeScript project with modern tooling?

Configure a strict TypeScript setup by enabling strict mode in tsconfig.json, integrating vitest or jest test suites, and establishing type-safe architectures for Node.js or browser runtimes using modern module systems.

Does this TypeScript architecture guidance work with vitest and jest testing suites?

Yes, this TypeScript architecture guidance applies to codebases using vitest or jest testing suites, directing type design, testing decisions, and type-safe patterns for async services and modern module systems.

Why should I use discriminated unions for unknown data handling in TypeScript?

Use discriminated unions for unknown data handling in TypeScript to strictly narrow types, safely validate external inputs, and eliminate runtime errors when processing untrusted API responses.

Can I use TypeScript strict mode for library design and performance-sensitive code?

Yes, TypeScript strict mode supports library design and performance-sensitive code by applying advanced generics, type-first design patterns, and static checks to produce well-typed, production-grade outputs.