Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Fixes Zod schema import errors in Output SDK workflows by importing z from @outputai/core instead of zod.
57% 100%+43 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 13 of 23 without it.
What is the exact npm script name defined in the standard Output SDK project template that is used to compile the worker before testing a workflow run?
Specifies output:worker:build
3 of 3 safety checks passed
This skill helps diagnose and fix a common issue where Zod schemas are imported from the wrong source. Output SDK requires schemas to be imported from @outputai/core, not directly from zod.
You're seeing:
The issue occurs when you import z from zod instead of @outputai/core. While both provide Zod schemas, they create different schema instances that aren't compatible with each other within the Output SDK context.
Why this matters: Output SDK uses a specific version of Zod internally for serialization and validation. When you use a different Zod instance, the schemas are technically different objects even if they define the same shape.
Error: Incompatible schema types
Error: Schema validation failed: expected compatible Zod instance
TypeError: Cannot read property 'parse' of undefined
// WRONG: Importing from 'zod' directly
import { z } from 'zod';
const inputSchema = z.object( {
name: z.string()
} );
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.