# Snapshot

> Snapshot is an Agent Skill for testing & quality published in the boostsecurityio/poutine repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Run snapshot regression tests after changes to OPA rules, scanners, analyzers, or formatters to detect output regressions.

- Skill name: `snapshot`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/boostsecurityio/poutine/blob/HEAD/.claude/skills/snapshot/SKILL.md
- Repository: boostsecurityio/poutine (490 GitHub stars when collected)

## SKILL.md

Run the snapshot regression tests to validate analysis output hasn't changed:

1. Run snapshot tests: `make snapshot`
2. If tests fail, examine the diff carefully:
   - If the change is **expected** (new rule, modified output format, updated OPA policy), update the snapshots: `make update-snapshots`
   - If the change is **unexpected**, investigate what caused the regression and fix the root cause
3. After updating snapshots, re-run `make snapshot` to confirm they pass
4. Report which snapshots changed and why

Note: Requires GH_TOKEN environment variable to be set.

---

Source: https://www.openparable.com/skill/testing-quality/snapshot (OpenParable). Cite the canonical URL above.
