com um clique
migrate-to-shoehorn
Migrate test casts from `as` to @total-typescript/shoehorn.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Migrate test casts from `as` to @total-typescript/shoehorn.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
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.
| 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".