migrate-to-shoehorn

Converts TypeScript test code 'as' casts to type-safe Shoehorn helpers.

34|4|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/redpanda-data/ui-harness --skill migrate-to-shoehorn-redpanda-data
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: migrate-to-shoehorn
Source: https://github.com/redpanda-data/ui-harness/tree/main/migrate-to-shoehorn
Command: npx skills add https://github.com/redpanda-data/ui-harness --skill migrate-to-shoehorn-redpanda-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of converting test casts from 'as' to type-safe Shoehorn helpers in TypeScript, enhancing code reliability and maintainability.

Core Features & Use Cases

  • Type Safety: Replaces 'as' casts with type-safe Shoehorn helpers, reducing runtime errors.
  • Code Reliability: Ensures that tests run with correct data types, improving overall code quality.
  • Use Case: Ideal for developers aiming to refactor their test suite to use type-safe casts for better error handling and code clarity.

Quick Start

Run the skill to automatically migrate your test casts to Shoehorn helpers.

Frequently Asked Questions about migrate-to-shoehorn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I replace 'as' casts in TypeScript with type-safe helpers?▼

To replace 'as' casts with type-safe helpers, this Skill automatically converts your existing TypeScript test casts into Shoehorn helpers, reducing runtime errors and enhancing code reliability.

What is a Shoehorn migration for TypeScript test code?▼

A Shoehorn migration refactors TypeScript test suites by replacing unsafe 'as' casts with type-safe Shoehorn helpers, ensuring tests run with correct data types and improving overall code quality.

How do I refactor my TypeScript test suite to improve type safety?▼

You can refactor your TypeScript test suite to improve type safety by running this Skill, which automatically migrates your 'as' casts to type-safe Shoehorn helpers for better error handling.

Do I need specific testing frameworks to use Shoehorn helpers for type-safe data handling?▼

This Skill is targeted at testing frameworks and environments requiring type-safe data handling, ensuring robust test suite maintenance and error-free runtime execution without specific framework dependencies.

Why should I convert 'as' casts to type-safe helpers in my test code?▼

Converting 'as' casts to type-safe Shoehorn helpers enhances code reliability and maintainability by ensuring that your TypeScript tests run with correct data types, reducing runtime errors.