Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microck/defense-in-depth
Use when invalid data causes failures deep in execution, requiring validation at multiple system layers - validates at every layer data passes through to make bugs structurally impossible
Passed 16 of 21 test cases with the skill, and 4 of 21 without it.
and 23 more in the full report
13 fixed4 passed either way5 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
We recently suffered a bug where an uninitialized path parameter triggered an unintended command execution in production. We want to apply a standard 4-step bug fixing pattern. What four steps should we follow?
| Checked | Without skill | With skill |
|---|---|---|
| Outlines tracing data flow, mapping checkpoints, adding multi-layer validation, and testing each layer. | Missed | Passed |
| Specifies adding validation across entry, business logic, environment, and debug instrumentation layers. | Missed | Passed |
The instructions your model reads when the skill loads.
When you fix a bug caused by invalid data, adding validation at one place feels sufficient. But that single check can be bypassed by different code paths, refactoring, or mocks.
Core principle: Validate at EVERY layer data passes through. Make the bug structurally impossible.
Single validation: "We fixed the bug" Multiple layers: "We made the bug impossible"
Different layers catch different cases:
Purpose: Reject obviously invalid input at API boundary
function createProject(name: string, workingDirectory: string) {
if (!workingDirectory || workingDirectory.trim() === '') {
throw new Error('workingDirectory cannot be empty');
}
if (!existsSync(workingDirectory)) {
throw new Error(`workingDirectory does not exist: ${workingDirectory}`);
}
if (!statSync(workingDirectory).isDirectory()) {
throw new Error(`workingDirectory is not a directory: ${workingDirectory}`);
}
// ... proceed
}
test cases passed, vs 4 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.