validation

SKILL.md

validation

Overview

Standard Schema helpers for consistent validation and error handling across Zod, Valibot, ArkType, and others.

When to Use

  • Validating inputs or API payloads with Standard Schema-compatible schemas
  • Normalizing sync and async validation paths
  • Handling a single ValidationError type across schema libraries

When Not to Use

  • You only need simple, ad-hoc checks without schema validation

Quick Reference

  • Guard: isStandardSchema
  • Validate: standardValidate
  • Sync only: createSyncStandardValidator
  • Error: ValidationError

Inputs to Request

  • Schema library in use (Zod, Valibot, ArkType)
  • Throwing vs non-throwing validation
  • Desired error shape and handling

Resources

Weekly Installs
7
First Seen
Feb 10, 2026
Installed on
amp7
github-copilot7
codex7
kimi-cli7
gemini-cli7
opencode7