visual-ui-verification
Skill1 starsChanged 4 months agoMITView on GitHub
Checks a running interface visually across states, viewports, themes, and input paths before it is called correct. Use when a page, screen, view, or other UI-bearing change is about to be declared visually correct, done, or ready to ship, when acceptance or release depends on how a running GUI or TUI looks or responds, or on questions such as does this look right, is the UI done, or check the screen, even if nobody asks for a visual check. Skip isolated widget or snapshot assertions, nonvisual behavior, and open design decisions.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- writing-specsSkill
- clarifying-intentSkill
- dispatching-parallel-agentsSkill
- handoffSkill
- mapping-the-codebaseSkill
- prototypingSkill
- using-git-worktreesSkill
- using-sdlc-skillsSkill
- viewing-artifactsSkill
- writing-skillsSkill
- yagniSkill
- finishing-a-branchSkill
- release-readinessSkill
- architecture-decisionsSkill
- coding-standardsSkill
- data-modelSkill
- migration-strategySkill
- reviewing-plansSkill
- system-architectureSkill
- ui-ux-designSkill
- writing-plansSkill
- executing-plansSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- complexity-auditSkill
- containing-an-incidentSkill
- debuggingSkill
- diagnosing-a-sessionSkill
- post-mortemSkill
- refactor-architectureSkill
- define-goalsSkill
- feasibility-checkSkill
- scopingSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-auditsSkill
- verification-before-completionSkill
- verification-strategySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Very specific: line 22
Write the candidate as an immutable source or artifact identity, or the working-tree digest verification-before-completion captures, which …
- Very specific: line 37
No approved design exists and the direction is settled → record in Acceptance source which observation source you took: the spec's, task's, …
- Distinctive: line 47
Run each Freshness evaluator:
- Very specific: line 66
Write one Scenario matrix row per observation: hash the raw bytes and the rendered media, record the capture tool and the row's inputs.
- Distinctive: line 68
Never overwrite an earlier frame.
- Very specific: line 99
Write the Verdict. Pass only when all four hold: calibrated probe caught and restored.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 UI Verification
Drive the integrated interface, retain every frame, calibrate the inspection on a deliberately broken frame, and return a row-by-row verdict bound to the candidate. Never return "looks good".
When to use
- A running GUI or TUI must be judged before acceptance or release.
- A claim depends on integrated layout, rendering, or visible interaction state.
- Skip isolated component/snapshot checks and purely nonvisual behavior.
- Route unsettled flow or visual direction to
ui-ux-designbefore verifying it.
Step 1: Bind the target
- Open
assets/evidence-record.md. Fill theRunheader before any capture. - Write the candidate as an immutable source or artifact identity, or the
working-tree digest
verification-before-completioncaptures, which covers staged, unstaged, and untracked non-ignored paths only. List the ignored inputs the launch path reads — build output, generated assets, local configuration — withgit ls-files --others --ignored --exclude-standard -- {{input paths}}, and record each one's path and SHA-256 underIgnored inputs. Recompute those hashes before the verdict; a changed hash invalidates every pass captured before it. Keep the record outside that identity. Establish whether an approved design applies. Plan-bound: the task's
ContextandApplicable visual referencessay. Otherwise check.sdlc-skills/designs/and any user-set design path, and record what you checked.- Uncertain → verdict pending.
- No approved design exists and the direction is settled → record in
Acceptance sourcewhich observation source you took: the spec's, task's, or settling request's acceptance criteria, or a rendering of the pre-change revision captured in its own workspace under Step 2's matrix. - An approved design exists → read the approved design itself: flows, states, conditions, decisions and acceptance checks. Map each applicable obligation to a required observation or its other owning gate; a preview is only part of that contract. Copy its Selected visual references field for field. Plan-bound: match the obligations and references to their tasks and conformance evaluators.
- Run each Freshness evaluator:
pass→ capturemismatch→ restore the binding and rerun, or obtain a design successor (plus a plan successor when plan-bound)unavailableorerror→ verdict pending until repaired and rerun
- Missing source, field, or obligation coverage → verdict pending. The recorded no-design source counts as the source. A design with no compared visual reference still has its approved UI obligations.
Step 2: Capture
- Build the smallest deciding matrix: journeys and states × viewport, theme, input method, platform, content pressure. Include empty, loading, error, overflow, and no-permission states the UI contract contains. Disposition omissions.
- Drive the real interface through its real input boundary. GUI: screenshots or recordings. TUI: a PTY at the declared dimensions and a VT-capable renderer; retain the raw terminal stream and the rendered frame.
- End each row at a stable, named observation, not at a successful launch.
- Write one
Scenario matrixrow per observation: hash the raw bytes and the rendered media, record the capture tool and the row's inputs. - Never overwrite an earlier frame. Retain and disposition retries, duplicates, late output, and superseded frames. One accepted result per required row.
Step 3: Calibrate, then inspect
- Fill
Calibrationbefore any pass: freeze the rubric and observer. - Produce one deliberately broken frame with a reversible fault or known-bad fixture outside the candidate. Confirm the same inspection marks it red.
- Restore the probe. Record the red and restoration receipts. Unsafe or missed probe → gate pending.
- Inspect every frame with a media-capable observer against the accepted UI criteria: hierarchy, legibility, clipping and overflow, focus, contrast, content extremes, state feedback, visible recovery controls.
- Judge the finished candidate against every mapped design obligation and selected reference. Matching the preview does not pass an untested flow, recovery state or condition. An unapproved layout or interaction fails, however polished, unless an approved successor replaces the binding.
- File each defect in
Defects: severity, requirement violated, matrix row and frame, impact, reproduction. - Human-owned criterion or exception: follow
verification-before-completion's manual-acceptance contract. Only its trusted user-origin receipt passes that row.
Step 4: Fix and verdict
- Edit nothing from this skill. Route each fix through
test-driven-developmentandyagniunder the authority that covers it. - Recapture the fixed row and its affected neighbors. Keep before and after evidence. Any candidate change, or an environment change that could alter the render, invalidates affected passes.
- Write the
Verdict. Pass only when all four hold: calibrated probe caught and restored; every required row captured and inspected; no blocking defect; every human-owned row has its trusted receipt. Otherwise fail or pending. - Return the verdict to the skill that requested it. Authorize no acceptance, integration, or promotion here.
- Establishing the project battery: add this gate as a row in
verification-strategy's matrix with its own cells, action, evidence, owner, cadence, promotion, and failure response. - Release: take a fresh verdict against the exact immutable artifact. A verdict on source or a working tree is acceptance evidence only.
Gotchas
- A UI fix with no design artifact reads as a missing source, and the verdict stays pending for good unless the acceptance criteria or a pre-change rendering is recorded as the source.
- A "pre-change" rendering captured from the edited workspace is the candidate itself, and it compares the change with itself.
- A working-tree digest leaves ignored paths out, so a rebuilt bundle or changed local configuration renders a different screen under the same digest; only the recorded per-path hashes show that the pass is stale.
Common mistakes
- Calling subjective preference a defect when the design direction is unsettled.
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.

