See ui

From angadhn/botference · View interactive version

See ui is an AI agent skill from the GitHub repository angadhn/botference. Look at any web UI you build or change — render it headless with `botference see` and read the screenshots — because layout and design failures produce NO errors or warnings. Use after every UI change, before declaring done, and whenever a human says something "looks wrong".

How to use this skill

Skill file

see-ui — look at the page before you say it's done

Layout and design failures are invisible to your normal loop: the DOM is

valid, the CSS applied, the console silent — and the page is still

broken to a human eye (a chart squashed into 5% of its width renders

"successfully"). Code and logs cannot catch "technically correct but

looks wrong". Pixels can, and you can read pixels.

The command

botference see <target> [label] [--viewport WxH]... [--basic-auth U:P] [--out DIR]

(HTML, SVG — rendered via file://, no server needed: the way to

verify charts, reports, and mockups you just wrote), or the NAME of a

running botference service — its listening port is discovered from

the live process, you never need to know it.

chart — their SVG engines have artifacts Chrome does not; see is

the trustworthy lane and works from your sandbox.

Any width under 500 px is shot as an emulated phone screen of exactly

that size: the page sees innerWidth 390, a device pixel ratio of 3,

a mobile user agent and touch input, and the PNG is 390 by 844

pixels. A page with no

<meta name="viewport"> lays out 980 px wide and is zoomed out to

fit, as on a real phone. If see prints "NOT a real phone layout",

the emulation failed: the shot is a 500 px layout with the right edge

cut off, so do not trust overflow findings from it.

the entire point — do not run the command and skip looking.

Protocol

  1. After ANY change that affects rendered UI, screenshot both default

viewports and look at them before reporting the change as done.

  1. When a human reports something "looks wrong/bad/off", screenshot

FIRST, at the viewport they used (phone screenshots → 390x844),

and compare with what they see. Do not reason about CSS from source

alone.

  1. If the app has a login form, your screenshot will show only the

gate. Fix that properly: let bare-localhost requests through

unauthenticated (the review engine's rule — anyone on the loopback

port already owns the machine). --basic-auth helps only for HTTP

basic auth, not form gates.

  1. Charts and figures: vision discovers a failure class once — then

lock it out forever with a deterministic test on the generated

SVG/scales, no browser needed. Assert data coverage (observed data

spans ≥ ~half the x-range; projections must not compress history),

containment (points inside the plot area, y-domain spans the data,

no NaN coordinates), and legibility (labels don't collide, sane

tick counts, markers above minimum visible size). **Every visual

chart fix ships with the invariant test that would have failed on

the bad render.**

Notes

A --virtual-time-budget is applied so client-drawn charts finish

rendering before the shot.

cannot launch Chrome (seatbelt kills it); botference see detects

that and hands the job to the see-broker service automatically,

printing the same wrote: paths. Do not retry Chrome by hand and do

not ask a human for pixels. If it reports "no see-broker service is

alive", relay exactly this to the machine owner:

botference service start see-broker -- botference see --serve

bug reproduces on a real iPhone but not in your render, say so —

that is the one case that justifies installing Playwright (for its

WebKit engine), a decision for the human, not you.

a service name.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.