agentleFS
devswhadevswha/herdr-web-ui/.claude/skills/verify-ui/SKILL.md

verify-ui

Skill2.3k starsChanged 4 days agoMITView on GitHub

Verify a browser UI change in an isolated session with a separate verifier agent, never the author agent grading its own work. Use when a change touches src/, index.html, site/demo/ or UI styling and layout, or before opening a UI PR that needs browser regression runs and before/after screenshots.

15 other projects use a version of this.

Trending

More talk lately.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 3 mentionsOct 2026: 47 mentionsNov 2026: 1 mentionDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the devswha/herdr-web-ui repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about devswha/herdr-web-ui

The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 51

Talked about on GitHub and Bluesky (51 times).

On GitHub · 50

45 more on GitHub

Used with

Projects with it also use write-design, cut-release and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • rpraharajSkill

    write-design

    Write a technical design for one initiative — approach, contracts, failure, security, and delivery slices. Use when the user asks for a technical design, tech spec, or how we will build this. Do not write product code. Do not design a one-line bug.

    Also in 3 projects that use this

  • MicrosoftSkill

    cut-release

    Use this skill to cut an APM release from the current worktree: assess whether the cycle since the last tag warrants a patch or minor bump (semver discipline against the merged-since-last-tag diff), assemble the changelog.d/ fragments and any legacy [Unreleased] CHANGELOG bullets into a dated version block and sanitize it so each change has one line in one section (dedupe across sections, condense, add Highlights, drop internal-only churn), bump pyproject.toml + uv.lock, run the CI-mirror lint chain, and open the release PR. Activate on "ship a release", "cut v0.x", "release prep", "bump and PR", "open release PR", "what kind of release do we need", or any phrasing that ends in opening a release PR -- even when the user does not say "skill". Stops BEFORE tagging; tagging stays a human gate that triggers the release workflow. Refuses to bump to a major (>= 1.0.0) version without explicit operator confirmation.

    Also in 3 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 3 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When a shared component (FilesDialog, RepoChanges, the sidebar, selection/focus, or the terminal view) changed, run all …

    line 49
  2. Very specific:

    Write a short untracked probe (scripts/verify.tmp.ts, deleted afterwards) using withDemoBrowser from scripts/demo-browser.ts (taking …

    line 72
  3. Very specific:

    Theme and tokens: check both dark and light modes.

    line 82
  4. Very specific:

    Demo parity: if the feature can be reached in the browser demo, verify site/demo/transport.ts answers its /api/* routes and WebSocket …

    line 84

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “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

Verify a UI change

An agent that wrote a UI change already knows which path it built for and tends to test only that path. UI verification runs in a separate verifier subagent or session with fresh context: the author runs bun run check fast, then hands the checkout to a fresh verifier that grades the screen from the outside.

Hand-off to the fresh verifier

Give the verifier only what a reviewer or user knows:

  • Give: the worktree path, the base commit (origin/main), git diff --stat origin/main, one short paragraph stating the user-visible behavior or bug being fixed, and dedicated directories under ~/.cache/ovis-tmp/<name> for TMPDIR and UI_EVIDENCE_DIR.
  • Withhold: step-by-step click scripts, internal state explanations, and assurances about edge cases. The verifier chooses its own interactions to try to break the change.

Safety rules

  • Never touch the user's live herdr session. Strip HERDR_SOCKET, HERDR_ENV, HC_SOCKET and session IDs (scripts/browser-checks.ts and scripts/verify-ui.ts strip them automatically), and capture screenshots only from the disposable demo or an isolated test session (ovis-test), never a live one.
  • Never stop herdr-web-main.service (the maintainer's main test app, AGENTS.md). Leave it untouched; for reproducible before screenshots, run verify-ui.ts against a clean origin/main checkout so both before and after use identical demo or test fixtures.
  • Never bind 0.0.0.0. Automated checks bind 127.0.0.1 on port: 0. A throwaway preview for a person binds HOST=$(tailscale ip -4) on a free port.
  • Keep /tmp clean. Set TMPDIR=$HOME/.cache/ovis-tmp/<name> (mkdir -p first) and delete it once the evidence has been copied or inspected.

Verification steps

1. Run the matched CI browser regressions

From the worktree under review, find and run every CI browser script covering the changed files:

mkdir -p ~/.cache/ovis-tmp/ui-check
TMPDIR=~/.cache/ovis-tmp/ui-check bun scripts/browser-checks.ts --limit 0 --run

When a shared component (FilesDialog, RepoChanges, the sidebar, selection/focus, or the terminal view) changed, run all scripts/*-regression.ts and scripts/*-qa.ts that cover it in the CI runner image before the PR is ready for review, even when the new behavior is opt-in.

2. Run the 4-cell baseline matrix and capture screenshots

Probe desktop (1280x800) and phone (390x844) across both dark and light themes, checking that React mounts past .boot without .app-crash, pageerror, console.error, 5xx responses, theme mismatches or horizontal viewport overflow:

TMPDIR=~/.cache/ovis-tmp/ui-check \
  bun scripts/verify-ui.ts --evidence ~/.cache/ovis-tmp/ui-evidence --label after

For a visual change that needs before/after screenshots on the PR, also capture --label before from an origin/main checkout on the same fixture setup and inspect every saved PNG (desktop-dark, desktop-light, phone-dark, phone-light) directly. A baseline older than scripts/verify-ui.ts is served on loopback and probed from this checkout with --url. Captures shown to the maintainer are the light ones only (desktop-light, phone-light).

3. Try to break the touched surface

Write a short untracked probe (scripts/verify.tmp.ts, deleted afterwards) using withDemoBrowser from scripts/demo-browser.ts (taking newContext from the session by name) or appContext from scripts/app-context.ts, with bounded condition waits (waitForFunction / locator.waitFor, never fixed sleeps), and exercise:

  • Dismissal and Back: Escape, clicking outside a sheet or menu, and phone Back (page.goBack() / history.back() where usePhoneSheetBack applies) close the surface cleanly, restore focus, and leave no stuck backdrop or history trap.
  • Narrow and crowded inputs: 390x844 phone viewport, long unbroken paths/identifiers, empty lists, error states and CJK/long-label copy neither clip controls nor cause horizontal scroll.
  • Theme and tokens: check both dark and light modes; colors come from src/styles.css tokens (DESIGN.md), and any new t("…") copy renders in place.
  • Demo parity: if the feature can be reached in the browser demo, verify site/demo/transport.ts answers its /api/* routes and WebSocket frames without unexpected 404s.

Reporting back

Return a concise verdict to the author session:

  1. Exact commands and CI browser scripts run.
  2. Evidence paths (before / after PNGs and *-report.json).
  3. Adversarial interactions tested (viewport, theme, keyboard/Back, edge inputs).
  4. PASS or FAIL — on any FAIL, name the reproduction steps, the failing cell/selector and the offending file:line. Do not patch the code inside the verifier unless asked; let the author fix the root cause and re-run a fresh check.

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.