Validate at every layer data passes through to make bugs impossible
Detected risks:
The Defense-in-Depth Validation skill provides a method for ensuring data integrity at every stage of execution by applying validation at multiple system layers. The skill is designed to address the problem of invalid data causing bugs deep in execution, where a single validation point might not be enough. It ensures that each layer of a system is protected by checks, preventing bugs from slipping through various code paths, refactorings, or mocked environments. This approach leads to a more robust and resilient system where validation is enforced at every level of operation, from entry points to business logic and environmental guards.
You should use this skill when invalid data causes failures deep in execution, requiring validation at multiple layers of the system to prevent bugs.
This skill is compatible with all programming languages.
The validation layers need to be implemented at the entry points, within business logic, as environment guards, and with debug instrumentation. These layers ensure data is validated at every stage of execution.
Skipping a layer increases the risk of bugs slipping through different code paths or being missed by mocks and tests, reducing the overall robustness of the system.
Quick Setup:
.claude/skills/Repository
mrgoonie/claudekit-skills