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.
Was der Skill vermittelt
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.
Funktionen
- Find type assertions in test files
- Replace assertions with fromPartial or fromAny
- Add the shoehorn import and type-check
Überblick
- Herausgeber
- Matt Pocock
- Tool
- Testing
Installation
Das Projekt dokumentiert keine Installationsschritte, die wir bestätigen konnten. Zur Anleitung des Projekts
Was enthalten ist
- agents/openai.yaml
MCP-Server und Skills können Code auf deinem Rechner ausführen und auf deine Daten zugreifen. Prüfe den Quellcode, bevor du etwas installierst.
Details
| Angabe | Wert | Quelle |
|---|---|---|
| Typ | Skill | |
| Tool | Testing | |
| Herausgeber | Matt Pocock | Quelle |
| Offizieller Status | In der Dokumentation nicht angegeben | |
| Braucht API-Key oder Anmeldung | In der Dokumentation nicht angegeben | |
| Enthält Skripte | Nein | Quelle |
| Plattformen | In der Dokumentation nicht angegeben | |
| KI-Clients | In der Dokumentation nicht angegeben | |
| Lizenz | MIT | Quelle |
| Preis | In der Dokumentation nicht angegeben | |
| Aktivität | Letzter Commit am 19. Nov. 2026328.236 GitHub-SterneKeine Download-Daten verfügbar (nicht auf npm oder PyPI) | Quelle |
| Links | Repository Website |
Mehr von Matt Pocock
37 Skills
- writing-beats (Skill)
- writing-fragments (Skill)
- setup-matt-pocock-skills (Skill)
- triage (Skill)
- codebase-design (Skill)
- domain-modeling (Skill)
Auch zu finden unter: Testing
Quellen
- Skill-Datei (SKILL.md)github.com/mattpocock/skills10. Nov. 2026
- GitHub-Repositorygithub.com/mattpocock/skills · Belegt: Lizenz, Herausgeber, Aktivität11. Nov. 2026
- Datensatz aus der GitHub-APIgithub.com/mattpocock/skills · Belegt: Enthält Skripte17. Nov. 2026
- Ordner im Repository (migrate-to-shoehorn)github.com/mattpocock/skills · Belegt: Enthält Skripte10. Nov. 2026