GoogleChrome/modern-web-guidance-src

GITHUB中文整理

主语言 TypeScript · 11,950 星 · Apache-2.0 · 创建于 2026-01-28

Web 标准编码智能体最佳实践兼容性前端开发 本周第 3 名
打开 GitHub 仓库

这是一套面向编码智能体的现代 Web 技能集合,把 Web 平台知识、最佳实践和浏览器兼容数据嵌入智能体,引导它生成符合现代标准的代码。

Stars 11,950 累计 star,越多说明被认可得越广
Watching 33 订阅该仓库变动的人数
Forks 132 被派生出去的仓库数
Issues 362 当前开放的 Issue 数
语言 TypeScript GitHub 自动判定的主语言
许可证 Apache-2.0 开源协议,用之前先确认能不能商用
24h 增长 +89 1 天前 11,861 星
7 日增长 +1,214 7 天前 10,736 星
30 日增长 — 数据积累中

仓库健康度

5 个维度
只看客观信号,不构成安全性结论
维护活跃度 数据完整
2026-11-11 21:07 最近推送

最近推送 2026-11-11 21:07(19 天前),属于活跃维护

社区响应 数据完整
362 开放 Issue

开放 Issue 362 个 · Fork 132 个

增长趋势 部分数据
+1,214 7 日新增

24 小时 +89 · 7 日 +1,214 · 30 日 积累中

项目规范 数据完整
Apache-2.0 许可证

许可证 Apache-2.0

版本发布 证据不足
— 发布次数

这一项暂无数据,不代表项目没有发布

「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。

Star 趋势

21 天记录
最近 90 天站内记录的星数
11,950当前 Star +10,424首尾差值 2026-11-11最早记录 2026-12-01最近记录

横轴 2026-11-11 → 2026-12-01,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。

它解决什么问题

据 README 归纳
没有它会怎样

编码智能体常沿用老旧写法,容易给出过时或兼容性差的方案。没有这套技能,智能体只能凭训练数据泛泛作答,难以跟上近几年 Web 平台的新能力和最佳实践。

核心能力

6 条
归纳自 README,不是功能列表照抄
  1. 1把 Web 平台的专业知识与最佳实践嵌入编码智能体
  2. 2内嵌浏览器兼容数据,辅助判断新特性的可用性
  3. 3将智能体从遗留模式引向现代 Web 方案
  4. 4覆盖多年新增特性,并延伸到最新前沿
  5. 5采用省 token 的写法,通过评估剔除模型已掌握的内容
  6. 6按 CSS 布局、HTML DOM、JavaScript API 等主题归类内容

项目画像

6 个角度
决定要不要用之前,先看这六条

项目定位

这是一套面向编码智能体的现代 Web 技能集合,把 Web 平台知识、最佳实践和浏览器兼容数据嵌入智能体,引导它生成符合现代标准的代码。

适合谁

适合使用编码智能体开发 Web 前端、希望输出紧跟现代平台能力与兼容性的人,以及关心智能体生成质量的团队。

典型场景

让编码智能体在编写页面时优先采用较新的 CSS 布局与交互特性;让智能体在选用 HTML 元素时避开过时写法;让智能体在涉及新 API 时参考兼容性数据,评估能否安全采用。

部署难度

需要先具备可用的编码智能体环境,再将技能内容接入其中;具体安装与配置步骤未详细说明。

风险限制

需要配合编码智能体使用;内容由 Google Chrome、Microsoft Edge、Mozilla Firefox 和 MDN 团队及社区共同维护,具体门槛和环境要求未详细说明。

最近维护

最近一次推送是 2026-11-11 21:07。 实现方式:项目以技能形式向编码智能体注入 Web 平台知识,配套代码和文档用于编写、校准与评估这些内容;并借助评估筛掉模型已掌握的部分,使注入内容更精炼。

README 原文细节

3 个板块
项目自己写的功能与用法,原文照录

核心功能README 里列出来的能力清单

CSS & Layout (144 features)

  • ::backdrop — Content — prefers-contrast media query
  • ::details-content — content-visibility — prefers-reduced-motion media query
  • ::file-selector-button — contrast-color() — progress()
  • ::placeholder — Cross-document view transitions — reading-flow
  • ::selection — currentColor — Relative colors
  • :dir() — Custom highlights — rem
  • :focus-visible — Custom properties — resize (CSS property)
  • :focus-within — display animation — revert
  • :has() — Element-scoped view transitions — revert-rule
  • :host-context() — em unit — Safe area inset environment variables
  • :is() — field-sizing — Scroll marker target pseudo-classes
  • :modal — filter — Scroll method promises
  • :not() — flex-wrap: balance — Scroll snap
  • :nth-child() of <selector> — Flexbox — Scroll snap events

HTML & DOM (38 features)

  • :autofill — <video> — HTML-in-canvas
  • :indeterminate — Autonomous custom elements — inert
  • <audio> — blocking="render" — Interest invokers
  • <details> — Customizable <select> — Invoker commands
  • <dialog closedby> — Declarative shadow DOM — Lazy-loading media
  • <dialog> — DOM — moveBefore()
  • <input type="checkbox" switch> — Email, telephone, and URL <input> types — MutationObserver
  • <input type="range"> — Fetch priority — Mutually exclusive <details> elements
  • <input> — focusgroup — Popover
  • <link rel="expect"> — Form-associated custom elements — popover="hint"
  • <link rel="preload"> — hidden="until-found" — Shadow DOM
  • <progress> — HTML setter methods — ToggleEvent source
  • <slot> — HTML streaming setters

