validation
Define validation principles, input verification, business rule enforcement, and data integrity standards across all applications and services.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- validation
- author
- AI Business OS
- license
- MIT
- version
- 1.0.0
- category
- shared
- priority
- required
- description
- Define validation principles, input verification, business rule enforcement, and data integrity standards across all applications and services.
02 资源文件 1
- 参考文档README.md161 B
03 SKILL.md 正文
Validation
Purpose
This skill establishes validation standards to ensure all data, inputs, and business operations are accurate, consistent, secure, and compliant before processing.
Validation prevents invalid data from entering the system and enforces business rules consistently.
When to Use
Execute when:
- Designing APIs
- Building user interfaces
- Processing user input
- Implementing business logic
- Importing external data
- Integrating third-party services
Objectives
Ensure validation is:
- Accurate
- Consistent
- Predictable
- Secure
- Reusable
- Maintainable
Inputs
Expected inputs:
- Business Requirements
- API Specifications
- Data Models
- Business Rules
- Compliance Requirements
- Security Requirements
Validation Scope
Validate:
- User Input
- API Requests
- Configuration Files
- Uploaded Files
- Database Operations
- External Integrations
- Business Rules
Never trust external input.
Validation Types
Implement:
- Required Field Validation
- Type Validation
- Format Validation
- Range Validation
- Length Validation
- Pattern Validation
- Cross-field Validation
- Business Rule Validation
Choose the appropriate validation strategy for each use case.
Business Rule Validation
Ensure:
- Domain Rules
- Workflow Constraints
- State Transitions
- Permission Checks
- Duplicate Detection
- Referential Integrity
Business rules should remain centralized and reusable.
Error Reporting
Validation failures should include:
- Error Code
- Field Name
- Human-readable Message
- Validation Rule
- Suggested Resolution
Provide actionable feedback without exposing sensitive information.
Security
Protect against:
- SQL Injection
- Cross-site Scripting (XSS)
- Command Injection
- Path Traversal
- Malicious File Uploads
- Invalid Authentication Data
Perform validation on both client and server sides.
Validation Checklist
Before completion verify:
- All required fields validated
- Business rules enforced
- Error messages standardized
- Invalid input rejected
- Security validation implemented
- Tests completed
Failure Conditions
Stop and request clarification if:
- Validation rules are undefined
- Business rules conflict
- Data model is incomplete
- Security requirements are missing
- Error handling is unspecified
Outputs
Generate:
- Validation Rules
- Validation Checklist
- Business Rule Matrix
- Error Catalog
Rules
- Validate all external input.
- Perform server-side validation for every request.
- Keep validation logic centralized.
- Return consistent validation errors.
- Reject invalid data immediately.
Success Criteria
This skill succeeds when:
- invalid data is consistently rejected
- business rules are enforced
- data integrity is preserved
- security risks are reduced
- validation behavior is predictable
Related Skills
- testing
- security
- error-handling
- api-design
- database
Version History
| Version | Date | Description |
|---|---|---|
| 1.0.0 | 2026-07-10 | Initial release |
04 同仓库更多 Skills
rollback
Plan, validate, and execute safe rollback procedures to restore a stable system state when deployments introduce critical issues.
release-note
Create clear, concise, and stakeholder-friendly release notes that communicate new features, improvements, fixes, breaking changes, and operational guidance for each release.
monitoring
Continuously observe application health, performance, reliability, and business metrics after deployment to detect issues early and support operational excellence.
maintenance
Maintain, improve, and support production systems after release through continuous monitoring, issue resolution, updates, and operational excellence.
deployment
Plan, validate, and execute application deployments safely and consistently across environments while minimizing downtime and deployment risk.
changelog
Maintain a structured, accurate, and versioned changelog that records all notable changes made to the project across releases.