agentleFS
JacobStephens2JacobStephens2/thirdshift/.agents/skills/verify-ui/SKILL.md

verify-ui

Skill4 starsChanged 11 days agoMITView on GitHub

Verify rendered HTML, CSS, templates, frontend routes or interactive UI state, and capture pull-request Visual evidence. Use before UI edits and again when verifying them.

  • Reads credentials

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use write-design, cut-release and 1 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

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use shell/CLI browser tools.

    line 8

“Common” is measured: kept by at least 6 in 10 of the 12 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 UI

Use shell/CLI browser tools; no MCP configuration is needed. Invoke this before editing UI code and again before opening or updating a pull request; local verification alone never authorizes a push or upload.

Discover and boot

Find the target repository's .agents/skills/verify-*/SKILL.md and .claude/skills/verify-*/SKILL.md (especially verify-ui). Follow the relevant project skill's boot, seed and flow instructions; otherwise read the UI verification section in AGENTS.md, then repository test/dev-server documentation. Use committed fixtures and idempotent seed scripts. Record newly discovered setup traps in the project-local verify-* skill's Gotchas as part of the PR when useful.

Optional host-only faux/sandbox test credentials live at ~/.config/thirdshift/verify-env/<owner>/<repo>.env, with owner/repo determined from this repository's origin. Load that file only when the documented setup needs it, inside the verification subshell (set -a; . "$verify_env"; set +a, without shell tracing). Keep it outside git, redact credentials from output and captures, and use faux data on screen. Never copy untracked .env files from the Launch directory.

Each browser command owns its entire lifetime inside one ( ... ) subshell with a trap ... EXIT: create isolated app/database/profile state with mktemp -d, bind the target application to loopback on an OS-assigned ephemeral port (0), and read the actual port from its readiness output. Wait for readiness with a bounded poll. Avoid a probe-then-rebind free-port race. If the app cannot bind 0, use the repository's documented equivalent that keeps the port reserved until startup.

Register cleanup before starting the application or browser daemon. Track their exact child PIDs/job handles; stop and wait for both on success, assertion failure and interruption. For a server wrapper that forks, own and terminate its process group or use the repository's supervisor to reap every descendant. Close Playwright contexts and browser in finally; stop any CLI browser daemon explicitly too. Remove temporary scripts/state on exit, but keep proof captures outside that state at their original mktemp paths. No server or browser child process may outlive the command.

Phase 1 — Interactive exploration

Before editing UI code, boot the unpatched checkout and drive the affected flows using an installed browser CLI or short Playwright scripts. Inspect accessibility snapshots (locator.ariaSnapshot() or the CLI's snapshot), rendered state, browser console errors, pageerror, failed requests and failed network responses. Exercise the relevant edge cases, navigation and keyboard behavior. Fix broken UI behavior in-session, rerunning the affected flow until it works. Keep the exact reproduction command and failing/passing output for Execution evidence. Exploratory scratch captures are local, never upload candidates.

Choose proof by the change:

ChangeVisual evidence
Static layout, typography or copyMatching Before/After .png screenshots; no video required.
Interactive UIAlways an After walkthrough .mp4; add static .png pairs where layout changed.
Bug fix or change to an existing interactive flowAlso a matching Before walkthrough .mp4.
Net-new control or routeAfter walkthrough; omit Before video of a flow that did not exist.

Create each capture with mktemp, e.g. "${TMPDIR:-/tmp}/before-desktop.XXXXXX.png" or "${TMPDIR:-/tmp}/after-desktop.XXXXXX.mp4". Write Before captures on the unpatched baseline before edits. Use 1440×900 desktop, plus 390×844 mobile when responsive behavior is affected; pair Before/After at the same viewport, state and flow. Retain those exact paths for the PR. Recover a missing Before from a temporary detached Base branch worktree (or the diagnosis Session's specified reproduction commit), boot it with independent temporary state, capture, stop its children and remove the worktree inside the same EXIT cleanup.

Phase 2 — Clean walkthrough pass

Once exploration passes, record the chosen flow in one uninterrupted disposable Playwright script created with mktemp and removed by the owning subshell's EXIT trap. Use the repository's installed Playwright (resolve it from its package directory when the script lives outside the repository, such as in ${TMPDIR:-/tmp}) and headless Chromium. Keep the script temporary; a separate durable regression test may be warranted at the repository's test seam.

Set viewport explicitly and match recordVideo.size to it: Playwright otherwise scales recordings down. For Playwright >= 1.59, enable native recordVideo.showActions cursor/click/highlight annotations:

const viewport = { width: 1440, height: 900 }; // mobile: 390 × 844
const context = await browser.newContext({
  viewport,
  recordVideo: {
    dir: recordingDir, size: viewport,
    showActions: { cursor: 'pointer', duration: 500, style: {
      point: 'width:24px;height:24px;border:2px solid #e11d48;border-radius:50%',
      highlight: 'background:#facc1533;outline:2px solid #e11d48',
    } },
  },
});

Only when the target repository pins Playwright < 1.59, omit showActions and inject a lightweight cursor and click-ripple overlay with context.addInitScript before navigation: a fixed, high-z-index, pointer-events:none cursor updated on mousemove, and a transient expanding ring on pointerdown. Use CSS transitions and remove expired rings. Record the compatibility fallback in Evidence; keep the repository's dependency pin.

Attach listeners before navigation to collect unexpected pageerror, console errors, failed requests and 5xx responses (including popups if the flow opens them). Drive the already explored steps with stable accessibility/DOM locators and assert the expected state after each action. Use brief ~300–500 ms beats to make clicks and changes legible, with no model-thinking pauses in the recording. Name any expected failures explicitly; assert zero unexpected page errors or 5xx responses before accepting the pass. Do not hide failures to produce a clean video.

Await context.close() to flush the recording, then browser.close() in finally. Transcode the resulting .webm with ffmpeg into a separate mktemp "${TMPDIR:-/tmp}/after-desktop.XXXXXX.mp4" capture (use Before/mobile names as appropriate):

ffmpeg -y -i "$raw_video" -an -c:v libx264 -pix_fmt yuv420p \
  -movflags +faststart -crf 28 "$capture"
test -s "$capture" && test "$(wc -c < "$capture")" -le 8388608

Target 5–25 s of deliberate actions. If the output exceeds 8 MB (8,388,608 bytes), shorten the flow or lower bitrate and encode again; upload only a checked file. Review the finished screenshots/video for the claimed state, legibility and faux/redacted data. Keep the paired capture paths and flow/viewport labels for the pr skill, which validates and publishes GitHub attachments.

Completion

Return the explored flows, commands/results, exact capture paths and any remaining limits. When the app, browser, ffmpeg or gh >= 2.103.2 --attach cannot run, keep the PR Ready for review with an explicit limitation under ## Evidence naming what could not run and why. Continue available execution checks; absence of a recording adds no mechanical merge gate. A reproduced UI defect still needs a fix and regression test.

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.