input-validation

Installation
SKILL.md

Input Validation Skill

Purpose

Ensure all user-supplied and external data is properly validated before processing and all output is properly encoded, preventing injection attacks (XSS, SQLi, command injection, path traversal) across all Hack23 projects.

Rules

Input Validation

MUST:

  • Validate ALL input at the point of entry (server-side validation is mandatory)
  • Use allowlist validation (define what IS allowed, not what ISN'T)
  • Validate data type, length, format, and range
  • Reject invalid input with clear error messages (without exposing system details)
  • Sanitize file names and paths to prevent path traversal
  • Validate content type for file uploads
  • Apply consistent validation across all API endpoints
Related skills
Installs
23
Repository
hack23/homepage
GitHub Stars
6
First Seen
Mar 1, 2026