typescript-strict

Enforces TypeScript strict typing patterns and Zod schema validation.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Devattom/.claude --skill typescript-strict-devattom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-strict
Source: https://github.com/Devattom/.claude/tree/main/skills/typescript-strict
Command: npx skills add https://github.com/Devattom/.claude --skill typescript-strict-devattom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write more robust and maintainable TypeScript code by enforcing strict typing rules and providing patterns to avoid common pitfalls like any types and improper type assertions.

Core Features & Use Cases

  • Avoids any and as any: Guides users to use specific types or unknown with proper type guards.
  • Proper unknown Usage: Demonstrates safe handling of data from external sources.
  • Runtime Validation: Integrates Zod for schema validation of external data.
  • Strict tsconfig: Provides recommended strict compiler options.
  • Use Case: When encountering type errors or discussing type safety in a TypeScript project, this skill offers immediate solutions and best practices.

Quick Start

Apply TypeScript strict typing best practices to the provided code snippet.

Frequently Asked Questions about typescript-strict

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

FAQPage Schema
How do I enforce TypeScript strict typing to avoid `any` and type assertion errors?

Enforce TypeScript strict typing by replacing `any` and `as any` with specific types or `unknown` alongside proper type guards. This enforces safe data handling patterns and prevents common type-related runtime errors.

What is the best way to handle `unknown` types when processing external data in TypeScript?

Handle `unknown` types in TypeScript by applying proper type guards before execution. This ensures safe handling of data from external sources and prevents unvalidated property access.

How do I integrate Zod schema validation for TypeScript runtime type safety?

Integrate Zod schema validation to verify external data structures at runtime. This combines TypeScript static type checking with Zod schemas to ensure robust data integrity before processing.

Which strict compiler options should I configure in `tsconfig.json` for maximum type safety?

Configure strict compiler options in `tsconfig.json` to enable maximum type safety. This optimizes the TypeScript compiler to enforce strict typing patterns and catch type-related errors during builds.

Does this TypeScript strict typing approach work with existing legacy code that uses `any` extensively?

This strict typing approach guides developers to refactor existing `any` types into specific types or `unknown` with proper type guards. It provides patterns to incrementally improve legacy code maintainability.