typescript-magician

Diagnose and resolve deep TypeScript typing issues with type-safe fixes.

2|Updated Oct 28, 2022
One-click install
npx skills add https://github.com/jmanuelrosa/dotfiles --skill typescript-magician-jmanuelrosa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-magician
Source: https://github.com/jmanuelrosa/dotfiles/tree/main/roles/ai/files/claude/skills/typescript
Command: npx skills add https://github.com/jmanuelrosa/dotfiles --skill typescript-magician-jmanuelrosa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designs robust, type-safe TypeScript types and generics to fix common typing issues, improving code reliability and IntelliSense.

Core Features & Use Cases

  • Advanced generics and type inference strategies for complex APIs.
  • Replacing implicit any with precise types and creating type guards.
  • Practical patterns for mapped types, conditional types, and template literals.
  • Comprehensive explanations with before/after type representations and tests.

Quick Start

Provide a minimal TypeScript example and I will generate precise type-safe solutions and explanations.

Frequently Asked Questions about typescript-magician

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

FAQPage Schema
How do I fix deep TypeScript typing issues with advanced generics and type inference?

To fix deep TypeScript typing issues, you provide a minimal code example to generate precise type-safe solutions, replacing implicit any types with advanced generics, strict type inference, and custom type guards.

What is the best way to replace implicit any with precise types in a TypeScript codebase?

The best way to replace implicit any is by applying type-safe patterns using mapped types, conditional types, and type guards to enforce strict typings across libraries and APIs while improving code reliability and IntelliSense.

How do I create type guards for complex TypeScript APIs?

You create type guards for complex APIs by diagnosing the specific typing issues and applying type-safe patterns that test examples with concrete type representations, ensuring robust type inference and strict API validation.

When do I need to use mapped types and conditional types in TypeScript?

You need to use mapped types and conditional types when designing robust, type-safe generics for complex APIs to resolve deep typing issues and replace implicit any with precise, practical type-safe patterns.

Do I need to provide a full codebase to diagnose and resolve strict TypeScript typings?

No, you do not need a full codebase; providing a minimal TypeScript example is sufficient to generate concrete type-safe fixes, comprehensive explanations, and before/after type representations for your strict typings.