# Global Validation

> Implement comprehensive input validation with server-side security, client-side UX feedback, sanitization, and consistent error messages. Use this skill when validating user input in forms, API endpoints, or data processing. When writing validation rules for data types, formats, ranges, or required fields. When sanitizing input to prevent injection attacks (SQL, XSS, command injection). When providing field-specific error messages to users. When implementing validation at system boundaries like API endpoints or background jobs.

- Skill: `majiayu000/global-validation-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/global-validation-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/global-validation-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/global-validation-2

---


## When to use this skill:

- When validating user input from forms or UI
- When validating data at API endpoints
- When implementing server-side validation (required for security)
- When adding client-side validation for better UX
- When writing validation rules for data types and formats
- When checking ranges, lengths, or required fields
- When sanitizing input to prevent SQL injection or XSS
- When creating field-specific validation error messages
- When using allowlists instead of blocklists for validation
- When validating business rules (sufficient balance, valid dates)
- When ensuring consistent validation across all entry points
- When reviewing code for input sanitization and security

# Global Validation

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](../../../agent-os/standards/global/validation.md)

