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.
スキルの内容
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.
できること
- Find type assertions in test files
- Replace assertions with fromPartial or fromAny
- Add the shoehorn import and type-check
概要
- 公開元
- Matt Pocock
- ツール
- テスト
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- agents/openai.yaml
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/mattpocock/skills2026年11月10日
- GitHubリポジトリgithub.com/mattpocock/skills · 根拠となる項目:ライセンス, 公開元, 活動状況2026年11月11日
- GitHub APIのレコードgithub.com/mattpocock/skills · 根拠となる項目:スクリプトを含む2026年11月17日
- リポジトリ内のフォルダ(migrate-to-shoehorn)github.com/mattpocock/skills · 根拠となる項目:スクリプトを含む2026年11月10日