global-validation
Implement server-side validation with allowlists, specific error messages, type checking, and sanitization to prevent security vulnerabilities and ensure data integrity. Use this skill when creating or editing form request classes, when validating API inputs, when implementing validation rules in controllers or services, when writing client-side validation for user experience, when sanitizing user input to prevent injection attacks, when validating business rules, when implementing error message display, or when ensuring consistent validation across all application entry points.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
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.
When to use this skill
- When creating form request classes in
app/Http/Requests/for validation logic - When implementing validation rules in controllers, services, or API endpoints
- When validating user input from web forms or API requests
- When writing client-side validation for immediate user feedback (while ensuring server-side validation)
- When implementing allowlist-based validation (defining what's allowed)
- When sanitizing user input to prevent SQL injection, XSS, or command injection
- When creating specific, actionable error messages for validation failures
- When validating data types, formats, ranges, and required fields
- When implementing business rule validation (e.g., sufficient balance, valid date ranges)
- When ensuring consistent validation across web forms, API endpoints, and background jobs
- When validating file uploads, sizes, and formats
- When implementing custom validation rules or validators
Instructions
For details, refer to the information provided in this file: global validation
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!