migrate-to-shoehorn

Replaces old test shortcuts with a better tool so your test data is cleaner and safer.

Installation
Run `npx skills add "https://github.com/vinvcn/mattpocock-skills-zh-cn" --skill "migrate-to-shoehorn"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

What this skill does
What it does: - Changes test code to use shoehorn, a tool that lets you pass partial test data instead of fake complete objects - Replaces type assertions marked with as with safer shoehorn functions - Supports passing intentionally wrong data for testing error cases - Only works in test files, never in real production code When to use it: - You have test files with many as assertions that feel clunky - You only need a few properties from a large object in your tests - You want cleaner, safer test code that still type checks correctly

The full skill text could not be loaded right now. It installs fine with the command above, or read it at the source.

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us