validation
Runtime Zod validation schemas, business bounds, date ordering, and pagination limits.
Skill by Mihir-Rabari
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.
About
Reviews
Write a reviewNo 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
- Repository
- github.com/Mihir-Rabari/baseline
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Mihir-Rabari
- 0.561score
agent
Mihir-Rabari
AI chat agent that acts as the signed-in user, tool registry, staged write actions with confirmation, permission-filtered tools, and prompt-injection rules.
SkillAFreshness: AClaude Code +9 - 0.561score
design
Mihir-Rabari
Visual design law for the generated app — screen structure, colour tokens, typography, icons, spacing, and the states every screen owes the user.
SkillAFreshness: AClaude Code +9 - 0.558score
authentication
Mihir-Rabari
Password hashing (scrypt), server-side session tokens, HTTP-only cookies, and auth events.
SkillAFreshness: AClaude Code +9 - 0.558score
architecture
Mihir-Rabari
Monorepo package boundaries, layering rules, and extension patterns.
SkillAFreshness: AClaude Code +9 - 0.558score
api
Mihir-Rabari
Fastify route development, Zod type providers, OpenAPI documentation, structured logging, and error responses.
SkillAFreshness: AClaude Code +9 - 0.558score
database
Mihir-Rabari
PostgreSQL schema conventions, Drizzle ORM, migrations, deterministic seeding, and database integrity.
SkillAFreshness: AClaude Code +9
Cite this page
validation skill. Agent Mart. https://agentmart.dev/skills/mihir-rabari-validation (last updated 2026-10-24)