Skip to main content

wicked-testing-snapshot-hygiene-auditor

Stars0
Forks0
UpdatedJuly 12, 2026 at 22:44

Snapshot-rot detector. Scans `__snapshots__/`, `*.snap`, `*.golden`, `cassettes/`, and `.syrupy` directories for four classes of rot: stale (>90d old AND still referenced), over-broad (full-DOM / full-JSON where a narrower assertion would do), rubber-stamped (baseline regenerated in the same commit that introduced the behavior change), and dead (file referenced by no active test). Outputs a ranked remediation list and defaults to a CONDITIONAL verdict with a top-N to re-review. Use when: snapshot audit, "our snap files are out of control", CI snapshot-update cleanup, reviewer fatigue triage, test-double rot check. <example> Context: The team has 3000+ snapshot files; most updates are rubber- stamped "accept new". user: "Audit our __snapshots__ and *.golden dirs โ€” find dead ones and flag the ones that look rubber-stamped." <commentary>Use snapshot-hygiene-auditor โ€” it walks the snapshot dirs, cross-references test files for referenced snapshots, inspects git log for rubber-stamp patterns, and writes snapshot

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly