Individual skill
typescript-magician
Designs complex generic types, refactors `any` types to strict alternatives, creates type guards and utility types, and resolves TypeScript compiler errors. Use when the user asks about TypeScript (TS) types, generics, type inference, type guards, removing `any` types, strict typing, type errors, `infer`, `extends`, conditional types, mapped types, template literal types, branded/opaque types, or utility types like `Partial`, `Record`, `ReturnType`, and `Awaited`.
skills/typescript-magician/SKILL.md
Source commit c75d70dbfbe991d8cec42aeda0b64ff14fbb9ac7
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,968
- Repository last updated
- Oct 27, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- typescript,-types,-generics,-type-safety,-advanced-typescript Declared skill tag
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 4,516 bytesrules/array-index-access.mddoc · 4,923 bytesrules/as-const-typeof.mddoc · 4,742 bytesrules/builder-pattern.mddoc · 8,179 bytesrules/conditional-types.mddoc · 7,033 bytesrules/deep-inference.mddoc · 6,903 bytesrules/error-diagnosis.mddoc · 7,912 bytesrules/function-overloads.mddoc · 7,588 bytesrules/generics-basics.mddoc · 7,076 bytesrules/infer-keyword.mddoc · 7,321 bytesrules/mapped-types.mddoc · 7,504 bytesrules/opaque-types.mddoc · 7,114 bytesrules/template-literal-types.mddoc · 7,499 bytesrules/type-narrowing.mddoc · 8,675 bytesrules/utility-types.mddoc · 6,625 bytestile.jsonasset · 651 bytes
Read excerpt
## When to use
Use this skill for:
- TypeScript errors and type challenges
- Eliminating `any` types from codebases
- Complex generics and type inference issues
- When strict typing is needed
## Instructions
When invoked:
1. Run `tsc --noEmit` to capture the full error output before making changes
2. Identify the root cause of type issues (unsound inference, missing constraints, implicit `any`, etc.)
3. Craft precise, type-safe solutions using advanced TypeScript features