modern-web-guidance

modern-web-guidance is a skill for Claude Code from vercel-labs/agent-browser. It costs 123 tokens per session (2,258 once invoked), scanned A, original, Apache-2.0.

A frontend development guide based on Chrome's Modern Web Guidance and Baseline compatibility information. It combines written web-platform advice with checks of the built page in a real browser.

In plain words
What is it for?
Use it to build or modernize web interfaces, find relevant guidance, scan source files, and check the finished page with browser automation.
Why use it?
It helps catch outdated web patterns and verify that UI changes behave as intended, including layout movement and reduced-motion support.

Skill for Claude Code ✓ vendor

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build or modernize web interfaces, find relevant guidance, scan source files, and check the finished page with browser automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vercel-labs/agent-browser/modern-web-guidance
About the project

agent-browser is a command-line tool that lets AI agents control web browsers for tasks such as clicking, navigation, and screenshots. Developers use it to automate browser interactions from agent workflows.

vercel-labs/agent-browser · 53,083 stars · on GitHub · agent-browser.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vercel-labs/agent-browser --skill modern-web-guidance
Clone the repo
git clone --depth 1 https://github.com/vercel-labs/agent-browser

Made for: Claude Code.

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 modern-web-guidance

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel-labs/agent-browser/modern-web-guidance/github.svg)](https://agentmods.dev/skills/vercel-labs/agent-browser/modern-web-guidance)
Your own site
<a href="https://agentmods.dev/skills/vercel-labs/agent-browser/modern-web-guidance"><img src="https://agentmods.dev/badge/skills/vercel-labs/agent-browser/modern-web-guidance/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 modern-web-guidance

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel-labs/agent-browser/modern-web-guidance"><img src="https://agentmods.dev/badge/skills/vercel-labs/agent-browser/modern-web-guidance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,258 The whole file, excluding the scripts and references it only reads on demand.
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.00123 $0.02258
Opus 5.5 $0.00049 $0.00903
Sonnet 5.5 $0.00025 $0.00452
Haiku 4.5 $0.00012 $0.00226

Measured 8d ago against content hash 93234d8103db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modern-web-guidance 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 8d 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.

skill-data/modern-web-guidance/SKILL.md · 166 lines

How it starts

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

Modern Web Guidance

Modern Web Guidance is a set of guides from Chrome that describe how to build common UI with current web platform features, including Baseline compatibility data. Its CLI returns guidance and can statically scan source files for legacy patterns. It does not load or run the page, so it cannot tell you whether the result works.

Use Modern Web Guidance to decide what to write and agent-browser to check the built page in Chrome. Finish only after every rule you applied has a browser check with recorded evidence.

Get the guidance

Search for the task, then retrieve the guides that match. You do not need to install anything; npx runs the CLI directly.

npx modern-web-guidance@latest search "animate a dialog"
# [{"id":"animate-to-from-top-layer","description":"Animate elements such as dialogs, popovers, and tooltips as they're entering/exiting the top layer."}, ...]

npx modern-web-guidance@latest retrieve "dialog"
npx modern-web-guidance@latest retrieve "dialog,animate-to-from-top-layer"
npx modern-web-guidance@latest list

retrieve accepts one ID or several comma-separated IDs. When the text is larger than 9,500 bytes and standard output is not a file, the CLI saves it to a file in the system temporary directory and prints only its path, for example Output (12.1 KB, 220 lines) saved to .../mwg-guide-49624-1794420750850.md. Read that whole file before you write code. To choose the location, redirect the output to a file, which receives the full guide:

npx modern-web-guidance@latest retrieve "dialog" > dialog.md

To find existing code that a guide would replace, run the static scan on the source directory. It reads files only:

npx modern-web-guidance@latest legacy-scan ./src --json
npx modern-web-guidance@latest legacy-scan ./src --guide dialog

The scan has rules for only part of the guidance (33 guides in version 1.0.0), so a result with no findings does not mean the code already follows every guide.

Read the full file on GitHub · 166 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. 8d ago First seen · 166 lines · 123 tokens per session scan A 93234d8103db

Subscribe to this mod's changes

modern-web-guidance is a skill published in the GitHub repository vercel-labs/agent-browser (53,083 stars, last pushed today), licensed Apache-2.0. It adds 123 tokens to every session and 2,258 once invoked, about $0.0005 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-11-13.

Related

modern-web-guidance compared with skills from other repositories

modern-web-guidance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modern-web-guidancevercel-labs/agent-browserSkill53ktodayApache-2.0A123Claude Code
webui-codechromium/chromiumSkill25ktodayBSD-3-ClauseA33Claude Code, Codex
figma-to-webuichromium/chromiumSkill25ktodayBSD-3-ClauseA44Claude Code, Codex
modern-web-guidancefcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A46Claude Code
responsiveness-checkjezweb/claude-skillsSkill1.1k1mo agoMITA85Claude Code
browser-81345ecdFuRongJun-1999/dsh-memorySkill729todayMITA128Claude Code
browser-7e96fe1dFuRongJun-1999/dsh-memorySkill729todayMITA86Claude Code