global-validation

TorbenMerrald's avatarfrom TorbenMerrald

Implement comprehensive input validation on both client and server sides with clear error feedback. Use this skill when validating user input in forms, API endpoints, or data processing. Use this skill when implementing server-side validation to ensure data integrity and security. Use this skill when adding client-side validation for immediate user feedback. Use this skill when sanitizing input to prevent injection attacks. Use this skill when validating data types, formats, ranges, and business rules. Use this skill when providing specific, actionable error messages for validation failures. Use this skill when applying validation consistently across all application entry points.

⭐1stars🔀0forks📁View on GitHub🕐Updated Jan 9, 2026

When & Why to Use This Skill

This Claude skill facilitates the implementation of comprehensive, multi-layered input validation for both client and server-side applications. It focuses on ensuring data integrity, enhancing application security against injection attacks, and providing a seamless user experience through clear, actionable error feedback. By standardizing validation logic, it helps developers build robust, secure, and user-friendly software architectures.

Use Cases

  • API Security: Implementing strict server-side validation for API endpoints to ensure data types, formats, and ranges meet security standards before processing.
  • User Experience Enhancement: Adding real-time client-side validation to web forms to provide users with immediate feedback and reduce form submission errors.
  • Injection Prevention: Sanitizing user inputs using allowlists and strict filtering to protect applications from SQL injection, XSS, and other common web vulnerabilities.
  • Business Logic Enforcement: Applying consistent validation for complex business rules, such as date constraints or financial balance requirements, across all application entry points.
  • Data Integrity: Ensuring that data entering the system is clean, well-formatted, and adheres to the required schema to prevent downstream processing failures.
nameGlobal Validation
descriptionImplement comprehensive input validation on both client and server sides with clear error feedback. Use this skill when validating user input in forms, API endpoints, or data processing. Use this skill when implementing server-side validation to ensure data integrity and security. Use this skill when adding client-side validation for immediate user feedback. Use this skill when sanitizing input to prevent injection attacks. Use this skill when validating data types, formats, ranges, and business rules. Use this skill when providing specific, actionable error messages for validation failures. Use this skill when applying validation consistently across all application entry points.

Global Validation

When to use this skill

  • When implementing form validation on the client side
  • When implementing server-side validation for API endpoints or data processing
  • When validating data types, formats, ranges, and required fields
  • When providing clear, field-specific validation error messages
  • When sanitizing user input to prevent SQL injection, XSS, or other attacks
  • When using allowlists to define acceptable input rather than blocklists
  • When validating business rules like date constraints or balance requirements
  • When ensuring validation is applied consistently at all entry points
  • When failing early by rejecting invalid data before processing

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle global validation.

Instructions

For details, refer to the information provided in this file: global validation