TypeScript Strict Mode

Enforce strict TypeScript typing with explicit types and null safety.

50|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jhl-labs/sepilot_desktop --skill typescript-strict-mode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: TypeScript Strict Mode
Source: https://github.com/jhl-labs/sepilot_desktop/tree/main/.claude/skills/typescript-strict
Command: npx skills add https://github.com/jhl-labs/sepilot_desktop --skill typescript-strict-mode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript codebases often suffer from implicit any, incomplete type coverage, and risky null handling. This Skill provides a disciplined set of guidelines to ensure all code is explicitly typed, safer, and easier to maintain.

Core Features & Use Cases

  • Enforces explicit return types on all functions and explicit types on all variables and parameters.
  • Promotes safety through no-any policy, strict null checks, and robust type guards.
  • Use Case: during refactoring, ensures type correctness across modules and reduces runtime errors.

Quick Start

Enable TypeScript strict mode in tsconfig and begin annotating all new and existing code with explicit types.

Frequently Asked Questions about TypeScript Strict Mode

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

FAQPage Schema
How do I enforce strict TypeScript typing across my codebase?

To enforce strict TypeScript typing, enable strict mode in your tsconfig and annotate all functions and variables with explicit types. This removes implicit any and requires explicit declarations to ensure null safety.

What is the best way to remove implicit any during TypeScript refactoring?

The best way to remove implicit any during refactoring is to apply a no-any policy that enforces explicit return types on functions and explicit types on all variables and parameters to ensure type correctness across modules.

How do I handle null safety and type guards in TypeScript?

To handle null safety in TypeScript, enforce strict null checks and apply robust type guards. You should also use union types over optional properties and include validated runtime checks as part of your project standards.

Does TypeScript strict mode require explicit types for all variables and parameters?

Yes, TypeScript strict mode requires explicit types for all variables and parameters. It enforces explicit return types on all functions and promotes a no-any policy to guarantee safer, easier to maintain code.

When should I use union types instead of optional properties in TypeScript?

You should use union types instead of optional properties in TypeScript when enforcing strict typing standards. This approach complements strict null checks and robust type guards to reduce runtime errors.