
Defense In Depth Validation
- 196 repo stars
- Updated July 25, 2026
- secondsky/claude-skills
Validate data at every layer it passes through to make invalid-data bugs impossible, hardening against CSRF and XSS.
About
A skill for validating data at every layer it passes through to make whole classes of bugs impossible. Developers use it when invalid data causes failures deep in execution and validation is needed at multiple system layers for defense in depth.
- Multi-layer validation
- Make bugs impossible
- Defense in depth
- CSRF/XSS hardening
Defense In Depth Validation by the numbers
- Data as of Jul 28, 2026 (Skillselion catalog sync)
/plugin marketplace add secondsky/claude-skills/plugin install defense-in-depth-validation@claude-skillsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| repo stars | ★ 196 |
|---|---|
| Last updated | July 25, 2026 |
| Repository | secondsky/claude-skills ↗ |
What it does
Validate data at every layer it passes through to make invalid-data bugs impossible, hardening against CSRF and XSS.
README.md
Defense-in-Depth Validation Skill
Validate at every layer data passes through to make bugs structurally impossible.
Overview
This skill teaches adding validation at multiple system layers instead of a single checkpoint. By validating at entry points, business logic, environment guards, and with debug instrumentation, bugs become impossible to reproduce rather than just "fixed."
The Four Layers
- Entry Point Validation - Reject obviously invalid input at API boundary
- Business Logic Validation - Ensure data makes sense for operations
- Environment Guards - Prevent dangerous operations in specific contexts
- Debug Instrumentation - Capture context for forensics
When to Use
- Invalid data causes failures deep in execution
- Bug fix required at multiple system layers
- Single validation point proves insufficient
- Need to make bugs structurally impossible
- Refactoring code paths that bypass existing checks
Key Insight
Single validation: "We fixed the bug" Multiple layers: "We made the bug impossible"
Different layers catch different cases - entry validation catches most bugs, business logic catches edge cases, environment guards prevent context-specific dangers.
Auto-Trigger Keywords
- data validation
- input sanitization
- defense in depth
- bug prevention
- layer validation
- structural bugs
- validation patterns
- security boundaries
Source
Adapted from mrgoonie/claudekit-skills