- Category
- Engineering
- Published
- July 28, 2026
- Reading time
- 7 min read
One skill, 100+ guides: how Google keeps AI web code modern
Modern Web Guidance uses one entry-point skill, local search and selective retrieval to give coding agents current web-platform knowledge without loading a handbook into every task.
Key Takeaways
AI can build a frontend quickly. It can also produce a surprising amount of CSS slop.
I use that term for more than ugly gradients, excessive cards and the generic visual style people now associate with AI-generated websites. The code can be slop too. A component may look correct while relying on unnecessary JavaScript, a large dependency or a pattern the web platform has already replaced.
That is not only an AI problem. I do not know every new browser API either. The platform changes quickly, browser support changes with it, and most developers do not spend their evenings reading specifications. A coding agent can help implement a newer feature, but it also needs help finding the right pattern and understanding when that pattern fits the browsers a project supports.
Google Chrome's Modern Web Guidance is interesting because it tries to solve both parts of that problem: current implementation guidance for the agent, and explicit browser-support and fallback guidance for the developer.
The guidance has named maintainers
The project is supported by the Chrome team, the Microsoft Edge team and contributors from the web-development community. Its source repository is more than a pile of Markdown files. It defines subject-matter experts, content-area technical leads and infrastructure maintainers, with named ownership for guide categories.
Lea Verou reviews the CSS, forms, HTML and UI guide areas. She has worked in the W3C CSS Working Group since 2012, served on the W3C Technical Architecture Group and has helped design browser features used across the web. Bramus Van Damme, from Chrome Developer Relations, owns or reviews many of the scrolling, transition and view-transition guides. Barry Pollard and Malte Ubl review performance content. Paul Irish and Micah Jo own the project infrastructure and its grader and task files.
That does not mean every sentence was personally written by a famous standards author, or that a guide should be followed blindly. It means the guidance has named people responsible for technical areas, contributors with direct web-platform experience, and a process for review rather than anonymous advice generated from old examples.
One skill acts as the entry point
Modern Web Guidance covers more than a hundred platform features and real-world use cases. A separate agent skill for every use case would make the advice modular, but discovery becomes the next problem. An agent would need to inspect an ever-growing list of names and descriptions before it even starts work.
One enormous frontend skill has the opposite problem. Guidance about passkeys, scroll animations, image loading and date handling does not belong in the context of every CSS task.
The project uses a third approach. Its main skill does not teach the entire web platform. It tells the agent how to search the guide library.
npx modern-web-guidance@latest search \
"animate a dialog modal backdrop"Search by intent, not API name
A result includes an ID, a short description, the relevant platform features, token count and similarity score. The agent can choose a guide, then retrieve its full contents. Only then does the detailed implementation guidance enter the working context.
That matters because developers do not always know the feature they need. Someone might ask an agent to make a card change layout when it becomes too narrow. A documentation system based on exact terms expects the developer to already know this is a container-query problem.
Semantic search can connect the requested behaviour to guidance about size-aware components and container queries. The agent can discover the appropriate modern pattern without the developer first needing to know its API name.
Context becomes the working set
Agent skills already provide progressive disclosure: the model sees a skill name and description, then loads the full instructions when the skill becomes relevant. Modern Web Guidance adds another layer.
The agent discovers one broad web-development skill. That skill tells it to search the guide library. Search returns small pieces of metadata. The agent retrieves one or more relevant guides. Only those guides enter the working context.
Ten short skills can probably rely on ordinary skill triggering. Hundreds of detailed guides need retrieval. The context window is not a storage location for everything the agent might possibly need. It is the working set for the task in front of it.
The approach also lets the guidance change independently of the model. The project can add a newer feature, update browser-support information or correct a fallback without waiting for another model release.
Shared guidance still needs local policy
Using the newest browser API is not automatically the right decision. A public website supporting older browsers has different constraints from an internal tool running in a controlled Chromium environment.
Modern Web Guidance uses Baseline browser-support targets and project-specific policies. Its default treats Baseline Widely Available features as safe, while teams can document a different target in repository files such as `AGENTS.md` or `CLAUDE.md`. When a feature is not widely available, the guide should specify and test a fallback or progressive-enhancement strategy.
This is where the developer remains responsible. The guidance can tell an agent that a native API exists, show a current implementation pattern and explain the fallback. The team still decides whether that feature belongs in the product, which browsers matter and whether the fallback is acceptable.
The project also tests the guidance rather than treating a well-written skill description as proof. Its evaluation setup gives agents implementation tasks and uses outcome-based Playwright assertions to compare results. A guide can be too vague, search can retrieve the wrong result, or a model may already know the basic advice well enough that it no longer deserves context.
A useful pattern beyond frontend work
This is not only a frontend pattern. A CMS agency could expose one Drupal development skill backed by searchable guidance for access checks, caching, configuration management, entity APIs, migrations, multilingual content, security, testing and upgrades.
An agent implementing an access check would retrieve the relevant security and Drupal API guidance. It would not receive the complete handbook for migrations, frontend components and deployment pipelines.
The same model applies to company coding standards, architecture decisions, design-system rules and client-specific integration documentation. It also fits the context problem in content management. An article introduction may need tone-of-voice examples and audience information. Open Graph metadata may need title rules, image requirements and character limits. A case study may need approved project facts, anonymisation rules and a standard structure.
The context belongs to the site, but only part of it belongs in each request. One skill does not need to contain every answer. Sometimes its most useful job is knowing where to look.