write-endpoints
Pass
Audited by Gen Agent Trust Hub on Mar 7, 2026
Risk Level: SAFE
Full Analysis
- Input Validation Best Practices: The skill correctly instructs the use of Zod schemas for all request components, including bodies, queries, parameters, and headers. This ensures that applications built using these patterns maintain a strong security posture by validating all external input against a strict schema.
- SQL Injection Protections: The guide provides explicit instructions and code examples for preventing SQL injection when using D1 databases. It demonstrates the use of built-in validation utilities and parameterized filter builders to ensure database queries are constructed safely.
- Secure Error Handling: By utilizing specific exception classes for various HTTP status codes, the skill promotes standardized error handling. This practice helps avoid the accidental disclosure of sensitive system internals or stack traces to end-users.
Audit Metadata