output-error-zod-import

Replace direct zod imports with @outputai/core in Output SDK workflows.

430|12|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/growthxai/output --skill output-error-zod-import
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: output-error-zod-import
Source: https://github.com/growthxai/output/tree/main/coding_assistants/claude/plugins/outputai/skills/output-error-zod-import
Command: npx skills add https://github.com/growthxai/output --skill output-error-zod-import

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill fixes Zod import issues in Output SDK workflows by ensuring schemas are imported from @outputai/core rather than directly from zod, which prevents mismatched schemas and runtime errors.

Core Features & Use Cases

  • Detect incorrect imports of zod in code paths that define or consume schemas (inputSchema, outputSchema).
  • Replace imports to use @outputai/core, and adjust dependent code to maintain compatibility.
  • Use Case: when encountering "incompatible schema" errors or type errors at step boundaries in Output workflows.

Quick Start

Run this skill to locate and replace all incorrect Zod imports with @outputai/core across the project.

Frequently Asked Questions about output-error-zod-import

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do I get an incompatible schema error at step boundaries in Output SDK workflows?

An incompatible schema error in Output SDK workflows usually occurs because Zod schemas are imported directly from the zod package instead of @outputai/core. Replacing those direct zod imports with @outputai/core ensures schema compatibility across step boundaries and resolves the runtime type mismatches.

How do I fix Zod import issues in TypeScript for Output SDK workflows?

To fix Zod import issues in TypeScript Output SDK workflows, locate all direct zod imports and replace them with @outputai/core. This skill automatically scans code paths defining inputSchema and outputSchema, adjusts dependent code, and ensures no direct zod imports remain to prevent mismatched schemas.

What is the correct way to import Zod schemas in Output SDK steps?

The correct way to import Zod schemas in Output SDK steps is by importing from @outputai/core rather than the standard zod library. Using @outputai/core ensures that all inputSchema and outputSchema definitions share the same schema instance, preventing type errors and runtime failures.

Can I use standard zod imports with inputSchema and outputSchema definitions in Output workflows?

No, using standard zod imports with inputSchema and outputSchema definitions in Output workflows causes schema mismatches. You must import Zod schemas from @outputai/core to maintain compatibility and ensure that builds pass with tests across all defined steps.

What's the best way to locate and replace incorrect Zod imports across an Output SDK project?

The best way to locate and replace incorrect Zod imports across an Output SDK project is to run an automated scan that identifies all direct zod imports in schema definitions. This skill replaces them with @outputai/core imports and adjusts dependent code paths to verify builds pass.

What happens if I don't update zod imports to @outputai/core in Output SDK workflows?

If you don't update zod imports to @outputai/core in Output SDK workflows, you will encounter mismatched schemas and runtime errors at step boundaries. Direct zod imports create separate schema instances, leading to incompatible schema errors and failed builds during type validation.