migrate-to-shoehorn
A skill from Matt Pocock's collection that moves TypeScript test files away from `as` type assertions and onto his @total-typescript/shoehorn library, and only in tests, never production code.
What the skill teaches
A skill from Matt Pocock's collection that moves TypeScript test files away from `as` type assertions and onto his @total-typescript/shoehorn library, and only in tests, never production code. The agent first asks which test files cause trouble, whether large objects or deliberately wrong data are involved, then installs the package, searches .test.ts and .spec.ts files for assertions, and swaps them for fromPartial() when only some properties matter or fromAny() where a double assertion passed invalid data on purpose, adding the import. A table also explains fromExact() for full objects. It finishes with a type check.
Capabilities
- Find type assertions in test files
- Replace assertions with fromPartial or fromAny
- Add the shoehorn import and type-check
About
- Publisher
- Matt Pocock
- Tool
- Testing
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- agents/openai.yaml
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Testing | |
| Publisher | Matt Pocock | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 19, 2026328,236 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from Matt Pocock
37 skills
- writing-beats (Skill)
- writing-fragments (Skill)
- setup-matt-pocock-skills (Skill)
- triage (Skill)
- codebase-design (Skill)
- domain-modeling (Skill)
Also listed under: Testing
Sources
- Skill file (SKILL.md)github.com/mattpocock/skillsNov 10, 2026
- GitHub repositorygithub.com/mattpocock/skills · Backs: Licence, Publisher, ActivityNov 11, 2026
- GitHub API recordgithub.com/mattpocock/skills · Backs: Includes scriptsNov 17, 2026
- Folder in the repository (migrate-to-shoehorn)github.com/mattpocock/skills · Backs: Includes scriptsNov 10, 2026