Skip to content
Back to skills

Snapshot Update

ASecurity

Reviews and selectively updates outdated Jest/Vitest snapshots

  • 10 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 27, 2026
data-aibash

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add berkcangumusisik/claude-code-practices --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/berkcangumusisik-snapshot-update/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-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: Reviews and selectively updates outdated Jest/Vitest snapshots
user-invocable: true
allowed-tools: Bash Read Edit
effort: low
---

## Update Snapshots

1. Find outdated snapshots:
```bash
npx jest --updateSnapshot --dry-run 2>/dev/null || bun test --update-snapshots --dry-run 2>/dev/null || echo "Run manually"
```

2. For each snapshot that would change:
   - Show the diff (old vs new)
   - Explain what component/output changed
   - Classify: intentional UI change vs potential regression

3. Ask the user:
   - Update all? (if all changes are clearly intentional)
   - Review each one? (if any look suspicious)

4. On confirmation, update snapshots:
```bash
npx jest --updateSnapshot
```

5. List what was updated and flag any that looked suspicious for manual review.

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.