Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
Claude Skills Maintainers avatar

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-skills

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars196
Last updatedJuly 25, 2026
Repositorysecondsky/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

  1. Entry Point Validation - Reject obviously invalid input at API boundary
  2. Business Logic Validation - Ensure data makes sense for operations
  3. Environment Guards - Prevent dangerous operations in specific contexts
  4. 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

Related skills

Securityappsecaudit

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.