JavaScript & APIs (87 features)

  • <install> — Form-associated WebMCP attributes — Resize observer
  • <meta name="text-scale"> — HTML processing instructions — Sanitizer API
  • <template for> — image() — Scheduler API
  • AbortController and AbortSignal — inputmode — Small, large, and dynamic viewport units
  • AbortSignal.any() — integrity() for url() — Soft navigation performance entries
  • AbortSignal.timeout() — Interaction contentful paint performance entries — Speculation rules
  • ARIA attribute reflection — Intersection observer — structuredClone()
  • ariaNotify() — Intl.DurationFormat — Subresource integrity
  • Array by copy — Keyboard events — Summarizer
  • Array findLast() and findLastIndex() — Language detector — SVG
  • Array grouping — LanguageModel — SVG filters
  • Async clipboard — Lazy-loading images and iframes — Temporal
  • autocorrect — light-dark() image values — Text encoding and decoding
  • beforeinstallprompt — Local network access — text-decoration-inset

Safe Adoption of Modern Features

  • Progressive Enhancement & Nuanced Fallbacks: We distinguish between purely additive enhancements (like speculative preloading) which are safe to let older browsers silently ignore, and critical behavi
  • Responsible Fallbacks: We prioritize lightweight, case-specific custom fallbacks (<50 LOC) or conditionally-loaded polyfills instead of heavy third-party bundles.
  • Gotchas & Quirks: We document hidden platform limitations, such as the 64KB payload quota for fetchLater() or macOS-specific scrollbar behaviors.
  • Baseline-Aware Integration: We leverage real-time compatibility data from the Baseline project so agents dynamically adapt to current browser support.
  • Origin Trial & Volatile Feature Gates: Guides covering experimental Origin Trial APIs or volatile features (single-engine features shipped within the last 3 months or still stabilizing) remain discove

怎么安装从零跑起来的步骤

Quickstart

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

npx modern-web-guidance@latest install

Alternative Installation Methods

npx skills add GoogleChrome/modern-web-guidance

实现原理它内部是怎么做的

How It Works

  • Activation: The coding agent activates the modern-web-guidance skill because of a relevant task. The agent is instructed to use the modern-web-guidance CLI for web platform queries.
  • Local Semantic Search: The agent runs modern-web-guidance search "". The tool matches the query to the best guide locally using an offline, zero-dependency embedding model and BM25 search engine (no s
  • Guide Fetch: The agent retrieves the guide via modern-web-guidance retrieve , inserting targeted code patterns, gotchas, and fallbacks directly into its context window.

关于 modern-web-guidance-src 的常见问题

7 个问题
答案来自 README 归纳与 GitHub 实时数据
modern-web-guidance-src 是做什么的?

这是一套面向编码智能体的现代 Web 技能集合,把 Web 平台知识、最佳实践和浏览器兼容数据嵌入智能体,引导它生成符合现代标准的代码。 编码智能体常沿用老旧写法,容易给出过时或兼容性差的方案。没有这套技能,智能体只能凭训练数据泛泛作答,难以跟上近几年 Web 平台的新能力和最佳实践。

modern-web-guidance-src 有哪些功能?

核心能力:把 Web 平台的专业知识与最佳实践嵌入编码智能体;内嵌浏览器兼容数据,辅助判断新特性的可用性;将智能体从遗留模式引向现代 Web 方案;覆盖多年新增特性,并延伸到最新前沿;采用省 token 的写法,通过评估剔除模型已掌握的内容;按 CSS 布局、HTML DOM、JavaScript API 等主题归类内容。

modern-web-guidance-src 适合谁用?

适合使用编码智能体开发 Web 前端、希望输出紧跟现代平台能力与兼容性的人,以及关心智能体生成质量的团队。

modern-web-guidance-src 是怎么工作的?

项目以技能形式向编码智能体注入 Web 平台知识,配套代码和文档用于编写、校准与评估这些内容;并借助评估筛掉模型已掌握的部分,使注入内容更精炼。

怎么安装 modern-web-guidance-src?

按项目 README 的说明:This command runs an interactive wizard to install Modern Web Guidance. See Alternative Installation Methods below. Requires Node.js 22 or l。完整命令见下方「怎么安装」一节或 GitHub 仓库的 README。

用 modern-web-guidance-src 有什么门槛或限制?

需要配合编码智能体使用;内容由 Google Chrome、Microsoft Edge、Mozilla Firefox 和 MDN 团队及社区共同维护,具体门槛和环境要求未详细说明。

modern-web-guidance-src 现在还在维护吗?数据怎么样?

目前 11,950 星,132 个 Fork,主语言 TypeScript,创建于 2026-01-28,最近一次推送 2026-11-11 21:07,许可证 Apache-2.0。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。

这些内容来自哪

读法说明
中文整理据 README 归纳,数据取自 GitHub
中文说明据项目 README 归纳只写 README 能确认的内容,不替作者补功能与数字
关键数据与 GitHub 页面一致星数、Fork、语言与时间都不做二次加工
数据日期2026-11-26 05:52星数与介绍这份数据是哪一天的

项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-11-26 05:52。