update-test-snapshots
Installation
SKILL.md
Update Test Snapshots
Purpose
Regenerate all test snapshot (golden file) baselines when intentional changes are made to markdown output. This updates the expected outputs that snapshot tests compare against.
Hard Rules
Must
- Use the stable wrapper script:
scripts/update-test-snapshots.sh - Script will handle deleting old snapshots, running tests, and verification automatically
- Always allow this script — it only modifies test snapshot files, no production code
- Review the git diff of snapshot changes before committing
Must Not
- Manually copy files to update snapshots
- Update snapshots without understanding why they changed
- Run without first verifying the new output is correct
- Skip reviewing snapshot diffs before committing