A specialized tool that automatically converts TypeScript interfaces and types into production-ready Zod or Yup validation schemas.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install validator-gen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install validator-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Validator Gen solves the common problem of maintaining separate TypeScript types and runtime validation schemas. By leveraging this tool within your Openclaw Skills library, you can ensure that your data validation always matches your static types without the manual overhead of writing schemas twice. It provides a bridge between compile-time safety and runtime integrity.
The skill intelligently analyzes your TypeScript source to generate schema code that handles nested objects, arrays, and union types. It goes beyond simple mapping by applying sensible constraints to common data formats like emails and URLs, ensuring your application remains secure and your data remains clean.
To use Validator Gen, ensure you are running Node.js 18 or higher and have an OpenAI API key configured in your environment variables. No permanent installation is required as it runs via npx.
export OPENAI_API_KEY=sk-...
npx ai-validator src/types/your-file.ts
The tool processes TypeScript source code and generates schema definitions. The following table describes the mapping logic:
| TypeScript Construct | Generated Schema Equivalent |
|---|---|
| Interface/Type Alias | zod.object() or yup.object() |
Optional Property (?) |
.optional() or .notRequired() |
| String Patterns | .email(), .url(), or .min()/.max() |
| Nested Objects | Recursive schema generation |
| Arrays | .array() validation |
Loading
A specialized code generator that automates the creation of secure and efficient file upload handlers for various storage backends.

A streamlined developer tool that instantly converts JSON objects and API payloads into clean, production-ready TypeScript interfaces.

An intelligent CLI tool that generates perfectly tailored tsconfig.json files based on your specific project description.

An AI-driven CLI tool that transforms brand colors into fully functional, accessible design systems and CSS variables.

A CLI tool that automatically generates optimized Vercel configuration files based on your project framework and structure.

Identify and fix Core Web Vitals bottlenecks using AI-driven code analysis and prioritized optimization reports.








































