--- name: ai-friendly-web-design description: > Guidelines for building AI-accessible web interfaces that work well with AI agents, automation tools, and screen readers. Use this skill whenever the user is building or reviewing a webpage, UI component, form, or frontend feature and any of these apply: they mention AI agents, automation, Playwright, web scraping, accessibility, a11y, aria, semantic HTML, or ask how to make their UI "agent-friendly", "AI-friendly", or "machine-readable". Also trigger when reviewing existing frontend code for accessibility or automation compatibility issues, even if the user doesn't explicitly mention AI. --- # AI-Friendly Web Design (AI Accessibility) > Original: [@karminski-牙医](https://weibo.com/2169039837/QxmP8bEIS) · Compiled by: [@ianho7](https://github.com/ianho7) Core principle: **Treat AI agents the same way you'd treat a screen reader for a visually impaired user.** Getting AI Accessibility right is a win on three fronts simultaneously: future-proofing for agent traffic, improving human accessibility, and boosting SEO. --- ## Prime Directive **Minimize modals and popups.** They're bad for humans and bad for AI. When you must alert the user, use a banner instead. --- ## Core Checklist ### DOM Structure & Semantics - **Use semantic HTML tags**: `
`, `
`, `