Review snapshot test diffs and update them intentionally, never blindly accepting all
Scanned 9/3/2026
Install to Claude Code
npx -y skills add black141312/ada --skill snapshot-update --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Snapshot Update?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/black141312-snapshot-update)More formats (shields.io, HTML) on the badges page.
---
name: snapshot-update
description: Review snapshot test diffs and update them intentionally, never blindly accepting all
category: testing
---
# Snapshot Update
Use when snapshot tests fail after a change and you need to decide which diffs are intended versus regressions.
1. Run the snapshot tests and read each failing diff in full before touching the snapshot files.
2. For every diff, decide deliberately: is this the change I intended, or did I break something I didn't mean to?
3. Fix the code for any unintended diff; only update the snapshot for diffs that reflect intended behavior.
4. Update accepted snapshots (e.g. `--update`/`-u`) and re-run to confirm the suite is green.
5. Open the snapshot file changes in the diff and review them like any other code change before committing.
6. Commit the snapshot updates alongside the code change that justifies them, with a message explaining why.
## Rules
- Never run a blanket "update all snapshots" without reading every diff — that turns the test into a rubber stamp.
- A snapshot diff you can't explain is a regression until proven otherwise; investigate, don't accept.
- Keep snapshots small and focused; giant snapshots hide meaningful diffs in noise — prefer targeted assertions for logic.
- Commit snapshot updates with the change that caused them, never as a separate "fix snapshots" cleanup later.
- Scrub nondeterministic values (timestamps, ids, paths) from snapshots so they don't churn on every run.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!