Modern Web Guidance



Modern Web Guidance 是一組技能,可將網頁平台專業知識、最佳做法和瀏覽器相容性資料,直接嵌入程式設計代理。

使用 modern-web-guidance CLI 安裝 (建議):

npx modern-web-guidance@latest install

可與您偏好的程式設計 AI 代理搭配運作

Modern Web Guidance 可與您慣用的程式設計 AI 代理搭配運作,確保您在偏好的工作流程中,能取得現代化網頁最佳做法的指引。

使用 Vercel 的代理技能,在專案中安裝 Modern Web Guidance:

npx skills add GoogleChrome/modern-web-guidance

從 Claude Code 外掛程式安裝 Modern Web Guidance:

claude plugin install modern-web-guidance@claude-plugins-official

安裝 Copilot CLI 的 Modern Web Guidance 技能:

# 1. Add the marketplace:
/plugin marketplace add GoogleChrome/modern-web-guidance
# 2. Install the plugin
/plugin install modern-web-guidance@googlechrome

為 Antigravity CLI 安裝 Modern Web Guidance 技能:

agy plugin install https://github.com/GoogleChrome/modern-web-guidance
觀看 Google I/O 大會的 Modern Web Guidance 講座,進一步瞭解這些技能,以及如何運用這些技能,改善 AI 輔助網頁程式開發人員工作流程。

提示可提升使用者體驗

請嘗試下列範例提示,在 AI 輔助程式設計工作流程中叫用 Modern Web Guidance,建構新功能、翻新舊程式碼,並加快應用程式速度。
Create an accordion-style stats component that smoothly animates on open and close.
Build a tab bar with a sliding highlight that tracks active items using CSS Anchor Positioning.
Design a dashboard card that uses container queries to adapt its layout to its own width.
Update legacy modal window implementations to use the <dialog> element and animate them using modern CSS features.
Migrate legacy tooltips to use the Popover API and CSS Anchor Positioning.
Implement a passkey-based login flow using the latest WebAuthn features.
Implement a starter Content Security Policy (CSP) without breaking my app.
Perform a security audit of my site and suggest improvements.
Set up my app to begin preloading pages when users hover over important links.
My app has lots of long tasks, and its INP is affected. Help me fix it.
Help me improve my app's LCP.
瞭解如何引導 AI 程式設計助理,生成先進且可互通的網頁程式碼!在這個入門程式碼實驗室中,您將稽核舊版網頁應用程式,並使用 Modern Web Guidance 工具提示代理,採用現代最佳做法。瞭解如何設定基準瀏覽器目標、最佳化 Core Web Vitals,以及將一般 AI 輸出內容轉換為高效能網頁解決方案。
將代理專用 Chrome 開發人員工具與 Modern Web Guidance 技能結合,改善網頁程式開發人員的工作流程。執行即時效能稽核、檢查無障礙樹狀結構,以及擷取控制台記錄,然後自動套用精確的新式網頁程式碼修正。

瞭解貢獻方式

有任何改善「Modern Web Guidance」的想法嗎?瞭解如何貢獻一己之力!