Claude Code Plugins

Community-maintained marketplace

Feedback

validation-schema-generator

@projectquestorg/AgileFlow
3
0

Generate input validation schemas for Joi, Zod, Yup, or Pydantic

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name validation-schema-generator
description Generate input validation schemas for Joi, Zod, Yup, or Pydantic

validation-schema-generator

Generate input validation schemas (Joi, Zod, Yup).

Activation Keywords

  • "validation", "schema", "joi", "zod", "yup", "validate input"

When to Use

  • Creating request body validation
  • Form validation schemas
  • Input sanitization and validation

What This Does

Generates validation schemas for popular libraries:

  • Joi (Node.js)
  • Zod (TypeScript)
  • Yup (React forms)
  • Pydantic (Python)

Includes:

  • Required/optional fields
  • Type validation (string, number, email, etc.)
  • Length constraints (min, max)
  • Pattern validation (regex)
  • Custom validators
  • Error messages (user-friendly)
  • Transformation rules (trim, lowercase, etc.)

Output

Validation schema code ready for integration

Example Activation

User: "Create Zod validation for login request" Skill: Generates:

import { z } from 'zod';

export const loginRequestSchema = z.object({
  email: z
    .string('Email is required')
    .email('Invalid email format')
    .toLowerCase()
    .trim(),
  password: z
    .string('Password is required')
    .min(8, 'Password must be at least 8 characters')
    .regex(/[A-Z]/, 'Password must contain uppercase')
    .regex(/[0-9]/, 'Password must contain number'),
});

export type LoginRequest = z.infer<typeof loginRequestSchema>;

// Usage
const validateLogin = (data: unknown) => {
  return loginRequestSchema.parse(data);
};

Also generates Joi, Yup, Pydantic versions.