Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

This Skill Forces AI To Use Modern Web Features

Video information, playback and saved actions.

This Skill Forces AI To Use Modern Web Features

Description: Your AI coding agent probably isn't using the latest CSS and HTML features. Modern Web Guidance is a free set of agent skills from Google that adds web platform best practices and browser compatibility data straight into your agent, so it reaches for the modern way first.

In this video I try it on Trailhead Outfitters, a Vue 3 + Vite storefront that Claude Opus 5.5 built in Kiro CLI with no skills. I install Modern Web Guidance, look at what's inside, and try the `search` and `retrieve` commands. Then I run `legacy-scan` on the app. It found two things: staggered hero animations that can use the new `sibling-index()` function, and a toggle that can use the native `switch` attribute. Then I ask Kiro to modernize the app. It asks how to handle older browsers, adds the changes with polyfills where they're needed, and adds `prefers-reduced-motion` support along the way.

Browser support is configurable. By default it targets Baseline Widely available, which means features that have worked in every major browser for about two and a half years. You can raise that to a newer Baseline year if you want newer features with fallbacks.

Thanks to Web Dev Simplified for the idea. His video is linked below.

In my last video I talked about Frontend development and the future , check it out!

https://www.youtube.com/watch?v=WHxsWhXeyXM

Follow me on socials!

X: https://x.com/ErikCH
LinkedIn: https://www.linkedin.com/in/erikhanchett/
Bluesky : https://bsky.app/profile/erikch.bsky.social
Website: https://www.programwitherik.com
https://www.kiro.dev - my favorite harness!

Would you use this in your project? Let me know in the comments.

🔗 Links

- Modern Web Guidance docs: https://developer.chrome.com/docs/modern-web-guidance
- Get started: https://developer.chrome.com/docs/modern-web-guidance/get-started
- Modern Web Guidance 1.0 announcement: https://developer.chrome.com/blog/modern-web-guidance-v1
- Modern Web Guidance on GitHub: https://github.com/GoogleChrome/modern-web-guidance
- Baseline: https://web.dev/baseline
- Web Dev Simplified, "Google Just Fixed AI Slop - At Least For Web Devs": https://www.youtube.com/watch?v=ty277pJL9ec
- Kiro: https://kiro.dev
- Kiro skills docs: https://kiro.dev/docs/skills/
- Kiro Crew: https://kiro.dev/docs/crew/
- Demo app: REPLACE_WITH_REPO_LINK

🛠️ Commands used in this video

```
npx modern-web-guidance@latest install
npx modern-web-guidance@latest search "animation"
npx modern-web-guidance@latest retrieve "scrollytelling"
npx modern-web-guidance@latest legacy-scan src
kiro-cli chat --model claude-opus-5.5
```

⏱️ Timestamps

- 0:00 What is Modern Web Guidance?
- 0:22 Why your AI skips modern CSS and HTML
- 0:51 Install it with one command
- 0:57 Browser support and Baseline
- 1:26 The demo app: Trailhead Outfitters
- 1:52 Before and after
- 2:10 The prompt I gave Opus 5.5 in Kiro CLI
- 2:54 Installing the skill in Kiro
- 3:19 What's inside the skill
- 4:07 search and retrieve
- 4:51 Running legacy-scan on the before app
- 5:31 Asking Kiro to modernize the app
- 5:51 Polyfills for older browsers
- 6:01 The changes: sibling-index() and the native switch
- 6:44 The switch polyfill
- 7:01 My take Close description
      
Videos related to "This Skill Forces AI To Use Modern Web Features"