- How you use it
- You paste it when you need it
- What it can do
- writes files; Shell and network instructions not verified; read the prompt text before running it.
- What's inside
The option
| Option | APrompt · v1.0.0Web Interface Guidelines review prompt (Vercel) |
|---|---|
| How you use it | You paste it when you need it |
| What it can do | writes files; Shell and network instructions not verified; read the prompt text before running it. |
| What's inside |
What this thread does
The problem
The page renders, but is it right? Settings forms fail in small ways the eye misses: paste blocked on a field, no warning when you leave with unsaved changes, a delete button that fires at once, generic labels.
What the file checks
vercel-labs/web-interface-guidelines (MIT, linked commit from 2026-10-05) is a rules file (the repo's AGENTS.md, meant to be added to a project so agents apply the guidelines) plus a command.md for reviewing files. The command.md file defines the review command and its file:line output format. Rules that matter for settings:
- Inputs need
autocompleteand a meaningfulname; correcttypeandinputmode; never block paste. - Labels are clickable; every control has a label or
aria-label. - Submit stays enabled until the request starts, then a spinner; errors inline next to the field and focus moves to the first error.
- Warn before leaving with unsaved changes.
- Destructive actions need confirmation or an undo window, never immediate (the guideline says "Confirm destructive actions or provide Undo window"; a modal is one way to do it).
- Specific button labels: "Save API Key" rather than "Continue"; error messages include the next step.
- Loading text ends with an ellipsis ("Saving…"); async updates such as toasts and validation use
aria-live="polite". - Handle empty and very long values in user-generated content.
How to use it
Read the file, or run the command it defines, then ask:
Review src/app/settings/** against the web interface guidelines. List findings as file:line, then fix only the form and destructive-action items.
Use it after the build step, not as the build prompt.
Common mistakes
- Treating the rules as a style guide; they are behavior and accessibility checks, not a visual direction. Pair with a design reference for look.
- Letting the agent "fix everything" in one pass. Ask for the findings list first.
Limits
I read the guideline file, not output from running it on a real settings page. The repo is small compared with the design skills, so check each rule against your own product.
Primary source
Primary source: vercel-labs/web-interface-guidelines (Vercel Labs, MIT). Checked: autocomplete, name, type, inputmode, never block paste, clickable labels, submit button behaviour, inline errors with focus on the first error, unsaved-changes warning, confirmation or undo, specific button labels, ellipsis on loading text, aria-live polite, empty and long content. Also verified: the command.md contents and the file:line output. Not verified: the star count and the commit date.
Started from a post by @Vercel Labs, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.