Google Open-Sources Modern Web Guidance to Equip AI Agents with Modern Web Dev Skills
Google Chrome team open-sources Modern Web Guidance, a toolkit that lets AI coding agents like Codex and Claude Code query up-to-date web platform APIs, best practices, and browser compatibility guidance to avoid outdated patterns.
Reading font

Google Chrome team has open-sourced Modern Web Guidance , a project that packages expert-reviewed modern web development practices into "Skills" consumable by AI coding agents such as Codex and Claude Code. The goal is to prevent agents from suggesting outdated patterns learned from older training data.
Problem: AI Agents Suggest Outdated Web Patterns
Large language models are trained on code and tutorials that may be years old. When asked to build a web page, they often reach for legacy approaches:
Using JavaScript to recalculate textarea height on every keystroke instead of the modern CSS field-sizing: content property.
Ignoring Input Method Editor (IME) composition events, causing partial input to be sent prematurely when users type with non-Latin keyboards.
Applying loading="lazy" to all images, including the hero image that should load immediately for good LCP.
Solution: Skills That Agents Can Query Locally
Modern Web Guidance organizes guidance by scenario. When an agent receives a relevant task, a Skill prompts it to run a command-line tool that searches the local guidance database. The search matches both keywords and semantic intent. The agent then reads the specific guide, which includes:
Recommended implementation code.
Common pitfalls and edge cases.
Browser compatibility details for the target support matrix.
Concrete Examples from the Project
1. Auto-Resizing Textareas Without JavaScript
Old approach: attach an input listener and set style.height manually. Modern approach: use field-sizing: content (supported in Chrome 123+, Edge 123+, Safari 17.4+). The Skill surfaces this CSS property and its browser support table.
2. Handling IME Composition Correctly
When a user types with an IME (e.g., Chinese Pinyin), the keydown event for Enter fires during composition. The guide shows checking event.isComposing and skipping submission if true. It also notes a Safari quirk where the order of compositionend and keydown differs, and provides a compatible workaround.
3. Optimizing Lazy Loading for Core Web Vitals
For a blog article page, the hero image should not be lazy-loaded. The Skill recommends:
Remove loading="lazy" from the most important above-the-fold image.
Add fetchpriority="high" to signal the browser to start downloading it early.
Keep loading="lazy" for below-the-fold decorative images.
Installation and Usage
The source repository is at https://github.com/GoogleChrome/modern-web-guidance-src. In Codex or Claude Code, paste the repository URL and ask the agent to install the Skills. Afterwards, prepend prompts with: "First use Modern Web Guidance to check the recommended approach for this requirement, then modify the code."
The project has been trending on GitHub's daily ranking, indicating strong developer interest.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.