typescript-magician

Identify root causes of TypeScript type errors and propose generic-based fixes.

1|Updated Mar 14, 2025
One-click install
npx skills add https://github.com/JYbill/bullboard-nestjs --skill typescript-magician-jybill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-magician
Source: https://github.com/JYbill/bullboard-nestjs/tree/main/.claude/skills/typescript-magician
Command: npx skills add https://github.com/JYbill/bullboard-nestjs --skill typescript-magician-jybill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers design and reason about complex TypeScript types, replacing imprecise any-based approaches with precise generic utilities and type guards to reduce compiler noise and runtime errors.

Core Features & Use Cases

  • Practical guidance on advanced generics, inference, and type-safety improvements.
  • Step-by-step solutions for complex typing challenges in real codebases.
  • Examples showing how to convert loose code into strongly-typed APIs and utilities like Partial, Readonly, and ReturnType.

Quick Start

Describe a TypeScript typing issue you want to resolve.

Frequently Asked Questions about typescript-magician

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

FAQPage Schema
How do I fix complex TypeScript type inference errors with generics?

Resolve TypeScript type inference errors by identifying root causes in your code and proposing precise generic-based fixes. This approach applies solutions across complex generics and inference issues to ensure strict compilation without implicit any.

What is the best way to eliminate implicit any in API function signatures?

Eliminate implicit any in API function signatures by replacing loose typings with precise generic utilities and type guards. This ensures TypeScript compiles with strict typing across function signatures and return types.

How do I use mapped and conditional types to create type-safe utilities?

Use mapped and conditional types to design complex type-safe utilities by replacing loose code with precise generics. This reduces compiler noise and runtime errors across real-world codebases.

Why does my TypeScript code fail to compile with strict typing in real-world codebases?

TypeScript fails strict compilation due to imprecise type definitions and unresolved type inference issues. Identify the root cause and apply precise generic-based fixes to ensure the codebase compiles without implicit any.

Can I replace loose code with strongly-typed APIs using ReturnType and Partial?

Replace loose code with strongly-typed APIs by applying utility types like Partial, Readonly, and ReturnType. This provides step-by-step solutions for complex typing challenges in real codebases.

Does typescript-magician work for advanced generics and type guards?

Typescript-magician works for advanced generics and type guards by identifying root causes of type errors and proposing precise fixes. It applies solutions across complex generics and utility types in real-world codebases.