verify-zod

Verify Zod-based validation patterns across backend DTOs and controllers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verifies that Zod-based validation patterns are consistently implemented across backend DTOs and controllers. It enforces the use of ZodValidationPipe, bans class-validator usage, ensures query DTO targets, and confirms that Pipe wiring is applied in controllers to prevent unvalidated requests.

Core Features & Use Cases

  • Enforces the ZodValidationPipe export and usage in all DTOs; prohibits class-validator decorators.
  • Ensures query DTOs declare targets: ['query'] and follow the standard Zod schema → inference → Pipe pipeline.
  • Validates controller wiring to ensure defined pipes are actually applied, preventing validation bypass.
  • Guides when to run: after adding/modifying DTOs or endpoints to maintain consistency.

Quick Start

Run this skill after adding or modifying DTOs or controller endpoints to verify Zod-based validation usage across your backend.

Frequently Asked Questions about verify-zod

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

FAQPage Schema
How do I enforce Zod validation in NestJS controllers and DTOs?

To enforce Zod validation in NestJS, apply the ZodValidationPipe to your controllers and DTOs. This ensures all incoming requests are validated against standard Zod schemas, prohibiting unvalidated data from bypassing the pipeline.

What is the best way to migrate NestJS DTOs from class-validator to Zod?

The best way to migrate is to replace class-validator decorators with Zod schemas and apply ZodValidationPipe. This approach verifies consistent query DTO targets and ensures pipes are actively wired in controllers to prevent validation bypass.

When should I run a Zod validation check on my backend codebase?

You should run a Zod validation check immediately after adding or modifying DTOs or controller endpoints. This verifies that changes align with the Zod-based validation architecture and ensures query DTOs declare targets correctly.

Does ZodValidationPipe work with query DTOs in NestJS?

Yes, ZodValidationPipe works with query DTOs by enforcing the declaration of targets: ['query']. It validates that query DTOs follow the standard Zod schema inference pipeline to maintain consistent validation architecture across modules.

Why is my NestJS controller bypassing Zod validation?

NestJS controllers bypass Zod validation when defined pipes are not actively wired to the endpoints. Implementing ZodValidationPipe verifies proper controller wiring and ensures query DTO targets are consistently applied to prevent unvalidated requests.