What problem does it solve?
Fixing a bug with a single validation point often leaves vulnerabilities that can be bypassed by other code paths or future refactoring, leading to recurring issues. This skill enforces a multi-layered validation strategy, ensuring data is validated at every point it passes through the system (entry, business logic, environment), making bugs structurally impossible and significantly increasing system robustness.
Core Features & Use Cases
- Multi-Layered Validation: Applies validation at entry points, business logic, and environment guards.
- Structural Bug Prevention: Makes entire classes of bugs impossible by validating data at every system layer.
- Enhanced Robustness: Significantly increases the resilience of the system against invalid data.
- Use Case: After fixing a bug caused by invalid input, use this skill to implement defense-in-depth, adding validation at the API entry, within the business logic, and as environment guards, ensuring the bug cannot recur.
Quick Start
Use the defense-in-depth skill to add robust validation to the 'user-input-processor' module.