Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jakubciszakv0.6.0MITIn 1 marketplace
No single defense layer is perfect — stack enough imperfect ones that the holes never align. Deterministic guards scan the diff pre-LLM; detected PostToolUse checks catch broken edits immediately; commits are gated on the fast layers and on a multi-lens review receipt (warn, ask, or block) both inside Claude Code and, through a native pre-commit hook, in the terminal; the Stop gate runs full checks and requires a hook-confirmed receipt bound to the exact worktree. Native skills, layered config, commit, completion, guard, and review hooks, with an optional self-contained portable project runtime.
Claude hands work to one, or you mention it with @.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
swiss-cheese, code-quality, code-review, layered-defense, agentic-coding, adr, quality-gates
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Layered defense (Swiss Cheese model) for agentic coding in Claude Code.
Each quality gate is a slice of cheese with holes. Defects ship only when holes align across all slices — so the plugin stacks cheap, diverse, imperfect layers and keeps their holes from lining up. Two design rules govern everything:
description until a task matches it. Rule catalogs, vendor lists and patterns live in references/ and load on demand. The costliest bytes are always-on descriptions, so there is one review-orchestrator skill instead of seven auto-invoked review agents./plugin marketplace add jakubciszak/code-quality-confidence
/plugin install swiss-cheese@code-quality-confidence
Then in your project:
/swiss-cheese:init # probe repo + detect runners, choose layers, write the config
/swiss-cheese:init --portable # also vendor the full team runtime into the project
/swiss-cheese:intent # reconstruct a ticket into a contract before coding
/swiss-cheese:review # layered multi-lens review of your current diff
/swiss-cheese:loop <task> # work autonomously, passing every layer in a loop
/swiss-cheese:pair # devil's-advocate questions on your change
commands/)Interactive entry points are skills. The consciously-invoked ones set disable-model-invocation: true so they never fire on their own.
init — probes with repo_probe.py, detects full task commands with runner_detector.py, and detects cheap file-scoped checks with hook_detector.py. It enables edit, commit, completion, and review gates and proposes high_risk_paths plus a permissions.deny stanza. Normal mode leaves .claude/settings.json untouched; --portable delegates a scoped hook merge to the deterministic installer.review — orchestrator: diff_snapshot → run_guards → select_agents (a deterministic lens floor) → parallel lens subagents on the redacted diff → one deduplicated report plus a hook-confirmed receipt bound to the exact worktree.loop — implement → check_layers.py --fast → guards → review → fix → repeat, bounded by loop.max_iterations. Never weakens a layer to pass it.intent (Haiku) — reconstructs intent, acceptance criteria, test plan, scope guards, risk class, and a ready AI-disclosure block. Stops; writes no code.pair (Sonnet) — a numbered list of hard questions that try to break the approach; read-only, so it physically can't write code.layer, status, knowledge, audit — manage the stack, render it, wire task sources, grade the knowledge layers.The plugin ships its hooks; /swiss-cheese:init only activates them through .swiss-cheese/config.json:
PostToolUse runs the cheap on_edit command detected for the edited extension.PreToolUse gates git commit on two independent slices: the fast scripted layers (commit_gate) and a complete multi-lens review receipt (review_gate).UserPromptSubmit snapshots HEAD plus staged, unstaged, and untracked contents.Stop stays silent for an unchanged turn. After a real change, it runs all scripted layers and requires a review receipt for that exact worktree hash.SubagentStop records completion of each selected review lens. review_receipt.py finalize succeeds only when every selected lens has matching hook evidence and the worktree has not changed.This means an ordinary question in an already-dirty repository does not wake the expensive checks. A file edit or commit does.
The review command is /swiss-cheese:review in plugin mode and /swiss-cheese-review in portable mode.
review_gate decides what happens when a commit carries changes that no review receipt covers. Every gate speaks the same four modes:
| mode | in Claude Code | in a terminal |
|---|---|---|
off | silent no-op | silent no-op |
warn | reminder on stderr | reminder, commit proceeds |
ask | a PreToolUse ask decision — Claude Code prompts before the commit runs | a question on /dev/tty; with review_gate_command set, "run it now" is one of the answers |
block | exit 2, the commit never runs | commit refused; with review_gate_command set the review runs first and the receipt is re-checked |
commit_gate reads the same modes for the fast scripted layers, so "always ask" and "always enforce" are one setting per slice. The strictest triggered slice wins; an unrecognized mode degrades to off, never to block.
npx claudepluginhub jakubciszak/code-quality-confidence --plugin swiss-cheeseBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground