AI Card Bao BCAST.AICARDBAO.COM
Home / AI coding / Modern Web Guidance
AI TOOL / #12811

Modern Web Guidance

An open-source web specification guidance package developed by the Google Chrome team, which helps existing AI-based coding agents generate front-end code that adheres to modern web best practices.

Introduction

Modern Web Guidance is a set of skills that embed web platform expertise, best practices, and browser compatibility data directly into your coding agents. It helps to steer your coding agents away from legacy patterns, and instead toward solutions that harness the power and capabilities of the modern web platform.

*Stewarded by the Google Chrome, Microsoft Edge, Mozilla Firefox, and MDN teams, alongside the web development community.*

Documentation · Eval Dashboard · Source Code · Report an Issue

Quickstart

npx modern-web-guidance@latest install

This command runs an interactive wizard to install Modern Web Guidance. See Alternative Installation Methods below. Requires Node.js 22 or later.

Try it out (without installing)

# Search for relevant guides
npx modern-web-guidance@latest search "animate a dialog modal backdrop"

# Retrieve a guide by ID
npx modern-web-guidance@latest retrieve "animate-to-from-top-layer"

# Scan a codebase for legacy patterns to modernize
npx modern-web-guidance@latest legacy-scan .

Why?

Coding agents often default to older patterns because LLM training data contains vast amounts of legacy code. This often leads them to generate bloated JavaScript for tasks that now have native, high-performance web platform solutions.

Even if a model knows an API exists, it often lacks the density of real-world, modern implementation patterns required for production-ready code.

Modern Web Guidance bridges this gap. Our skill's CLI returns targeted, expert-curated guidelines directly into your agent's context window, focusing on:

  • Modern Browser APIs: Helping models correctly structure APIs they frequently misuse.
  • Performance & Accessibility: Preferring platform-level APIs that can be optimized by the browser and include built-in accessibility affordances.
  • Responsible Fallbacks: Guiding models to use sensible, lightweight fallbacks instead of heavy polyfills or legacy libraries.

What's Included?

We cover the past several years of the web platform's new features, all the way up to the cutting edge. The guides are designed to be token-efficient; we run evals enabling us to prune lowest-common-denominator content that models already know.

Core Disciplines

🎨 User Experience

Smooth visual states (View Transitions, entry/exit animations, parallax scroll, CSS scrollbar-color).

📐 CSS Layout

Modern layout systems (container queries, subgrid, modern color spaces like oklch, text-wrap tuning, and line-height trimming).

⚡ Performance

Speed optimizations (instant preloading, Interaction to Next Paint (INP) diagnostics, and scheduling tasks via scheduler.yield).

📝 Forms & UI

Native components (Anchor Positioning for tooltips, Popover API, dialogs, :user-invalid validation, and auto-sizing fields).

♿ Accessibility

Important considerations (screen reader and keyboard operability, content navigation and discoverability).

🤖 Built-in AI

Local client models (native translation, summarization, and language detection APIs).

_View an example:_ the navigation-drawer guide.

The full list

277 modern web features

<
Visits:44 Updated:2026-12-04 AI tools

Related

Hot Spot Bar Aggregate the top lists from mainstream platforms across the internet, including Weibo, Zhihu, Bilibili, and Baidu. No need to switch between apps repeatedly – you can get a comprehensive overview of all the major events and hot topics happening everywhere. Rectangle Use Control+Option combined with the direction keys to resize windows so that they occupy half of the screen when moved left or right, and use the up arrow key to maximize them. When working on multiple screens, this set of shortcut keys can help organize all the open windows neatly on your desktop. PC2.8 Programmers use tools for navigation, integrating resources such as code hosting platforms, API interfaces, and technical communities. Global Nature Watch Satellites enable us to observe how forests are gradually being cut down and disappearing across the Earth, providing a clear glimpse of the extent of global vegetation destruction. Local-first tools and creative platforms The second aspect involves original articles that document the decisions made while developing these tools: which compression settings are suitable for web pages, which ones work better for Xiaohongshu, what steps need to be checked before exporting PDF files, and why some tool platforms opt for pre-rendering. The purpose of writing these articles is not to provide instruction, but rather to record the mistakes and challenges that were encountered along the way. question bank We offer a vast collection of technical interview questions, covering topics such as algorithms, data structures, and system design—with over 1,000 questions in total. These resources will help you efficiently improve your programming skills and enable you to easily secure offers from top global IT companies.