reg-suit
Skill23 starsChanged 7 days agoMITView on GitHub
Diagnose failing reg-suit visual regression checks, missing baselines, deleted-story alerts, and flaky captures. Use when a visual diff status fails, reports "No baseline found", or looks nondeterministic; use gh-ci-triage for other CI failures.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agents-autonomous-loopsSkill
- agents-correctSkill
- agents-create-verification-skillSkill
- agents-reflectSkill
- agents-swarmSkill
- alchemy-infraSkill
- cloudflare-edge-hardeningSkill
- cloudflare-gradual-releaseSkill
- comms-howSkill
- comms-impactSkill
- comms-interrogateSkill
- comms-promo-videoSkill
- comms-slidesSkill
- comms-technical-writingSkill
- comms-unslopSkill
- comms-whySkill
- drizzle-postgresSkill
- effect-boundary-validationSkill
- effect-seam-migrationSkill
- effectSkill
- eng-agent-dx-cli-scaleSkill
- eng-ai-featuresSkill
- eng-benchmark-checklistSkill
- eng-blast-radiusSkill
- eng-change-checklistSkill
- eng-cutover-verificationSkill
- eng-data-backward-compatSkill
- eng-migrationSkill
- eng-monorepoSkill
- eng-qa-cujsSkill
- eng-state-machineSkill
- eng-tddSkill
- eng-testingSkill
- gh-ci-triageSkill
- gh-issue-burndownSkill
- gh-pr-commit-reviewSkill
- gh-pr-feedback-loopSkill
- nix-darwinSkill
- sentry-bugfixSkill
- sentry-perfSkill
- seo-coachSkill
- svelte-shadcnSkill
- svelte-ui-deliverySkill
- ui-audit-loopSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 16
If the comment sha differs from the PR head SHA, wait for or inspect the run for the current head.
- Very specific: line 18
If "truncated": true, fetch the full JSON report linked in the comment before classifying.
- Very specific: line 35
Never approve baselines yourself or force-push over a stale base to hide deleted > 0.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Visual diff triage with reg-suit
Visual checks are commit statuses, not workflow jobs. "Re-run failed jobs" does not refresh them. Classify the failure from the sticky comment's machine-readable data before re-running or pushing.
Repo facts (from AGENTS.md): visual status context names, capture job name, reg-suit config path, sticky comment marker, local capture command, and how to force a scoped-out visual run.
Read the sticky comment first
Fetch PR comments and locate the repo's reg-suit sticky comment. Parse its embedded sha and JSON counts (changed, new, deleted, passed) plus per-story expected, actual, and diff URLs.
- If the comment
shadiffers from the PR head SHA, wait for or inspect the run for the current head. - Classify by
countsand diff URLs, never by thumbnail previews alone. - If
"truncated": true, fetch the full JSON report linked in the comment before classifying.
Decision table
| Class | Signal | Action |
| A. Real change | changed or new > 0 on surfaces this PR modified | Do not re-run. Post concise diff evidence and wait for human baseline approval. |
| B. Pixel noise | 1-2 untouched stories differ on subpixel, font, or animation jitter | Inspect the diff image. Re-run the capture job once; if it persists, stabilize the story or fixture. |
| C. Empty baseline | "No baseline found"; all stories new, 0 passed | Base commit on the default branch lacks a published baseline. Merge the default branch forward instead of re-running. |
| D. Deleted stories | deleted > 0 | Intentional removal needs human approval. Unexpected deletion signals a stale base or accidental revert; restore before merging. |
| E. Stale base | Diff shows changes already merged on the default branch | Merge the default branch forward. |
| F. Scoped out | Status says skipped with no relevant visual changes | Expected when no UI files changed. Use the repo's force trigger if visual proof is required. |
Capture rules
- Size stories explicitly in pixels rather than viewport units (
min-h-screen,w-screen,100vh) so iframe sizing stays deterministic. Seesvelte-ui-deliveryfor story structure. - Register new visual stories in the repo's visual catalog in the same commit when auto-discovery is not enabled.
- Never approve baselines yourself or force-push over a stale base to hide
deleted > 0. - In unattended or headless runs, post the classification and diff evidence for Class A or intentional Class D changes, then stop with a clear human-gate blocker instead of waiting for interactive input.
Verify
- Sticky comment
shamatches the current PR head. - Failure class (A-F) is stated with evidence before any re-run.
- Any
deleted > 0count is explained and verified against the default branch. - Baseline approval is left to a human reviewer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

