Swiss Cheese Validation

Swiss Cheese Validation is a skill for Claude Code from reggiechan74/cc-plugins. It costs 64 tokens per session (1,041 once invoked), scanned A, original, MIT.

A check for whether multiple software critics catch different kinds of mistakes rather than rejecting the same work. It is based on the Swiss cheese model, where separate layers of review should cover different gaps.

In plain words
What is it for?
Use it to compare rejection patterns, calculate overlap and independence between critics, and flag weak separation between review roles.
Why use it?
It reveals when review layers overlap too much and leave some errors without independent protection.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the code-coherence plugin — 5 skills, 7 agents shipped together

Good fit Use it to compare rejection patterns, calculate overlap and independence between critics, and flag weak separation between review roles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/reggiechan74/cc-plugins/swiss-cheese-validation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add reggiechan74/cc-plugins --skill swiss-cheese-validation
Clone the repo
git clone --depth 1 https://github.com/reggiechan74/cc-plugins

Made for: Claude Code.

Or install code-coherence, the plugin that ships this one along with the rest of its 5 skills, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Swiss Cheese Validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/reggiechan74/cc-plugins/swiss-cheese-validation.svg)](https://agentmods.dev/skills/reggiechan74/cc-plugins/swiss-cheese-validation)
Your own site
<a href="https://agentmods.dev/skills/reggiechan74/cc-plugins/swiss-cheese-validation"><img src="https://agentmods.dev/badge/skills/reggiechan74/cc-plugins/swiss-cheese-validation.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,041 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.01041
Opus 5 $0.00032 $0.00521
Sonnet 5 $0.00013 $0.00208
Haiku 4.5 $0.00006 $0.00104

Measured 7d ago against content hash fc46fb78f5be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

Swiss Cheese Validation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

code-coherence/skills/swiss-cheese-validation/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Swiss Cheese Validation: Verify Critic Independence

Purpose

Verify that multiple critic layers have orthogonal failure modes, ensuring the Swiss cheese model is working correctly. Measure overlap in critic rejections and warn if critics catch the same errors.

Theory

The Swiss cheese model achieves reliability through misaligned holes:

  • Each critic has failure modes (errors it misses)
  • Holes don't align across critics
  • Errors caught by different critics don't overlap significantly

Target: Independence score > 0.85 (less than 15% overlap)

Validation Process

Measure Overlap

Analyze rejection patterns across sessions:

code_rejections = sessions_where_code_critic_vetoed
security_rejections = sessions_where_security_critic_vetoed

overlap = code_rejections ∩ security_rejections
union = code_rejections ∪ security_rejections

independence_score = 1 - (|overlap| / |union|)

Interpretation:

  • Score > 0.90: Excellent independence (orthogonal)
  • Score 0.80-0.90: Good independence (acceptable)
  • Score < 0.80: Poor independence (critics overlapping)

Expected Results

From research paper (522 sessions):

Critic Pair Overlap Independence
Code vs Security 2.3% 0.977 ✓
Code vs Domain 3.1% 0.969 ✓
Security vs Domain 0.8% 0.992 ✓

Warning Indicators

High overlap detected when:

  • Same sessions rejected by multiple critics
  • Similar rejection reasons across critics
  • Independence score < 0.80

Causes:

  • Critics using same model/provider (cognitive monoculture)
  • Similar training data
  • Overlapping validation logic

Solutions:

  • Use different model providers per critic
  • Adjust critic specializations
  • Review critic prompts for duplication

Configuration

Layer Definition

Default (hardcoded):

layers:
  - code-critic
  - security-critic
  - domain-critic

Custom (user-configured):

layers:
  - code-critic
  - security-critic
  - financial-critic
  - performance-critic

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 161 lines · 64 tokens per session scan A fc46fb78f5be

Subscribe to this mod's changes

Swiss Cheese Validation is a skill published in the GitHub repository reggiechan74/cc-plugins (7 stars, last pushed 3mo ago), licensed MIT. It adds 64 tokens to every session and 1,041 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

neuron-evaluation-engineer

Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…

neuron-core/neuron-ai · 77 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens

skill-benchmark

Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.

HoangNguyen0403/agent-skills-standard · 16 tokens