Snapshot
Testing & QualitysnapshotSnapshot 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.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/boostsecurityio/poutine/blob/HEAD/.claude/skills/snapshot/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/snapshot, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Run the snapshot regression tests to validate analysis output hasn't changed:
- Run snapshot tests:
make snapshot - 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
- If the change is expected (new rule, modified output format, updated OPA policy), update the snapshots:
- After updating snapshots, re-run
make snapshotto confirm they pass - Report which snapshots changed and why
Note: Requires GH_TOKEN environment variable to be set.