Skip to content
Agentmart
Submit a tool
This entry duplicates validation, which is the one we list in search.

validation

Runtime Zod validation schemas, business bounds, date ordering, and pagination limits.

Skill by Mihir-Rabari

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mihir-rabari-validation

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Runtime Zod validation schemas, business bounds, date ordering, and pagination limits.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
validation
Description
Runtime Zod validation schemas, business bounds, date ordering, and pagination limits.
License
MIT
Instructions
27 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Validation Skill

## 1. When to Use
Use this skill when defining Zod runtime schemas, validating API inputs, enforcing numeric bounds, enforcing date constraints, or parsing query parameters.

## 2. Business Constraint Rules
- **Identifiers**: Validate UUID format using `z.string().uuid()` (`UuidSchema`).
- **Emails**: Validate and normalize lowercase: `z.string().trim().email().toLowerCase()`.
- **Strings**: Reject empty or whitespace-only strings with `z.string().trim().min(1)`.
- **Passwords**: Enforce minimum length of 8 characters (`minPasswordLength`).
- **Dates**:
  - Birth dates cannot be in the future.
  - End dates must be greater than or equal to start dates.
  - Expiration dates must follow creation dates.
- **Pagination**:
  - Always enforce bounded limits (default: 20, max: 100).
  - Page numbers must be positive integers (`z.coerce.number().int().positive()`).
- **File Uploads**: Enforce strict file size limits and MIME type allowlists before storage processing.

## 3. Mandatory Testing Expectations
Every validation schema must include tests for:
- Minimum and maximum boundary values.
- Empty, null, and missing required fields.
- Malformed inputs (invalid UUID strings, non-email formats).
- Logical business violations (e.g. end date preceding start date).

From Mihir-Rabari/baseline, MIT.

Signals

Stars
0
Forks
0
Open issues
1
Last commit (this folder)
Oct 3, 2026 (25 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from Mihir-Rabari

Cite this page

validation skill. Agent Mart. https://agentmart.dev/skills/mihir-rabari-validation (last updated 2026-10-24)