Add Validation.prompt
# Add Input Validation
Implement comprehensive input validation to prevent security vulnerabilities and data corruption.
## Validation Layers
1. **Schema Validation**: Structure and types
2. **Business Rules**: Domain-specific constraints
3. **Sanitization**: Remove malicious content
4. **Format Validation**: Email, phone, etc.
## Using Joi/Zodwhen to use it
Community prompt sourced from the open-source GitHub repo AmadeusITGroup/ai-primitives-hub (Apache-2.0). A "Add Validation.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
AmadeusITGroup/ai-primitives-hub · Apache-2.0
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar