agentleFS
jpoehneltjpoehnelt/skills/reg-suit/SKILL.md

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.

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
  1. Very specific:

    If the comment sha differs from the PR head SHA, wait for or inspect the run for the current head.

    line 16
  2. Very specific:

    If "truncated": true, fetch the full JSON report linked in the comment before classifying.

    line 18
  3. Very specific:

    Never approve baselines yourself or force-push over a stale base to hide deleted > 0.

    line 35

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

  1. If the comment sha differs from the PR head SHA, wait for or inspect the run for the current head.
  2. Classify by counts and diff URLs, never by thumbnail previews alone.
  3. If "truncated": true, fetch the full JSON report linked in the comment before classifying.

Decision table

ClassSignalAction
A. Real changechanged or new > 0 on surfaces this PR modifiedDo not re-run. Post concise diff evidence and wait for human baseline approval.
B. Pixel noise1-2 untouched stories differ on subpixel, font, or animation jitterInspect 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 passedBase commit on the default branch lacks a published baseline. Merge the default branch forward instead of re-running.
D. Deleted storiesdeleted > 0Intentional removal needs human approval. Unexpected deletion signals a stale base or accidental revert; restore before merging.
E. Stale baseDiff shows changes already merged on the default branchMerge the default branch forward.
F. Scoped outStatus says skipped with no relevant visual changesExpected 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. See svelte-ui-delivery for 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 sha matches the current PR head.
  • Failure class (A-F) is stated with evidence before any re-run.
  • Any deleted > 0 count is explained and verified against the default branch.
  • Baseline approval is left to a human reviewer.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.