Defense-in-Depth-Validation

Implement multi-layer validation with entry checks, business logic, environment guards, and debug logging.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/slapglif/swe-agent --skill defense-in-depth-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Defense-in-Depth-Validation
Source: https://github.com/slapglif/swe-agent/tree/main/.swe/skills/defense-in-depth
Command: npx skills add https://github.com/slapglif/swe-agent --skill defense-in-depth-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents bugs caused by invalid data from recurring by enforcing validation at every layer data passes through. It moves beyond single-point fixes to make bugs structurally impossible, enhancing system robustness.

Core Features & Use Cases

  • Four Layers of Validation: Guides in implementing checks at entry points, business logic, environment guards, and debug instrumentation.
  • Structural Bug Prevention: Ensures that even if one validation is bypassed, subsequent layers will catch the invalid data.
  • Forensic Instrumentation: Includes debug logging to capture context for future investigations.
  • Use Case: After fixing a bug where an empty directory caused git init in the wrong place, use this skill to add validation at the project creation, workspace initialization, and git init command levels, plus environment guards for tests.

Quick Start

I've fixed a bug caused by invalid data. Use the Defense-in-Depth-Validation skill to make this bug structurally impossible.