/sdlc-skills:visual-testingfrom sdlc-skills
Screenshots rendered UI and diffs against committed baselines using reg-cli for visual regression testing. Use when verifying layout, design, or visual changes across any HTML — static pages or running apps.
Ships in sdlc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Catch unintended visual change. Rendered UI is deterministic enough that a pixel which moved without an intended cause is worth seeing — a card that lost its shadow, a table that overflows on tablet, a button that drifted but still works. This skill screenshots each screen and diffs it against a baseline captured when the UI was last correct.
Two halves, kept separate on purpose:
scripts/visual-diff.mjs shells out to reg-cli
(resolved local-first, else npx --yes reg-cli@latest, so nothing is added to
package.json) to compare, manage baselines, and write a report.file://);
the pages are self-contained, no server needed.current/ directory, one PNG per variant, named
by the scheme below. See references/capturing.md for driving each source and
controlling the noise that makes diffs flaky.node scripts/visual-diff.mjs --current <current/> --baseline <baselines/> --diff <out/>
Exit 0 = no change; exit 1 = something changed (report at <out/>/report.html).node scripts/visual-diff.mjs --current <current/> --baseline <baselines/> --diff <out/> --update
then commit the updated baselines. An unintended change → a finding: fix the
cause (or file the defect with the diff image); do not update the baseline.A green diff is not a passing test. It proves the screen is unchanged since the baseline — nothing about whether that baseline was ever correct or whether the feature works. Use it to hold a reviewed UI steady, alongside the checks that judge correctness, never instead of them.
reg-cli matches current/<name>.png to baselines/<name>.png by filename, so
names must be stable and describe exactly one variant. Pick a scheme that fits what
you're testing and keep it lowercase and stable; examples:
| Context | Filename |
|---|---|
| design mock (mobile) | screen-<flow>-<screenId>-<state>-<device>.png |
| design mock (web) | screen-<flow>-<screenId>-<state>-web-<style>-<bp>.png |
| running web app | web-<screen>-<state>-<viewport>.png |
| running mobile app | mobile-<screen>-<state>-<device>.png |
| flow-map / poster | flow-<flowId>.png |
Renaming a file breaks its baseline pairing — reg-cli then reports one deleted + one new, which is the signal to re-approve, not a bug.
Screens × states × sizes/styles is a combinatorial trap. Default coverage: the screens actually touched, in their default state, at the size/device set you target, in one representative variant. Add more only where a real regression risk lives. Every variant is a baseline someone re-approves on every intended change — a giant set nobody re-approves is worse than a focused one people actually look at.
| Path | What it is |
|---|---|
scripts/visual-diff.mjs | The reg-cli wrapper: build args, local-or-npx, read the JSON report, summary + exit code. --update promotes current → baseline. |
references/capturing.md | Driving each source (static page / running app), the naming scheme, and taming the noise that makes diffs flaky. |
references/baselines.md | Where baselines live, the promote/approve flow, what to commit, reading the report. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arozumenko/sdlc-skills --plugin sdlc-skills12 skills in this plugin
/deep-researchUse when the user asks to 'research trends', 'analyze a topic', 'fact-check this', 'verify claims', 'what's the state of X', or hands you a document to vet. A disk-first, checkpointed research workflow with three modes — trend research, topic analysis, and fact-checking./delivery-monitorDelivery monitor for harness work items — the cycle-time and cadence sibling of tokenomics. Registers a plan (campaign → mission → task) with ranged, human-accepted estimates, records dispatch/merge/cancel transitions into a git-committed event ledger (.agents/telemetry/delivery/), captures dispatch usage, backfills history from git or Claude transcripts, and reports cycle time, cadence, estimate accuracy and global spend. Use when the user asks "how fast are we delivering", "register the plan / estimates", "record that TASK-023 merged", "delivery report / status", "delivery spend / unattributed spend", "recover dispatches from transcripts", "enable delivery tracking", or "how good were our estimates". For cost per case use tokenomics; for sizing new work use automation-scoping./gathering-contextUse when the user says 'what do we know about X', 'find prior discussions with Y', or before drafting any reply where prior history matters. Gathers cross-channel context (local KB, email, Teams, optional web) about a person or topic before responding.Other plugins' skills for the same job