Skip to content
Back to skills

Input Validation

ASecurity

Validate and parse all untrusted input at system boundaries with schemas (zod, pydantic, class-validator, go-playground/validator).

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentstypescriptrustgobackendsecurity

Works with

  • cli

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill input-validation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Input Validation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Input Validation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-input-validation/badge)](https://www.skillsdirectory.com/skills/karthikrshet-input-validation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.