What problem does it solve?
This Skill prevents security vulnerabilities and ensures data integrity by implementing comprehensive input validation on both client and server sides, with clear error messages, protecting your application from malicious input and ensuring data quality.
Core Features & Use Cases
- Dual-Layer Validation: Implement both client-side validation for immediate user feedback and critical server-side validation for security.
- Security & Integrity: Sanitize input to prevent injection attacks (SQL, XSS) and enforce business rules and data types.
- Clear Error Messages: Provide field-specific, user-friendly error messages for invalid input.
- Use Case: When creating a new user registration form, this skill guides the AI to implement client-side validation for immediate feedback (e.g., email format), and critical server-side validation to sanitize inputs, check for unique email addresses, and enforce password complexity.
Quick Start
Add server-side validation to the 'updateUserProfile' API endpoint, ensuring the 'email' field is a valid format, the 'age' field is a positive integer, and all inputs are sanitized.