Skip to content
Back to skills

Update Golden

ASecurity

Regenerate flow-view's golden (snapshot) test output after an intended change to the index or the type boards, then explain every changed snapshot so the user can accept or reject it. Use when `npm test` in flow-view fails on a snapshot mismatch or a missing snapshot.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 22, 2026
developmentgonodegit

Security analysis

A100/100

Scanned October 22, 2026

npx -y skills add bothuany/insilode --skill update-golden --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Update Golden?

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

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

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: update-golden
description: Regenerate flow-view's golden (snapshot) test output after an intended change to the index or the type boards, then explain every changed snapshot so the user can accept or reject it. Use when `npm test` in flow-view fails on a snapshot mismatch or a missing snapshot.
disable-model-invocation: true
argument-hint: "[poly|types|all]"
---

Golden files are the accepted output of the indexer: `editor/extensions/flow-view/test/expected/*.txt` (flows per fixture, written by `test/poly.test.mjs`) and `test/types-expected/*` (type boards, written by `test/types-boards.test.mjs`). They are never edited by hand; regenerating them is safe only when every change in them is explained by a source change.

1. Make sure the snapshot folders have no uncommitted changes first: `git status --porcelain -- editor/extensions/flow-view/test/expected editor/extensions/flow-view/test/types-expected`. If they do, stop and ask: regenerating would mix those edits into the new diff.
2. Run from `editor/extensions/flow-view`, depending on `$ARGUMENTS` (default `all`):
   - `poly`: `node esbuild.mjs`, then `UPDATE=1 node --test test/poly.test.mjs`
   - `types`: `node esbuild.mjs`, then `UPDATE=1 node --test test/types-boards.test.mjs`
   - `all`: `UPDATE=1 npm test`
3. Run `npm test` again without `UPDATE` and confirm it passes.
4. Read `git diff --stat` and `git diff` of the two folders, plus any new untracked snapshot files. Compare them with the source change that caused them (`git diff -- src`).
5. Report per changed snapshot file: what changed (flows, edges, routes, tables, types added or removed) and whether the source change explains it. Mark anything unexplained as **suspicious**: a flow or table that disappeared, routes renamed with no route code changed, a fixture the change should not reach.
6. If anything is suspicious, suggest running the `golden-diff-reviewer` agent and stop. Never commit, and never revert the snapshots yourself: the user decides.

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.