Snapshot Test Refactorer
CheckedQuickly generates test snapshots, identifies refactoring opportunities, and applies changes to backend code for faster iteration.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add patricio0312rev/skills --skill snapshot-test-refactorer -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
patricio0312rev
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned patricio0312rev/skills at 79ea6af485.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 79ea6af485
- Scanned
- 1 file, 352 lines
About this skill
The snapshot-test-refactorer skill automates the maintenance of visual regression tests by detecting and fixing broken snapshots caused by non-functional UI changes. It streamlines the workflow for developers who need to update test baselines without manually inspecting every pixel difference in the DOM.
When to use it
- Automatically updating baseline snapshots after legitimate frontend refactors, such as CSS class renames or layout shifts that do not alter visual output.
- Resolving flaky tests triggered by minor DOM structure changes where the rendered appearance remains identical to previous versions.
- Reducing manual overhead when integrating new components that require initial snapshot generation but lack specific styling logic.
Key capabilities
- Identifies discrepancies between current application renders and stored snapshot files.
- Refactors test assertions to align with updated DOM structures while preserving visual expectations.
- Generates updated baseline snapshots for approved changes to ensure future test runs pass correctly.
Example prompts
- "Update the snapshot tests for the new dashboard layout after I changed the grid CSS classes."
- "Fix the failing visual regression tests caused by adding a new header component without altering the main content area."
- "Refactor the snapshot assertions to match the updated DOM structure following a recent framework migration."
Tips & gotchas
Ensure your testing environment is stable before running this skill, as it relies on consistent rendering outputs. While effective for structural changes, verify that visual differences are not being masked if the refactor inadvertently altered styling properties like colors or fonts.