Agent skill

Migrate To Shoehorn

by fossasia in fossasia/eventyay-interpretation

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

Apache-2.0Auto-check passedTesting & QA

Install Migrate To Shoehorn

skills CLI
$ npx skills add fossasia/eventyay-interpretation --skill migrate-to-shoehorn -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install fossasia/eventyay-interpretation migrate-to-shoehorn --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/fossasia/eventyay-interpretation.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/migrate-to-shoehorn .claude/skills/migrate-to-shoehorn && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
migrate-to-shoehorn
GitHub stars
1.6k
Used in
12 other repos
Token cost
~698 tokens
SKILL.md length
186 words
Files
1
Skills in repo
38
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Works in 2 steps: Gather requirements - ask user → Install and migrate
  • User mentions shoehorn
  • SKILL.md covers Why shoehorn?, Install, Migration patterns and When to use each, plus 1 more section
  • Calls npm

What it does

Migrate To Shoehorn is an agent skill from fossasia/eventyay-interpretation. 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.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Test data and fixtures. It works with TypeScript. The repository describes itself as: A plugin for live interpretation of video streams. The licence is Apache-2.0.

When your agent uses it

  • User mentions shoehorn
  • Wants to replace as in tests
  • Needs partial test data

Example prompts

  • “/migrate-to-shoehorn”

Requirements

  • Node.js

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Gather requirements - ask user
  2. Install and migrate

What it can do on your machine

Read from SKILL.md and the folder at commit e3d746f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Migrate To Shoehorn loads about 698 tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 186 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~698

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from fossasia/eventyay-interpretation at commit e3d746f, republished under its Apache-2.0 licence (© fossasia). 186 words, ~698 tokens.

Download SKILL.mdSave it as .claude/skills/migrate-to-shoehorn/SKILL.md (or your agent's skills folder).
name
migrate-to-shoehorn
description
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.

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
};

it("gets user by id", () => {
  // Only care about body.id but must fake entire Request
  getUser({
    body: { id: "123" },
    headers: {},
    cookies: {},
    // ...fake all 20 properties
  });
});

After:

ts
import { fromPartial } from "@total-typescript/shoehorn";

it("gets user by id", () => {
  getUser(
    fromPartial({
      body: { id: "123" },
    }),
  );
});
as Type → fromPartial()

Before:

ts
getUser({ body: { id: "123" } } as Request);

After:

ts
import { fromPartial } from "@total-typescript/shoehorn";

getUser(fromPartial({ body: { id: "123" } }));
as unknown as Type → fromAny()

Before:

ts
getUser({ body: { id: 123 } } as unknown as Request); // wrong type on purpose

After:

ts
import { fromAny } from "@total-typescript/shoehorn";

getUser(fromAny({ body: { id: 123 } }));

When to use each

FunctionUse case
fromPartial()Pass partial data that still type-checks
fromAny()Pass intentionally wrong data (keeps autocomplete)
fromExact()Force full object (swap with fromPartial later)

Workflow

  1. Gather requirements - ask user:

    • What test files have as assertions causing problems?
    • Are they dealing with large objects where only some properties matter?
    • Do they need to pass intentionally wrong data for error testing?
  2. Install and migrate:

    • Install: npm i @total-typescript/shoehorn
    • Find test files with as assertions: grep -r " as [A-Z]" --include="*.test.ts" --include="*.spec.ts"
    • Replace as Type with fromPartial()
    • Replace as unknown as Type with fromAny()
    • Add imports from @total-typescript/shoehorn
    • Run type check to verify

© fossasia, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/migrate-to-shoehorn of fossasia/eventyay-interpretation.

Open the folder on GitHubat commit e3d746f

Used in 13 other repositories

We found 17 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 12 other GitHub owners. This page covers the copy in fossasia/eventyay-interpretation, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Migrate To Shoehorn next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Migrate To Shoehorn compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Migrate To Shoehorn this skillfossasia/eventyay-interpretation1.6k12 repos~698Automated safety check: PassApache-2.0
Java SDK E2E Test with Replay Snapshotgithub/copilot-sdk11k—~1.8kAutomated safety check: PassMIT
ClickUp CLI Testingkrodak/clickup-cli123—~1.4kAutomated safety check: NotesMIT
Data Strategyidavidov13/agentic-playwright225—~3.4kAutomated safety check: PassMIT
Testing Strategiesancoleman/ai-design-components525—~3.8kAutomated safety check: PassMIT
Enumsidavidov13/agentic-playwright225—~3kAutomated safety check: PassMIT

