typescript

Diagnose TypeScript compiler errors and configure tsconfig.json settings.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/aubrian-halili/ai-experience --skill typescript-aubrian-halili
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/aubrian-halili/ai-experience/tree/main/.claude/skills/typescript
Command: npx skills add https://github.com/aubrian-halili/ai-experience --skill typescript-aubrian-halili

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers understand and resolve complex TypeScript type-related issues, improve code quality, and configure their projects effectively.

Core Features & Use Cases

  • Type Error Diagnosis: Pinpoint the root cause of TypeScript compiler errors.
  • Type Design Guidance: Provide best practices and patterns for robust type definitions.
  • Configuration Assistance: Explain and recommend tsconfig.json settings.
  • Use Case: You encounter a confusing TypeScript error like "Type 'string' is not assignable to type 'number'". This Skill will analyze the error, explain why it's happening, and suggest the correct way to fix it, potentially by adjusting types or using type guards.

Quick Start

Explain the purpose of strictNullChecks in tsconfig.json.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I fix TypeScript compiler errors like "Type 'string' is not assignable to type 'number'"?

TypeScript compiler errors occur when variable types mismatch expectations. This Skill analyzes the error, explains why the type violation happens, and suggests correct fixes using type guards or adjusted type definitions.

What is the best way to configure strict mode and strictNullChecks in tsconfig.json?

Configuring strictNullChecks in tsconfig.json enables explicit null and undefined checks, preventing runtime reference errors. This Skill explains and recommends optimal settings for strictness and module resolution.

How does TypeScript type inference work with generics and conditional types?

TypeScript type inference automatically deduces variable types while generics and conditional types create reusable, logic-based type definitions. This Skill provides expert guidance on mastering these advanced typing patterns.

When should I use type narrowing and advanced type design patterns?

Type narrowing refines variable types within conditional blocks, essential for robust type design. Use these patterns when handling complex union types to ensure type safety and improve overall code quality.

Why does my TypeScript type definition fail to catch undefined values?

TypeScript type definitions fail to catch undefined values when strictNullChecks is disabled in tsconfig.json. Enabling this flag enforces explicit null handling, resolving type safety gaps.