Google 官方 modern-web-guidance — 讓 AI 寫前端不再停在 2019 年水平
- URL: https://www.threads.com/share/BAeODUfy9s
- Canonical: https://www.threads.com/@paul009th/post/Dforjy1kt0A
- Date Saved: 2026-11-13
- Source: Threads (@paul009th)
- Tags: dev-tools, ai-engineering
- Repo: https://github.com/GoogleChrome/modern-web-guidance
Summary
Google Chrome 團隊聯合 Edge、Firefox、MDN 推出 modern-web-guidance 1.0(7.3k stars),專門解決 AI coding agent 寫前端時的「上古代碼」問題。
問題
- LLM 訓練資料充滿遺留代碼,AI 動不動寫臃腫 JS 和過時 Hack
- 原生 HTML/CSS 就能解決的事,AI 習慣用大量 JS 處理
- 無障礙、效能、安全常只做半套
解決方案
- 一行安裝:
npx modern-web-guidance@latest install - 250 個現代 Web 特性 + 203 個實戰場景,精準餵給 Claude Code / Codex / Copilot / Cursor / Gemini CLI
- 附帶
legacy-scan指令,掃描專案裡的上古寫法並自動現代化 - 評測通過率:56% → 88%(日本 note 平台 Next.js 實測 61% → 94%)
支援
- 由 Chrome、Edge、Firefox 與 MDN 團隊聯手維護
- 同時有 modern-web-guidance-src(2.9k stars)原始碼倉庫