# Migrate To Shoehorn

> migrate-to-shoehorn

- Skill: `haohao-end/migrate-to-shoehorn` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add haohao-end/migrate-to-shoehorn`
- Raw SKILL.md: https://api.skillmd.com/api/skills/haohao-end/migrate-to-shoehorn/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: Haohao-end (https://skillmd.com/u/haohao-end)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/haohao-end/migrate-to-shoehorn

---

# migrate-to-shoehorn

这是一个把测试里的类型断言迁移到 shoehorn 的技能。

## 适用场景

- 代码库里有大量 `as` 断言
- 想把测试断言变得更类型安全
- 用户希望批量迁移，而不是手工逐个改

## 工作方式

1. 找出使用 `as` 的测试。
2. 识别适合 shoehorn 的断言位置。
3. 逐文件迁移，保持行为不变。

