migrate-to-shoehorn
Installation
SKILL.md
Migrate to Shoehorn
Replace unsafe TypeScript as assertions in test files with type-safe alternatives from @total-typescript/shoehorn.
When to use this skill
- Modernizing test code to eliminate
astype assertion anti-patterns - Making test data creation type-safe with autocomplete support
- Migrating from
as unknown as Typedouble-assertions
When not to use this skill
- Production code (shoehorn is test code only)
- Non-TypeScript projects
- Runtime type validation → use a library like
zod
Installation
Related skills