# typescript-magician

> Eliminate any, build generic utilities, and narrow unknown API payloads

- **Publisher**: Matteo Collina (Verified Publisher)
- **Upstream GitHub Repository**: https://github.com/mcollina/skills/tree/main/skills/typescript-magician
- **skills.sh Listing**: https://skills.sh/mcollina/skills/typescript-magician
- **License**: MIT
- **GitHub Stars**: 1,979
- **Canonical Web Page**: https://builderthread.dev/skill/mcollina/skills/typescript-magician
- **Parent Topic**: [typescript](https://builderthread.dev/skill/for/typescript.md)
- **Last Audited**: 2026-11-21
- **Supported Coding Agents**: Claude Code, Cursor, Codex, Windsurf

## Overview
MIT-licensed TypeScript skill from Node.js TSC member Matteo Collina focused on generic constraints, type guards, utility types, and strict runtime-to-type narrowing.

Inspect the full upstream `SKILL.md` source and license on GitHub before installing: https://github.com/mcollina/skills/tree/main/skills/typescript-magician

## Install Command
```bash
npx skills add mcollina/skills --skill typescript-magician
```

## When to Use This Skill
- Replacing unsafe any types and type casts in TypeScript APIs and SDKs
- Writing generic helper utilities and discriminated response narrowers
- Solving complex TypeScript compiler inference errors cleanly

## Focus Areas
- Eliminating any with generics
- Narrowing unknown responses
- Custom type guards
- Reusable utility types

## Upstream Package Files
- `skills/typescript-magician/SKILL.md`

---

## Ship With a Private Starter Repo, Living PRD & MCP Tasks

Builderthread pairs verified stack skills with a cited market brief, living PRD, private GitHub starter repo, and ordered MCP tasks for Claude Code, Cursor, and Codex.

- Supported languages: Rust, TypeScript, React Native (Expo), Python
- Starter stacks: Next.js SaaS, Hono API, FastAPI AI, Expo mobile, Tauri Rust desktop, WXT Chrome extension
- Start now: https://builderthread.dev/auth/signup
