with one click
migrate-to-shoehorn
Migrate test casts from `as` to @total-typescript/shoehorn.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Migrate test casts from `as` to @total-typescript/shoehorn.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | migrate-to-shoehorn |
| description | Migrate test casts from `as` to @total-typescript/shoehorn. |
Test code only. Never prod.
@total-typescript/shoehorn replaces test as casts with type-safe helpers for partial data.
bun add -d @total-typescript/shoehorn
as Type with partial object -> fromPartial():
import { fromPartial } from "@total-typescript/shoehorn";
getUser(fromPartial({ body: { id: "123" } }));
Intentionally invalid data -> fromPartial() plus targeted override helper from package docs. Avoid as unknown as.
*.test.*, *.spec.*, fixtures.rg " as |as unknown as".Generate Codex hooks.json and AGENTS.md from Claude Code hooks. Maps supported hooks directly, including Edit|Write apply_patch aliases, and keeps Stop batch checks only as fallback. Use when setting up Codex compatibility or dual-agent support.
Question changed code as liability and remove unjustified surface area. Use before commit, push, PR, merge, or when a change feels overbuilt or low-value.
Reviews diffs for over-engineering only. Use when reviewing, desloping, or asking what to delete, inline, shrink, or replace with stdlib/native code.
Resilience Review checks resilience. Use when edge cases, errors, fallback, async/data, state, or polish matter.
Reviews a diff since a fixed point across Standards, Spec, and risk gates. Use when reviewing a branch, PR, WIP, or "review since X".
parallel executor. Use /swarm.