Skip to content
Back to skills

Snapshot Update

ASecurity

Review snapshot test diffs and update them intentionally, never blindly accepting all

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentsgotesting

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add black141312/ada --skill snapshot-update --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Snapshot Update?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Snapshot Update
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/black141312-snapshot-update/badge)](https://www.skillsdirectory.com/skills/black141312-snapshot-update)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.