Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates types.ts files with Zod schemas and inferred TypeScript types for Output SDK workflows, importing z from @outputai/core.
Use this skill ↓17% 96%+78 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 4 of 23 without it.
Show how to define a Zod enum with default value and an optional string field with description in an Output SDK `types.ts` file for an image generation concept workflow.
Imports z from @outputai/core
3 of 3 safety checks passed
This skill documents how to create types.ts files for Output SDK workflows. These files contain Zod schemas for input/output validation and their corresponding TypeScript types.
ALWAYS import z from @outputai/core, NEVER from zod directly:
// CORRECT
import { z } from '@outputai/core';
// WRONG - will cause runtime errors
import { z } from 'zod';
Related Skill: output-error-zod-import for troubleshooting import issues
import { z } from '@outputai/core';
// 1. Workflow Input Schema
export const WorkflowInputSchema = z.object( {
// Define input fields
} );
// 2. Workflow Output Type
export type WorkflowInput = z.infer<typeof WorkflowInputSchema>;
export type WorkflowOutput = /* output type */;
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.