migrate-to-shoehorn
SkillDocs & knowledge--- name: migrate-to-shoehorn description: Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the migrate-to-shoehorn skill
About this capability
Zorai is a persistent, multi-agent, auditable, learning execution platform where the daemon owns work, memory, approvals, tools, and long-running goals.
What this skill tells your AI
The instructions your AI receives, as published by mkurman/zorai in skills/mattpocock/migrate-to-shoehorn/SKILL.md and read by ahel’s review.
name: migrate-to-shoehorn
description: Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.
tags: [mattpocock, migrate-to-shoehorn, typescript]
------------ | -------------------------------------------------- |
| fromPartial() | Pass partial data that still type-checks |
| fromAny() | Pass intentionally wrong data (keeps autocomplete) |
| fromExact() | Force full object (swap with fromPartial later) |
Workflow
-
Gather requirements - ask user:
- What test files have
asassertions causing problems? - Are they dealing with large objects where only some properties matter?
- Do they need to pass intentionally wrong data for error testing?
- What test files have
-
Install and migrate:
- Install:
npm i @total-typescript/shoehorn - Find test files with
asassertions:grep -r " as [A-Z]" --include="*.test.ts" --include="*.spec.ts" - Replace
as TypewithfromPartial() - Replace
as unknown as TypewithfromAny() - Add imports from
@total-typescript/shoehorn - Run type check to verify
- Install:
Signals
- GitHub stars
- 324
- Forks
- 26
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
migrate-to-shoehorn-mkurman- Source
- github.com/mkurman/zorai