typescript-strict

Guide TypeScript strict mode usage with tsconfig options and type patterns.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/LimaTechnologies/admin-telegram-bot --skill typescript-strict-limatechnologies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-strict
Source: https://github.com/LimaTechnologies/admin-telegram-bot/tree/main/.claude/skills/typescript-strict
Command: npx skills add https://github.com/LimaTechnologies/admin-telegram-bot --skill typescript-strict-limatechnologies

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams enforce and propagate correct TypeScript strict mode usage across codebases, reducing runtime errors and improving maintainability.

Core Features & Use Cases

  • Strict Null Checks: Ensure safe handling of undefined and null values with robust patterns.
  • Index Access: Promote safe bracket notation and defensive checks for environment and config lookups.
  • Literal Types & Generics: Apply const assertions and precise generic constraints to improve type safety.
  • Type Guards: Provide runtime validation patterns to narrow types safely.
  • Use Case: When refactoring a TS project, apply these patterns to convert broad any-like code into strongly-typed, predictable logic.

Quick Start

Audit a TypeScript file to enforce strict mode rules and return annotated fixes.

Frequently Asked Questions about typescript-strict

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

FAQPage Schema
How do I enable TypeScript strict mode and fix strict null checks in my project?

To enable TypeScript strict mode, configure your tsconfig options and apply strict null checks to ensure safe handling of undefined and null values. This skill provides concrete examples and annotated fixes for robust null safety patterns.

What are type guards and how do they work for runtime type narrowing in TypeScript?

Type guards are runtime validation patterns that safely narrow broad types into predictable logic. This skill delivers actionable guidance on implementing type guards to convert any-like code into strongly-typed, maintainable TypeScript files.

What's the best way to apply literal types and generics for better type safety?

The best way to improve type safety is by applying const assertions and precise generic constraints. This skill guides developers toward correct TypeScript strict mode usage with actionable patterns for literal types and generics.

How do I handle safe index access for environment variables and config lookups in TypeScript?

Safe index access in TypeScript uses bracket notation and defensive checks for environment and config lookups. This skill provides recommended tsconfig options and concrete examples to promote safe index access across your codebase.

Can I refactor an existing codebase to use TypeScript strict mode patterns?

Yes, you can refactor existing TypeScript projects by applying strict mode patterns to convert broad any-like code into strongly-typed logic. This skill audits TypeScript files and returns annotated fixes for direct application.