chrome-extensions
Build and publish Chrome Extensions using Manifest V3 best practices. Use this skill whenever the user asks to create, modify,…
Search tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns. Trigger immediately for: modals/dialogs/popovers, tables, dark mode,
Claude Code
$ npx -y skills add googlechrome/modern-web-guidance --skill modern-web-guidance --agent claude-code
Codex
$ npx skills add googlechrome/modern-web-guidance --skill modern-web-guidance -a codex -y
Cursor
$ npx skills add googlechrome/modern-web-guidance --skill modern-web-guidance -a cursor -y
Gemini CLI
$ npx skills add googlechrome/modern-web-guidance --skill modern-web-guidance -a gemini-cli -y
GitHub Copilot
$ npx skills add googlechrome/modern-web-guidance --skill modern-web-guidance -a github-copilot -y
OpenCode
$ npx skills add googlechrome/modern-web-guidance --skill modern-web-guidance -a opencode -y
Windsurf
$ npx skills add googlechrome/modern-web-guidance --skill modern-web-guidance -a windsurf -y
name: modern-web-guidance description: | Search tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns. Trigger immediately for: modals/dialogs/popovers, tables, dark mode, anchor positioning, container queries, view transitions, scroll-driven animations, parallax/reveals, forms, validation, autofill, accessibility, custom selects, scrollbars, CWV (LCP, INP, CLS), content-visibility, fetch priority, image optimization, security, passkeys, HTML sanitization, web components, dates/timezones, built-in AI, WebAssembly, standard HTML/CSS/DOM in frameworks, etc. DO NOT trigger for: backend (SQL, ORMs, API routes), infra/scripts (CI/CD, Docker, Actions, Python/Go, Git), or tooling/trivial (Vite, tsconfig, ESLint, tests, copy/renames, 3P docs), etc.
Search and retrieve standardized modern web best practices at the **start** of implementing or updating any web UI, CSS layout/animation, or client-side JS logic (dates/timezones, sanitization, performance, accessibility, UX fixes) before writing ad-hoc solutions or adding dependencies.
Run `modern-web-guidance` directly with `npx` using a **2–5 word action-oriented English query** for a **single web platform capability or UI pattern**:
npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_11_10-47b4c80e
> **Note**: Returns `[{ "id", "description" }, ...]`. Judge results by their `description` fields: > - **Match found**: Call `retrieve` directly—do not also run `list`. > - **Weak or empty results**: If `search` returns `[]` or unrelated descriptions, **rephrase `search` once** using the concrete HTML/CSS/UI component noun or synonym (e.g., `dialog`, `modal`, `popover`, `table`, `form`) before falling back to `list` (or use `list` once for broad UI audits). > - **Topic not covered**: If no `description` matches after rephrasing, proceed without retrieving unrelated guides.
Once you have relevant `id`(s) from the search results, call `retrieve` to get the full guide(s)—including both specific use-case guides that match your task and any broader discipline guide (e.g., `html`, `css`, `forms`, `accessibility`, `color`, `performance`, `security`) that applies. You can pass multiple IDs separated by commas.
npx -y modern-web-guidance@latest retrieve "<id>"
If `retrieve` saves large output (> 9.5 KB) to a temporary file to prevent truncation, read that file path in full using your file-reading tool (reading remaining line ranges if needed)—do not use `cat` or `head`.
When generating or modifying code, cross-check the implementation against the retrieved guide before concluding:
When you consult `modern-web-guidance` for a task, end the response where you deliver those changes with a `### Modern Web Guidance` section:
`- **\`<id>\`**: <Non-obvious APIs, overrides, or fallbacks applied and the pitfall prevented> ("<short verbatim quote of the specific rule or gotcha>").`
**Only** when asked for a broad, open-ended codebase modernization or legacy-pattern scan where no specific target feature or component is named (do **not** run `legacy-scan` when asked to add, update, fix, or audit a specific feature or component), run the 4-step modernization flow:
> **Note**: `legacy-scan` scans for a curated subset (~20% of the guidance corpus).
npx -y modern-web-guidance@latest legacy-scan <path> --json
1. Scan: Run `legacy-scan <path> --json` to detect legacy web platform patterns across the proj
Modern Web Guidance is a set of skills that embed web platform expertise, best practices, and browser compatibility data directly into your coding agents.
Build and publish Chrome Extensions using Manifest V3 best practices. Use this skill whenever the user asks to create, modify,…
Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert…
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One…