Skip to content
FunCoding

input-validation

Validate and constrain untrusted input at the boundary. Use on any handler that accepts external data.

Star
759
Category
Other
License
MIT
Last commit
Jul 15, 2026

skills/input-validation/SKILL.md

View on GitHub

Input Validation

Validate at the edge, before the data touches logic or storage.

  • Schema — type, required fields, allowed values. Reject unknown fields rather than ignoring them.
  • Bounds — string length, number ranges, array size. An unbounded input is a DoS and a memory bomb.
  • Format — emails, UUIDs, dates parsed and re-validated, not trusted as strings.
  • Files — size limit, type allowlist (check content, not just extension), no path traversal in names.
  • Reject with a clear 4xx and a message that says what's wrong — without leaking internals. Never trust "it comes from our own frontend". The request can come from anywhere.

Similar Skills

software-factory

MAmattpocock/skills336k4,217 new stars in the last 7 days

claude-handoff

MAmattpocock/skills336k4,217 new stars in the last 7 days

agent-payment-x402

AFaffaan-m/ECC314k3,503 new stars in the last 7 days

agent-self-evaluation

AFaffaan-m/ECC314k3,503 new stars in the last 7 days

bengali-nlp

AFaffaan-m/ECC314k3,503 new stars in the last 7 days

ponytail-gain

DIDietrichGebert/ponytail202k4,226 new stars in the last 7 days