Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Input Validation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-input-validation)
---
name: input-validation
description: Validate and parse all untrusted input at system boundaries with schemas (zod, pydantic, class-validator, go-playground/validator).
tags: [core, security, backend]
---
# Input Validation
## When to use
- HTTP handlers, queue consumers, CLI args, file uploads, LLM outputs
## Procedure
1. Define a schema per boundary
2. Parse, do not just validate: produce typed data
3. Reject unknown fields where safe
4. Limit sizes and lengths
5. Return clear 4xx errors
## Checklist
- [ ] Every external input parsed
- [ ] Size limits set
- [ ] Errors do not leak internals
## Anti-patterns
- Trusting TypeScript types for runtime data
- Validating deep inside business logic