Similar skills

  • Official

    Creates a Java SDK end-to-end test for the Copilot SDK that runs against a recorded YAML snapshot through a replay proxy, so CI needs no real authentication.

    11k GitHub stars~1.8k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • ClickUp CLI Testing

    krodak/clickup-cli

    Explains how to run and extend the clickup-cli tests: unit tests with a mocked client, e2e tests against a real ClickUp workspace, and the fixture data they rely on.

    123 GitHub stars~1.4k tokensUpdated 4 days ago
    Testing & QAAuto-check: notes
  • Data Strategy

    idavidov13/agentic-playwright

    Test data strategy for the Playwright scaffold — Faker + Zod factories for dynamic happy-path data, static TS files (.ts with as const exports — never .json) for domain-specific curated invalid…

    225 GitHub stars~3.4k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Testing Strategies

    ancoleman/ai-design-components

    Strategic guidance for choosing and implementing testing approaches across the test pyramid.

    525 GitHub stars~3.8k tokensUpdated 10 mo ago
    Testing & QAAuto-check passed
  • Enums

    idavidov13/agentic-playwright

    TypeScript enum conventions for the Playwright scaffold — PascalCase enum names, SCREAMINGSNAKECASE members, location rules for app-specific (enums/{area}/) vs shared/utility (enums/util/)…

    225 GitHub stars~3k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Refactor Values

    idavidov13/agentic-playwright

    Safe refactoring workflow for enum values, enum keys, and static test data in test-data/static/.ts — mandatory impact analysis, cascading updates, and verification.

    225 GitHub stars~2.3k tokensUpdated 3 days ago
    Testing & QAAuto-check passed

More from fossasia/eventyay-interpretation

All 38 skills in this repo
  • Git Guardrails Claude Code

    fossasia/eventyay-interpretation

    Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute.

    1.6k GitHub starsUsed in 12 repos~578 tokens
    Auto-check passed
  • Diagnosing Bugs

    fossasia/eventyay-interpretation

    Diagnosis loop for hard bugs and performance regressions. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 32 repos~2.1k tokens
    Auto-check passed
  • Domain Modeling

    fossasia/eventyay-interpretation

    Build and sharpen a project's domain model. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 30 repos~821 tokens
    Auto-check passed
  • Improve

    fossasia/eventyay-interpretation

    Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute.

    1.6k GitHub starsUsed in 10 repos~3.7k tokens
    Auto-check: warnings
  • Setup Pre Commit

    fossasia/eventyay-interpretation

    Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo.

    1.6k GitHub starsUsed in 12 repos~565 tokens
    Auto-check passed
  • Scaffold Exercises

    fossasia/eventyay-interpretation

    Create exercise directory structures with sections, problems, solutions, and explainers that pass linting.

    1.6k GitHub starsUsed in 11 repos~898 tokens
    Auto-check passed

Works with

Categories

Questions about Migrate To Shoehorn

What does Migrate To Shoehorn do?

Migrate test files from as type assertions to @total-typescript/shoehorn. Migrate To Shoehorn is an agent skill from fossasia/eventyay-interpretation. Migrate test files from as type assertions to @total-typescript/shoehorn.

When should I use Migrate To Shoehorn?

Migrate To Shoehorn fits situations like: user mentions shoehorn; wants to replace as in tests; needs partial test data.

How do I install Migrate To Shoehorn in Claude Code?

Run `npx skills add fossasia/eventyay-interpretation --skill migrate-to-shoehorn -a claude-code`. Or copy the skill folder (.agents/skills/migrate-to-shoehorn in fossasia/eventyay-interpretation) into .claude/skills/migrate-to-shoehorn in your project. Claude Code loads it when a task matches its description.

How do I install Migrate To Shoehorn in Codex?

Run `npx skills add fossasia/eventyay-interpretation --skill migrate-to-shoehorn -a codex`. Or copy the skill folder (.agents/skills/migrate-to-shoehorn in fossasia/eventyay-interpretation) into .agents/skills/migrate-to-shoehorn in your project. Codex loads it when a task matches its description.

Can I use Migrate To Shoehorn in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fossasia/eventyay-interpretation --skill migrate-to-shoehorn -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migrate-to-shoehorn, .gemini/skills/migrate-to-shoehorn, .github/skills/migrate-to-shoehorn and .opencode/skills/migrate-to-shoehorn in your project.

What does Migrate To Shoehorn need to run?

Going by SKILL.md and its folder, Migrate To Shoehorn needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Migrate To Shoehorn access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Migrate To Shoehorn safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Migrate To Shoehorn use?

Migrate To Shoehorn is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Migrate To Shoehorn use?

About 698 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Migrate To Shoehorn?

Skills that share tags, products or a category with Migrate To Shoehorn: Java SDK E2E Test with Replay Snapshot (github/copilot-sdk, 11k stars), ClickUp CLI Testing (krodak/clickup-cli, 123 stars), Data Strategy (idavidov13/agentic-playwright, 225 stars) and Testing Strategies (ancoleman/ai-design-components, 525 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Migrate To Shoehorn?

fossasia (a GitHub organization) maintains it in fossasia/eventyay-interpretation, which has 1,550 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on October 10, 2026.

Source: fossasia/eventyay-interpretation on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.