Converts OpenAPI 3.0 JSON/YAML to TypeScript interfaces and type guards. This skill should be used when the user asks to generate types from OpenAPI, convert schema to TS, create API interfaces, or generate TypeScript types from an API specification.
88
82%
Does it follow best practices?
Impact
100%
1.51xAverage score across 3 eval scenarios
Passed
No known issues
Type guards and ApiError generation
isApiError present
0%
100%
ApiError interface present
0%
100%
ApiError detail optional
0%
100%
Type guard per interface
100%
100%
Guard: object + null check
100%
100%
Guard: field presence check
50%
100%
Guard: typeof primitive check
100%
100%
Guard: enum .includes() check
44%
100%
UUID JSDoc comment
62%
100%
Email JSDoc comment
100%
100%
Enum as union literal
100%
100%
Enum type named correctly
100%
100%
Complex type mapping and $ref resolution
Array type syntax
100%
100%
$ref not inlined
100%
100%
oneOf as union
100%
100%
allOf as extends
100%
100%
Required vs optional fields
100%
100%
integer maps to number
100%
100%
Enum as union literal
100%
100%
Enum type named correctly
0%
100%
Type guard: Array.isArray check
0%
100%
ApiError always present
0%
100%
JSDoc from description
100%
100%
Request/response naming and file header
File header present
25%
100%
Header: source filename
100%
100%
GET request type name
22%
100%
POST request type name
33%
100%
Response type name
66%
100%
Optional query params
100%
100%
Required path params
100%
100%
Response $ref not inlined
100%
100%
ApiError always present
0%
100%
Schema interfaces generated
100%
100%
Type guards for schemas
100%
100%
Output at types/api.ts
0%
100%
3027f20
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.