Prompt & Done · MODERNWEB
Modern Web Guidance: let the browser do the work your AI hand-codes
A free skill + command-line tool from the Chrome team (stewarded with the Edge, Firefox and MDN teams; code Apache-2.0, guides CC BY 4.0). Your coding agent looks up how to build a UI piece with what browsers now do natively before it writes its own JavaScript.
Tested 12 Nov 2026: Claude Code 2.1.322 with Opus 5.5, same prompt twice (plain, then with the skill loaded), JavaScript-off check in Chromium 153.
1 Install
npx modern-web-guidance@latest installAn interactive wizard. In Claude Code you can also add it as a plugin:
/plugin marketplace add GoogleChrome/modern-web-guidance
/plugin install modern-web-guidance@googlechromeTry it without installing: npx modern-web-guidance@latest search "light dismiss dialog". Scan an existing project: npx modern-web-guidance@latest legacy-scan .
The CLI sends anonymous usage data (search queries, guide IDs) to Google; opt out with export DISABLE_TELEMETRY=1.
2 What we ran and what happened
Prompt: a one-page coffee-subscription landing site with a signup modal (closes on Esc and outside click), a price tooltip, an FAQ and a testimonial carousel.
- Plain Claude used
<dialog>and<details>but opened the modal, closed it on outside click and showed the tooltip with hand-written JavaScript. The tool'slegacy-scanflagged 2 legacy patterns. - With the skill it used
commandforbuttons,<dialog closedby="any">, apopover="hint"tooltip withinterestforand CSS anchor positioning, and an animated<details>.legacy-scan: 0 findings. - JavaScript switched off (Chromium): the plain page's pop-up and tooltip stopped working; the guided page's still opened, closed and showed. The carousel buttons need JavaScript in both.
- Not smaller: the guided page shipped more JavaScript (289 vs 194 lines), mostly fallbacks for browsers that lack these features.
3 Browser support (from the guides' Baseline data, 12 Nov 2026)
Invoker commands (commandfor): all major browsers. <dialog closedby>: Chrome, Edge, Firefox; not Safari. popover="hint": Chrome, Edge, Firefox; not Safari. Hover tooltips with interestfor: Chrome and Edge only. Elsewhere the skill had Claude add small JavaScript fallbacks.
github.com/GoogleChrome/modern-web-guidance · developer.chrome.com/docs/modern-web-guidance
Narration built with Fish Audio.