web-interface-guidelines: Instructions file for Codex

AGENTS.md

web-interface-guidelines AGENTS.md is an instructions file for Codex, OpenCode from vercel-labs/web-interface-guidelines. It costs 1,958 tokens per session, scanned A, original, MIT.

Accessibility and interaction rules for web interfaces, covering keyboard use, focus, touch targets, forms, loading states, and navigation.

In plain words
What is it for?
Use them when building or reviewing web forms, buttons, focus behavior, responsive layouts, validation, submission states, and navigation.
Why use it?
They reduce common usability problems that can make an interface difficult to use with a keyboard, on a phone, or with assistive technology.

Instructions file for CodexOpenCode ✓ vendor

Written for Codex and OpenCode: the file is AGENTS.md.

This is vercel-labs/web-interface-guidelines's own configuration. It tells Codex and OpenCode how to work on web-interface-guidelines itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything web-interface-guidelines configures →

About the project

Web Interface Guidelines is a practical set of recommendations for making website interfaces usable, accessible, and consistent. Web developers use it when building interfaces with any framework, including React and Next.js. The catalogue entry provides these guidelines as an instruction for coding agents.

vercel-labs/web-interface-guidelines · 1,118 stars · on GitHub · vercel.com

Reuse

Borrowing it

Nothing to install: this file belongs to vercel-labs/web-interface-guidelines. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/vercel-labs/web-interface-guidelines

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-interface-guidelines AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/vercel-labs/web-interface-guidelines/agents-md/github.svg)](https://agentmods.dev/instructions/vercel-labs/web-interface-guidelines/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/vercel-labs/web-interface-guidelines/agents-md"><img src="https://agentmods.dev/badge/instructions/vercel-labs/web-interface-guidelines/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for web-interface-guidelines AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vercel-labs/web-interface-guidelines/agents-md"><img src="https://agentmods.dev/badge/instructions/vercel-labs/web-interface-guidelines/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,958 This file is loaded in full into every session.
When invoked 1,958 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01958 $0.01958
Opus 5.5 $0.00783 $0.00783
Sonnet 5.5 $0.00392 $0.00392
Haiku 4.5 $0.00196 $0.00196

Measured 1mo ago against content hash 35411b4a2dcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

web-interface-guidelines AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Concise rules for building accessible, fast, delightful UIs. Use MUST/SHOULD/NEVER to guide decisions.

Interactions

Keyboard

  • MUST: Full keyboard support per WAI-ARIA APG
  • MUST: Visible, unobscured focus rings (:focus-visible; group with :focus-within); sticky/fixed elements never cover focus
  • MUST: Manage focus (trap, move, return) per APG patterns
  • NEVER: outline: none without visible focus replacement

Targets & Input

  • MUST: Hit target ≥24px (mobile ≥44px); if visual <24px, expand hit area
  • MUST: Mobile <input> font-size ≥16px to prevent iOS zoom
  • NEVER: Disable browser zoom (user-scalable=no, maximum-scale=1)
  • MUST: touch-action: manipulation to prevent double-tap zoom
  • SHOULD: Set -webkit-tap-highlight-color to match design

Forms

  • MUST: Hydration-safe inputs (no lost focus/value)
  • NEVER: Block paste in <input>/<textarea>
  • MUST: Loading buttons show spinner and keep original label
  • MUST: Enter submits focused input; in <textarea>, ⌘/Ctrl+Enter submits
  • MUST: Keep submit enabled until request starts; then disable with spinner
  • MUST: Accept free text, validate after—don't block typing
  • MUST: Allow incomplete form submission to surface validation
  • MUST: Errors inline next to fields; on submit, focus first error
  • MUST: autocomplete + meaningful name; correct type and inputmode
  • SHOULD: Disable spellcheck for emails/codes/usernames
  • SHOULD: Placeholders end with … and show example pattern
  • MUST: Warn on unsaved changes before navigation
  • MUST: Compatible with password managers & 2FA; allow pasting codes
  • MUST: Trim values to handle text expansion trailing spaces
  • MUST: No dead zones on checkboxes/radios; label+control share one hit target

State & Navigation

  • MUST: URL reflects state (deep-link filters/tabs/pagination/expanded panels)
  • MUST: Back/Forward restores scroll position
  • MUST: Links use <a>/<Link> for navigation (support Cmd/Ctrl/middle-click)
  • NEVER: Use <div onClick> for navigation

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines · +71 tokens per session 35411b4a2dcf
  2. 2mo ago First seen · 156 lines · 1,887 tokens per session scan A 113bce3da621

Subscribe to this mod's changes

web-interface-guidelines AGENTS.md is an instructions file published in the GitHub repository vercel-labs/web-interface-guidelines (1,118 stars, last pushed 1mo ago), licensed MIT. It adds 1,958 tokens to every session, about $0.0078 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

web-interface-guidelines AGENTS.md compared with instructions from other repositories

web-interface-guidelines AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
web-interface-guidelines AGENTS.mdvercel-labs/web-interface-guidelinesInstructions file1.1k1mo agoMITA1,958Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode