assertion-guard
by simota · ★ 1 · updated 5 days ago
Catches edits that weaken tests to make them pass: assertions removed, expectations loosened or rewritten, tests skipped, exceptions swallowed; asks Claude for the reason beside the tool's result and keeps a band until the person has checked it
Install
/plugin marketplace add simota/claude-mods/plugin install assertion-guard@simota-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.starttool.callcommand.runui.render- API calls
$.clock.now$.command.register$.fs.read$.prompt.fill$.state.get$.state.set$.ui.resolve$.ui.toast- Draws
AbovePrompt- Can see
every tool call- Reach
- level 1 of 3 writes the prompt boxreads filesreads mod statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/simota/claude-mods
- Path in repo
mods/assertion-guard- Source commit
1e9a794the exact code the scan read- Author
- @simota
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from simota/claude-mods
agent-pane
simota/claude-mods
Live pane of the session's subagents: running ones with elapsed time, finished ones with result and duration
artifact-shelf
simota/claude-mods
A shelf of what the sessions made: CSV, PDF, HTML, video, audio, images, patches and archives, each tied to the call that made it and the request it answered; /shelf finds them by kind, word, place or time
browser-cam
simota/claude-mods
Live pane of the browser Claude drives: the latest screenshot from Claude in Chrome, the page URL and the recent actions
ci-rehearsal
simota/claude-mods
CI before the push, in one press: the band above the prompt runs the push workflows with runthrough, shows the failing job and step with the count, and puts the failures and their log tails into the prompt for Claude to fix when asked; /ci lists every job
design-duel
simota/claude-mods
A design contest in one command: /design-duel has claude, codex and agy each propose a design alone (read-only), then score each other's proposals under anonymous labels with their strongest objection; the mod tallies the scores, the band names the winner, and the winning design goes into the prompt for Claude to build when asked
doc-preview
simota/claude-mods
Previews the documents Claude writes in docview: the band above the prompt offers the Markdown, diagram, data or HTML file a turn changed, opens it in the browser at the edited line, and the open tab follows later edits by itself; /docview lists them
done-gate
simota/claude-mods
Flags unverified edits, stops repeated failing commands, and blocks git --no-verify
fog-map
simota/claude-mods
Exploration map: the repository as a tree under fog, cleared where Claude read, marked where it edited, made a file or hit an error, with what the edits may have broken unseen; /map opens it
hit-rate
simota/claude-mods
Gives each finding of done-gate, assertion-guard, self-audit and zukan a later verdict from what the session did next, keeps each rule's precision across sessions, and names the rules loopback should stop feeding; off by default
image-preview
simota/claude-mods
Thumbnails of the images a session writes, reads or generates: under the tool's row in the terminal, and in an /images pane
journey-trace
simota/claude-mods
Records what Claude does in the browser (pages opened, clicks, typing, keys, form fills) and the states expected along the way as a recipe to replay; /journey turns it into a bug report's steps in Markdown or a Playwright test draft
kachi
simota/claude-mods
When a check you broke turns green after a real fix, the band above the prompt sweeps green once with a short click, and the result row keeps the score; silent the rest of the time but for one dim line on a check's first red