migrate-to-shoehorn skillA
migrate-to-shoehorn is agent-read markdown (skill) from akillness/jeo-skills: Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Migrate to Shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
This skill is imported from `mattpocock/skills` (MIT) and is **model-invoked** upstream.
## When to use this skill
- Migrate test files from `as` type assertions to @total-typescript/shoehorn.
- Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
## Instructions
## Migrate to Shoehorn
### Why shoehorn?
`shoehorn` lets you pass partial data in tests while keeping TypeScript happy. It replaces `as` assertions with type-safe alternatives.
**Test code only.** Never use shoehorn in production code.
Problems with `as` in tests:
- Trained not to use it
- Must manually specify target type
- Double-as (`as unknown as Type`) for intentionally wrong data
### Install
```bash
npm i @total-typescript/shoehorn
```
### Migration patterns
#### Large objects with few needed properties
Before:
```ts
type Request = {
body: { id: string };
headers: Record<string, string>;
cookies: Record<string, string>;
// ...20 more properties
};
…Read the whole file at its exact version.
How to install
mdr add akillness/jeo-skills/migrate-to-shoehorn@v1.0mdr add akillness/jeo-skills/migrate-to-shoehorn@sha256:fb17f8398cae8d85Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_rk6krfgorslu6e2x)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0 latest | 2026-09-11 | 8052d3c | 4,540 B | A | view · diff |
| v1.0 | 2026-07-28 | 6910059 | 3,764 B | A | view · diff |
| v1.0 | 2026-05-05 | eb68a6f | 3,970 B | A | view · diff |
| v1.0 | 2026-05-04 | aab4b13 | 3,275 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4540 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
akillness/jeo-skills · 47 stars · license none · pushed 2026-09-22 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_rk6krfgorslu6e2x GET https://markdownregistry.com/api/v1/resolve?ref=akillness/jeo-skills/migrate-to-shoehorn GET https://markdownregistry.com/api/v1/blob/fb17f8398cae8d8597ab21e21d3436000a46200b1066468343578b43ab05395b
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from akillness/jeo-skills
Every file in akillness/jeo-skills