Skip to main content

wicked-testing-snapshot-hygiene-auditor

星标0
分支0
更新时间2026年7月12日 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

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly