migrate-to-shoehorn
Migrate TypeScript Tests to Shoehorn
Type assertions can hide incomplete or invalid test fixtures. This skill converts common assertions to Shoehorn helpers while preserving test intent and type feedback.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "migrate-to-shoehorn" from https://skillstore.io/skills/mattpocock-migrate-to-shoehorn.md and its manifest at https://skillstore.io/api/skills/mattpocock-migrate-to-shoehorn/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "migrate-to-shoehorn". Review the tests in the user service and recommend Shoehorn helpers.
Expected outcome:
- Found six direct assertions and two double assertions in the selected test files.
- Use fromPartial for incomplete request fixtures and fromAny for deliberately invalid identifier values.
- No production files were included in the recommendation.
Using "migrate-to-shoehorn". Migrate the selected request handler tests and verify the result.
Expected outcome:
- Replaced direct fixture assertions with fromPartial and added the required imports.
- Preserved one malformed fixture with fromAny because the test validates an error path.
- The project type check passed after the migration.
Using "migrate-to-shoehorn". Explain why one fixture should not use fromAny.
Expected outcome:
The fixture is incomplete but otherwise valid, so fromPartial preserves useful property checks. Reserve fromAny for deliberately invalid test data.
Security Audit
SafeAll 29 static findings are false positives caused by Markdown backticks, fenced examples, or ordinary prose. The skill documents expected npm and grep commands, but contains no command runner, dynamic execution, hidden behavior, or prompt injection.
Risk Factors
โ๏ธ External commands (28)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/mattpocock-migrate-to-shoehorn/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/mattpocock-migrate-to-shoehorn?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/mattpocock-migrate-to-shoehorn?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/mattpocock-migrate-to-shoehorn/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/mattpocock-migrate-to-shoehorn.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
mattpocock. (2026). migrate-to-shoehorn security audit report (audit version 6) [Author version unspecified]. Skillstore. https://skillstore.io/skills/mattpocock-migrate-to-shoehorn/audits/6BibTeX citation
@techreport{mattpocock-mattpocock-migrate-to-shoehorn-2026,
author = {mattpocock},
title = {migrate-to-shoehorn security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/mattpocock-migrate-to-shoehorn/audits/6},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "migrate-to-shoehorn security audit report (audit version 6)"
version: "unspecified"
type: report
authors:
- name: "mattpocock"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/mattpocock-migrate-to-shoehorn/audits/6"
identifiers:
- type: other
value: "skillstore:mattpocock-migrate-to-shoehorn:audit:6"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Simplify Large Test Fixtures
Convert partial request, response, or domain fixtures without fabricating every required property.
Preserve Negative Test Data
Replace double assertions used to create intentionally malformed values for negative tests.
Standardize Fixture Patterns
Standardize test fixture construction around explicit Shoehorn helpers during codebase cleanup.
Try These Prompts
Explain when fromPartial, fromAny, and fromExact should replace TypeScript assertions in tests. Include one migration recommendation for [fixture type].
Review TypeScript test files in [path]. List each direct or double assertion and recommend the matching Shoehorn helper without editing files.
Migrate assertions in [path] to @total-typescript/shoehorn. Add required imports, preserve intentional invalid data, and run the project's type check.
Audit [path] for unsafe test fixture assertions. Separate partial fixtures from intentionally invalid fixtures, migrate them, and summarize verification results and unresolved cases.
Best Practices
- Confirm whether each fixture is partial or intentionally invalid before selecting a helper.
- Limit changes to test files and keep Shoehorn out of production code.
- Run the project type check and relevant tests after migration.
Avoid
- Do not use Shoehorn in production code.
- Do not replace assertions without checking the purpose of each fixture.
- Do not convert intentionally invalid data to fromPartial; use fromAny and document the test intent.
Frequently Asked Questions
What problem does this skill solve?
Does the skill install Shoehorn?
Can Shoehorn be used in production code?
Which helper handles incomplete fixtures?
Which helper handles deliberately invalid data?
Will the suggested search find every assertion?
Developer Details
Author
mattpocockLicense
MIT
Skillstore revision
r2
Version notice
The author did not declare a version.
Ref
ebdfe608f5de2b66ff37ab4af12af8ac4f5e8006
Maintenance freshness
7/25/2026
Usage
2 downloads ยท 0 views
File structure
๐ SKILL.md