What problem does it solve?
This Skill prevents bugs and security issues caused by treating untrusted inputs as trusted data, by enforcing schema-based validation at every boundary before business logic uses values.
Core Features & Use Cases
- Schema-first validation at trust boundaries: Parse and validate HTTP bodies, query params, queue payloads, env vars at startup, file uploads, and third-party API responses.
- Typed guarantees from schemas: Derive types directly from the schema so the code can trust validated shapes.
- Structured field-level errors: Return stable, client-actionable error details (including per-field paths and codes) instead of generic failures.
- Resource and format safety: Enforce size limits, avoid hand-rolled regex, and validate file types by sniffing bytes rather than trusting headers.
Quick Start
Use forge-validation when implementing a new HTTP endpoint or message/queue handler so every external value is schema-parsed at the entry point and returns structured 400 responses on failure.