validation

Validate inputs and API payloads with Standard Schema-compatible schemas.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/zap-studio/skills --skill validation-zap-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validation
Source: https://github.com/zap-studio/skills/tree/main/validation
Command: npx skills add https://github.com/zap-studio/skills --skill validation-zap-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates inputs and API payloads using Standard Schema-compatible schemas to ensure consistent data quality and predictable error handling.

Core Features & Use Cases

  • Standardized validation across libraries (e.g., Zod, Valibot, ArkType)
  • Unified error shapes via a single ValidationError type
  • Normalize both sync and async validation paths for API workflows

Quick Start

Invoke standardValidate to enforce a consistent ValidationError across your schema libraries.

Frequently Asked Questions about validation

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

FAQPage Schema
How do I validate API payloads consistently across different schema libraries?

You can validate API payloads using Standard Schema-compatible schemas to ensure consistent data quality. The standardValidate function enforces a unified ValidationError shape across libraries like Zod, Valibot, and ArkType.

Can I use Standard Schema to unify error handling for async validation paths?

Yes, Standard Schema normalizes both synchronous and asynchronous validation paths for API workflows. This unification ensures you receive a single, consistent ValidationError type regardless of the validation timing.

What is the best way to check if an object is a Standard Schema schema?

You can use the isStandardSchema guard function to verify if an object conforms to the Standard Schema specification. This provides a clear, interoperable check before attempting validation.

How do I create a synchronous validator for Standard Schema inputs?

You can invoke createSyncStandardValidator to enforce validation on synchronous paths. This utility ensures your inputs adhere to the defined schema while returning a consistent error shape.

Does Standard Schema validation support Zod and Valibot?

Yes, Standard Schema validation supports interoperability across common schema libraries including Zod, Valibot, and ArkType. It standardizes the validation output into a single ValidationError type across these environments.