
typescript-magician
Designs complex generic types, refactors `any` types to strict alternatives
by mcollinaFree
Description
typescript-magician is an agent skill from Matteo Collina's skills collection, listed on skills.sh. It helps an AI agent with hard TypeScript typing work: designing complex generic types, replacing any with strict alternatives, creating type guards and utility types, and resolving compiler errors. When invoked, the agent runs tsc --noEmit to capture the full error output before changing anything, identifies the root cause, such as unsound inference or a missing constraint, and writes a precise, type-safe fix. It is told to eliminate any types with proper typing and to check each replacement still satisfies its call sites, then to run tsc --noEmit again to confirm the fix compiles. The skill suits codebases that want to remove any, need stricter generics, or have type inference problems that a general assistant struggles with. A skill is a SKILL.md file of instructions that an AI agent loads only when a task calls for it. It is free and open source on GitHub.…
Highlights
- Replaces any with strict types
- Complex generics and utility types
- Type guards for runtime checks
- Verifies with tsc --noEmit before and after
Ratings & Reviews
No ratings yet
Be the first to rate typescript-magician.
People also visit
typescript-magician FAQ
What does the typescript-magician skill do?
It helps an AI agent design generic types, remove any types, write type guards and utility types, and fix TypeScript compiler errors.
How do I install it?
Run: npx skills add https://github.com/mcollina/skills --skill typescript-magician.
Is it free?
Yes. The skill is free and open source.
How does it check its work?
It runs tsc --noEmit to capture the errors first, then runs it again after the fix to confirm the code compiles.
Does it change working code?
It changes types only where needed, and it checks that each replacement still satisfies the places that call it.
Security audits: what do the results show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best typescript-magician alternatives?
Popular alternatives to typescript-magician include typescript-pro, typescript-advanced-types and typescript-write. See all typescript-magician alternatives




















