snapshot-update

snapshot-update is a skill for Claude Code from berkcangumusisik/claude-code-practices. It costs 12 tokens per session (196 once invoked), scanned A, original, MIT.

A test snapshot review tool for Jest or Vitest, where snapshots are saved examples of expected program or interface output.

In plain words
What is it for?
Use it to preview snapshot differences, explain what changed, classify suspicious updates, and selectively update approved snapshots.
Why use it?
It helps distinguish intentional output changes from regressions before outdated snapshots are replaced.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to preview snapshot differences, explain what changed, classify suspicious updates, and selectively update approved snapshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/berkcangumusisik/claude-code-practices/snapshot-update
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add berkcangumusisik/claude-code-practices --skill snapshot-update
Clone the repo
git clone --depth 1 https://github.com/berkcangumusisik/claude-code-practices

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for snapshot-update

README.md
[![agentmods](https://agentmods.dev/badge/skills/berkcangumusisik/claude-code-practices/snapshot-update/github.svg)](https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/snapshot-update)
Your own site
<a href="https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/snapshot-update"><img src="https://agentmods.dev/badge/skills/berkcangumusisik/claude-code-practices/snapshot-update/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for snapshot-update

Your own site · 80×15
<a href="https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/snapshot-update"><img src="https://agentmods.dev/badge/skills/berkcangumusisik/claude-code-practices/snapshot-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 196 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00196
Opus 5 $0.00006 $0.00098
Sonnet 5 $0.00002 $0.00039
Haiku 4.5 $0.00001 $0.00020

Measured 6d ago against content hash f8ee95a872ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

snapshot-update scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/snapshot-update/SKILL.md · 31 lines

What it actually says

Update Snapshots

  1. Find outdated snapshots:
npx jest --updateSnapshot --dry-run 2>/dev/null || bun test --update-snapshots --dry-run 2>/dev/null || echo "Run manually"
  1. For each snapshot that would change:

    • Show the diff (old vs new)
    • Explain what component/output changed
    • Classify: intentional UI change vs potential regression
  2. Ask the user:

    • Update all? (if all changes are clearly intentional)
    • Review each one? (if any look suspicious)
  3. On confirmation, update snapshots:

npx jest --updateSnapshot
  1. List what was updated and flag any that looked suspicious for manual review.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 31 lines · 12 tokens per session scan A f8ee95a872ee

Subscribe to this mod's changes

snapshot-update is a skill published in the GitHub repository berkcangumusisik/claude-code-practices (10 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 196 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.