migrate-to-shoehorn SKILL.md skillC

migrate-to-shoehorn from ctaxnagomi/agent-kd-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ctaxnagomi/agent-kd-skill/migrate-to-shoehorn@git:20260826.54f6831

Pins git:20260826.54f6831 in mdr.lock. Pin the fingerprint instead.

Audit grade
C, 15 of 17 checks passed
Kind
SKILL.md skill
Repository
ctaxnagomi/agent-kd-skill
Path
skills/custom/migrate-to-shoehorn/SKILL.md
Versions recorded
3
Latest version
git:20260826.54f6831, committed Aug 26, 2026
First version recorded
Aug 24, 2026
Size
2,285 bytes
Repository stars
3
License
none declared

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Migrate to Shoehorn

Migrate test files from `as` type assertions to @total-typescript/shoehorn.

## Why shoehorn?
- Pass partial data in tests while keeping TypeScript happy
- Replace `as` assertions with type-safe alternatives
- Test code only — never use in production

## Functions
- fromPartial() — Pass partial data that still type-checks
- fromAny() — Pass intentionally wrong data
- fromExact() — Force full object

## Workflow
1. **Gather requirements** — What test files have `as` assertions?
2. **Install** — npm i @total-typescript/shoehorn
3. **Find** — grep for `as Type` patterns in test files
4. **Replace** — as Type → fromPartial(), as unknown as Type → fromAny()
5. **Verify** — Run type check

## Credit

This skill is based on the work of **Matt Pocock** ([@mattpocock](https://github.com/mattpocock)). Original source: [mattpocock/skills](https://github.com/mattpocock/skills). Licensed under MIT.

---

## How to use?

### 1. Download
Go to the [AGENT KD SKILL gallery](https://ctaxnagomi.github.io/agent-kd-skill/) and find this skill card. Click **Download** to save the SKILL.md file to your computer.

### 2. Install
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ctaxnagomi/agent-kd-skill/migrate-to-shoehorn@sha256:0dc9dd2077154c05

The line at the top of this page pins the label git:20260826.54f6831, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ukqxsvwxufamij4u.svg)](https://markdownregistry.com/a/art_ukqxsvwxufamij4u)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Aug 24, 2026 and Aug 26, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20260826.54f6831 latest2026-08-26 54f6831 2,285 BC view · diff
git:20260824.dfd64f32026-08-24 dfd64f3 2,287 BC view · diff
git:20260824.da779f92026-08-24 da779f9 1,223 BC view

Audit of the latest version

C  15 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: Frontmatter declares a name
  • fail: Frontmatter declares a description
  • pass: Frontmatter block present
  • pass: Size between 200 bytes and 200 KB (2285 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

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

ctaxnagomi/agent-kd-skill · 3 stars · license none declared · pushed 2026-10-14 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_ukqxsvwxufamij4u
GET https://markdownregistry.com/api/v1/resolve?ref=ctaxnagomi/agent-kd-skill/migrate-to-shoehorn
GET https://markdownregistry.com/api/v1/blob/0dc9dd2077154c05ae63cb3a3f3691d35742db065a7ac212ea1a3e65d51e7e16

Your AI assistant 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.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ctaxnagomi/agent-kd-skill

grill-me SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/agent-sub/grill-me/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
agent-memory SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/agent-memory/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
ask-matt SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/ask-matt/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
code-review SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/code-review/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
codebase-design SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/codebase-design/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
deepseek-harness SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/deepseek-harness/SKILL.md · Fetch, harness, and deploy Deepseek models with full repo instructions, file management, and agent integration.
git:20260826.fc8b2a5 · audit B · 3 stars
design SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/design/SKILL.md · UI/UX design system — skewed glass cards, neon border-trace buttons, translucent iOS aesthetic with per-category color…
git:20260826.f28e6ab · audit B · 3 stars
diagnosing-bugs SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/diagnosing-bugs/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
domain-modeling SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/domain-modeling/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
git-guardrails-claude-code SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/git-guardrails-claude-code/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
grill-with-docs SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/grill-with-docs/SKILL.md
git:20260826.54f6831 · audit C · 3 stars
grilling SKILL.md skill
ctaxnagomi/agent-kd-skill · skills/custom/grilling/SKILL.md
git:20260826.54f6831 · audit C · 3 stars

Every file in ctaxnagomi/agent-kd-skill

Other files named migrate-to-shoehorn

migrate-to-shoehorn SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/misc/migrate-to-shoehorn/SKILL.md · 将测试文件从 `as` 类型断言迁移到 @total-typescript/shoehorn。适用于用户提到 shoehorn、想替换测试中的 `as`,或需要局部测试数据时。
git:20261008.5be0dc1 · audit A · 5,110 stars
migrate-to-shoehorn SKILL.md skill
mxyhi/ok-skills · migrate-to-shoehorn/SKILL.md · Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to…
git:20260427.26d456f · audit A · 504 stars
migrate-to-shoehorn SKILL.md skill
asymmetric-al/core · .agents/skills/migrate-to-shoehorn/SKILL.md · Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to…
git:20260430.3022c5f · audit A · 379 stars
migrate-to-shoehorn SKILL.md skill
rudycity/superagent · .agents/skills/migrate-to-shoehorn/SKILL.md · Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to…
git:20260626.019dba9 · audit A · 52 stars
migrate-to-shoehorn SKILL.md skill
akillness/jeo-skills · .agent-skills/migrate-to-shoehorn/SKILL.md · Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to…
v1.0 · audit A · 48 stars
migrate-to-shoehorn SKILL.md skill
vodailocz/kilo-kit-mcp · skills/productivity/migrate-to-shoehorn/SKILL.md · Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to…
git:20260821.05c0d52 · audit A · 28 stars
migrate-to-shoehorn SKILL.md skill
mambo-wang/codewiki-plus · .trae/skills/migrate-to-shoehorn/SKILL.md · Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to…
git:20260916.5a385b8 · audit A · 20 stars
migrate-to-shoehorn SKILL.md skill
mambo-wang/codewiki-plus · .codebuddy/skills/migrate-to-shoehorn/SKILL.md · Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to…
git:20260916.5a385b8 · audit A · 20 stars

Browse by kind, by grade C, or by owner.