Enforces strict TypeScript-based input validation for API requests and video data structures to ensure type safety and error-free processing.
The spekka-global-validation skill provides Claude Code with specialized guidance for implementing robust server-side validation within Express.js environments. By utilizing TypeScript type guards and interface-driven checks, this skill ensures that incoming data—specifically for video generation requests like RenderRequest and RecapBook—is thoroughly sanitized at the API boundary. It promotes a 'fail early' architecture, generating structured, field-specific error responses that prevent runtime crashes and maintain data integrity across complex video rendering pipelines.
主な機能
01TypeScript type guard implementation
02Express request body validation logic
030 GitHub stars
04Server-side boundary enforcement
05Structured validation error formatting
06Domain-specific video metadata checks
ユースケース
01Implementing secure API boundaries for server-to-server communication
02Validating RenderRequest fields like month, year, and book arrays
03Generating reusable TypeScript guards for complex video data structures