← Modern Web GuidanceCONTENT HISTORY

Update to Modern Web Guidance

Snapshot Nov 30, 2026 · 18:13 UTC · version 1.0.0

Collection source: downloaded plugin package. These snapshots do not have a confirmed matching collection source. Differences in file lists alone do not establish changes to the package.

WHAT CHANGED

Instructions updated for modern-web-guidance

Full description — Now says: patterns. Trigger immediately for: modals/dialogs/popovers, tables, dark mode, anchor positioning, container queries, view transitions, scroll-driven...

Observed in instructions or declared skills. Runtime behavior has not been tested.

Save Modern Web Guidance and check future changes in Following.

Up to 3 plugins free · no card required.

All fields and original values.

Full description

Before

Sep 30, 2026 · 23:16 UTC

patterns. Trigger immediately for: - UI/Layout: Modals, dialogs, popovers, Glassmorphism/backdrop-filters, anchor positioning, container queries, `:has()`, `:user-valid`. - Scroll/Motion: View Transitions, Scroll-driven animations, scrol...

After

Nov 30, 2026 · 18:13 UTC

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 select...

Skill instructions

Before

Sep 30, 2026 · 23:16 UTC

for: - UI/Layout: Modals, dialogs, popovers, Glassmorphism/backdrop-filters, anchor positioning, container queries, `:has()`, `:user-valid`. - Scroll/Motion: View Transitions, Scroll-driven animations, scroll parallax/reveals. - Pe...

After

Nov 30, 2026 · 18:13 UTC

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, ...

Supporting files

Before

Sep 30, 2026 · 23:16 UTC

[{"relative_path":"guides/accessibility/accessibility.md","size_in_bytes":24640},{"relative_path":"guides/accessibility/accessible-error-announcement.md","size_in_bytes":7200},{"relative_path":"guides/built-in-ai/language-detection.md","...

After

Nov 30, 2026 · 18:13 UTC

[{"relative_path":"guides/accessibility/accessibility.md","size_in_bytes":51700},{"relative_path":"guides/accessibility/accessible-error-announcement.md","size_in_bytes":13642},{"relative_path":"guides/accessibility/accessible-generated-...

Compare saved observations

Download comparison JSON

SKILL.md text changes

− removed · + added

--- before
+++ after
@@ -2,122 +2,89 @@
 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:
-  - UI/Layout: Modals, dialogs, popovers, Glassmorphism/backdrop-filters, anchor positioning, container queries, `:has()`, `:user-valid`.
-  - Scroll/Motion: View Transitions, Scroll-driven animations, scroll parallax/reveals.
-  - Performance: CWV (LCP, INP), content-visibility, Fetch Priority, image optimization.
-  - System/APIs: Local filesystem access, WebUSB, WebSockets sync, WebAssembly widgets.
-  - Frameworks: Adapting layout/styles in React, Vue, Angular.
-  - General Frontend: Forms, autofill, advanced inputs, custom scrollbars, modern component states, etc.
-
-  DO NOT trigger for:
-  - Backend: Database SQL, ORMs, Express API routes.
-  - Pipelines: CI/CD deployment, Docker, Actions.
-  - Generic: Local scripts (Python/Go tools), ESLint, Git.
+  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.
 ---
 
 # Modern Web Guidance
 
-A skill to search for specific web development use cases and retrieve their corresponding best practice guides.
-
-## When to use
-
-Must use this skill:
-- At the **start** of implementing any web feature.
-- Before creating a new component, to check if a standardized pattern already exists.
-- To avoid implementing ad-hoc solutions or loading large dependencies unnecessarily.
+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.
 
-## Usage Instructions
+## Primary Workflow
 
 ### Step 1. Search Use Cases
 
-Search with an action-oriented query summarizing what you want to achieve using the `search` command. Run `modern-web-guidance` directly with `npx`.
+Run `modern-web-guidance` directly with `npx` using a **2–5 word action-oriented query** for a **single web platform capability or UI pattern**:
+- **Keep queries focused and generic**: Describe the user-visible capability (`<verb> + <UI/platform object>`, optionally paired with the target HTML/CSS/JS feature name if known). Omit framework/library names (`React`, `Vue`, `Tailwind`, etc.) and app/domain nouns (product, route, or component/file names). Split multi-feature tasks into separate `search` calls.
+- **Name implied UI primitives**: When the user's prompt expresses intent without naming the UI primitive (e.g. "confirm first", "delete with confirmation", "pick a date"), translate the domain intent into the implied UI component or platform mechanism (e.g. search `"confirmation modal dialog"` or `"confirm dialog"` rather than `"confirm destructive action"`, or `"date picker input"` rather than `"pick a date"`).
+- **Example**: Search `"light dismiss dialog"` or `"responsive data table"`, **not** `"dialog"` (too terse), `"responsive table dark mode"` (compound — split into two searches), or `"close React settings modal on outside click"` (framework/app noise).
 
 ```sh
-npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_09_04-7de96777
-```
-
-**Example Output**:
-```json
-[
-  {
-    "id": "optimize-image-priority",
-    "description": "Optimize the loading priority of Largest Contentful Paint (LCP) candidate images.",
-    "category": "performance",
-    "featuresUsed": [ "Fetch priority" ],
-    "tokenCount": 985,
-    "similarity": 0.7289
-  },
-  {
-    "id": "defer-rendering-heavy-content",
-    "description": "Reduce rendering times in content-heavy web pages by deferring rendering for offscreen content.",
-    "category": "performance",
-    "featuresUsed": [ "content-visibility", "hidden=\"until-found\"" ],
-    "tokenCount": 1250,
-    "similarity": 0.6961
-  }
-]
+npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_11_06-909bc374
 ```
 
-> **Note**: If search results are vague, return no matches, or show low similarity scores, run the `list` command to browse all guides:
-> ```sh
-> npx -y modern-web-guidance@latest list
-> ```
-
----
+> **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.
 
 ### Step 2. Retrieve Best Practices
 
-Once you have a relevant `id` from the search results, call this script using the `retrieve` command to get the full guide. You can pass multiple IDs separated by commas.
+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.
 
 ```sh
 npx -y modern-web-guidance@latest retrieve "<id>"
 ```
 
-If the output is truncated, you must repeat the command but redirect to a file and read that file.
-
-**Example Output**:
-`The markdown content of the guide describing implementation steps...`
-
----
+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`.
 
 ### Step 3. Verify Guidance Compliance
 
 When generating or modifying code, cross-check the implementation against the retrieved guide before concluding:
 - **Applicable Guidance & Fallbacks**: Ensure the relevant modern patterns and necessary fallback strategies from the guide are correctly applied, without forcing unrequested features.
 - **Task Fulfillment**: Confirm that the implementation fully satisfies the user's request.
+- Do not run `legacy-scan`; it's for detecting legacy patterns to modernize, not this.
+
+### Step 4. Disclose Skill Usage
+
+When you consult `modern-web-guidance` for a task, end the response where you deliver those changes with a `### Modern Web Guidance` section:
+- **When retrieved guides shaped your code**: Write **one** bullet (1–2 sentences, ≤75 words) per newly applied `<id>` in first-person voice explaining the non-obvious implementation choices, CSS/API overrides, or fallbacks `<id>` required and the pitfall it prevented, anchored by a short verbatim quote of that specific rule or gotcha (never the guide's intro overview):
+  `- **\`<id>\`**: <Non-obvious APIs, overrides, or fallbacks applied and the pitfall prevented> ("<short verbatim quote of the specific rule or gotcha>").`
+  - **Never** guess `<id>`s or quotes from memory after context compaction (re-run `search`/`retrieve` if needed), and credit **only** guide-backed changes from the current turn.
+- **When searched/listed in this turn but zero guides applied**: Write one first-person sentence naming which topics or guides you checked in `modern-web-guidance` and why none applied (omit if any guide applied).
+
+## Alternative flow: Modernize an existing codebase
+
+**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).
+
+```sh
+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 project or directory.
+2. Verify: Check each finding against its `keepWhen` / `dropWhen` rubric; drop false positives (fallbacks, cross-file helpers, vendor code, lookalikes).
+3. Report: Summarize verified findings (and the modernization plan, if editing) for the user, noting that `legacy-scan` only checks the subset of guides (~20% of the catalog) that have deterministic legacy rules.
+4. Modernize (when the user asked to modernize rather than only audit/report): Retrieve each finding's guide (`retrieve "<guide-id>"` via Step 2), apply the replacement (keeping existing libraries as fallbacks where the guide requires one), and re-run `legacy-scan <path>` on the modified files to confirm resolution.
+   - Dropped findings and kept fallbacks still match static scans; do not edit safe code or inspect `legacy-scan.mjs` to force 0 findings.
 
 ## Using npx / pnpx
 
-- Prefer `pnpx` over `npx` if `pnpm` is available (note: `pnpx` does not use the `-y` flag).
-- When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` specifically (or `pnpx modern-web-guidance@latest *`), never bare `npx *` or `pnpx *`.
-- IMPORTANT: on Windows, using `npx` may fail. Use `npx.cmd ...` instead.
-- Fetching and running `modern-web-guidance` requires outbound network access. If running in a sandboxed, permission-gated, or approval-based environment (e.g., Codex, Claude Code), **proactively request approval/allowlisting for the command with network access BEFORE executing it the first time**, avoiding sandbox network timeouts.
-- In sandboxed environments where `~/.npm` is read-only or restricted, set `NPM_CONFIG_CACHE=/tmp/npm-cache`.
-- If the command hangs due to being offline, try running again in offline mode: `npx --offline …`.
-- The `--skill-version` flag is used to determine if this SKILL.md is out of date. If it is, a warning message is logged to stderr.
+- **Runner & Permissions**: Prefer `pnpx` over `npx` if `pnpm` is available (`pnpx` does not use `-y`); on Windows, use `npx.cmd`. When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` (or `pnpx modern-web-guidance@latest *`) specifically, never bare `npx *` or `pnpx *`.
+- **Sandboxes & Network**: Fetching `modern-web-guidance` requires outbound network access. In sandboxed or approval-gated environments (e.g., Codex, Claude Code), **proactively request approval/allowlisting with network access BEFORE the first execution** to avoid timeouts, and set `NPM_CONFIG_CACHE=/tmp/npm-cache` if `~/.npm` is read-only.
+- **Offline**: If the command hangs due to being offline, retry with `npx --offline …`.
 
 ## Guidelines
 
-- Always search **first** to find the most relevant guides.
-- These guides are usually framework-agnostic; adapt them correctly to your setup.
-- Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.
+- Always search **first** to find the most relevant guides. Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.
+- These guides use vanilla HTML/CSS/JS; adapt them to your framework without dropping the modern feature:
+  - **Types**: Spread/cast newly shipped HTML attributes (`{...({ popover: 'hint', interestfor: id, commandfor: id, switch: '' } as any)}`, `[attr.*]`) rather than removing them or merging `@types/react`.
+  - **SSR & Bundlers**: Guard `window`/`HTMLElement` in SSR and load polyfills via bare `import('<pkg>')` in client effects (or set Vite `build.target: 'esnext'` for top-level `await`)—never copy files from `node_modules`.
+  - **DOM, IDs & CSS**: Call `showModal()`/`moveBefore()` via refs on non-VDOM-managed nodes, generate per-instance IDs/`anchor-name`s (`useId()`), and keep `:root` and `@starting-style` top-level/unscoped.
 
 ## Interpreting Browser Support & Fallbacks
 
-* **Default Behavior**: All guides assume **Baseline Widely available** features are safe to use without fallbacks. For features that are not Baseline widely available, you **MUST** follow the fallback recommendations in the guide, unless the user has specified a custom browser support policy.
-* **Custom Policies**: If the user has already defined explicit browser support requirements, use the browser compatibility data in the guide to determine if a fallback can be safely ignored.
-  - For Baseline YYYY targets, a feature satisfies this target if its "Baseline since" date is <= YYYY.
-  - **Policy Examples**:
-    - _"Do not implement feature fallbacks."_ (for exploratory prototypes of the cutting-edge web)
-    - _"Safari 17.4+"_ (for internal tools targeting macOS or Tauri-based desktop apps)
-    - _"Never recommend or implement polyfills; if a Baseline Newly Available feature is required for core functionality, provide a lightweight custom fallback or redesign the approach."_ (to minimize bundle size and avoid technical debt)
-    - _"Assume a modern execution environment where Baseline Newly Available features can be used natively, provided they are strictly feature-detected and degrade gracefully."_ (for progressive enhancement strategies)
-* **Reactive Policy Discovery**: Watch for environmental cues to suggest documenting a policy in CLAUDE.md or AGENTS.md. Suggest this if the developer:
-  - Mentions building for a restricted runtime (e.g., Electron or Tauri).
-  - Explicitly excludes specific targets (e.g., "we don't support Desktop Chrome").
-  - Expresses hesitation about polyfill complexity, bundle size, or performance cost.
-  - Questions if a feature is safe to use without fallbacks.
-
-  No defined policy format. This is an example: `**Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and does not require external dependencies.`
+* **Default Behavior**: All guides assume **Baseline Widely available** features are safe to use without fallbacks. For features that are not Baseline widely available, you **MUST** follow the fallback recommendations in the guide, unless the user or `.mwgrc` has specified a custom browser support policy.
+* **Custom Policies**: If `.mwgrc` configures `"baseline"` (e.g., `"newly"`, `"limited"`, or `"2024"`, surfaced as a `> [!IMPORTANT]` banner on `retrieve`) or the user defines explicit browser support requirements, use the guide's compatibility data to determine which fallbacks apply — **omit** compatibility fallbacks, `@supports not (...)` blocks, and polyfills for features that already satisfy the target (for `Baseline YYYY` targets, a feature satisfies the target if its "Baseline since" date is `<= YYYY`). Examples: _"Do not implement feature fallbacks"_, _"Safari 17.4+"_, _"Never implement polyfills; use a lightweight custom fallback or redesign"_, or _"Allow Newly Available features if feature-detected with graceful degradation"_.
+* **Reactive Policy Discovery**: Suggest setting `"baseline"` in `.mwgrc` via `npx modern-web-guidance@latest set-baseline <widely|newly|limited|YYYY>` or documenting a policy in `CLAUDE.md` / `AGENTS.md` (e.g., `**Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and no external dependencies`) if the developer targets a restricted runtime (Electron/Tauri), excludes specific browsers, hesitates over polyfill size/complexity, or asks if a feature is safe without fallbacks.
Full technical diff · 3 changed fields

changed /description

BEFORE
"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: - UI/Layout: Modals, dialogs, popovers, Glassmorphism/backdrop-filters, anchor positioning, container queries, `:has()`, `:user-valid`. - Scroll/Motion: View Transitions, Scroll-driven animations, scroll parallax/reveals. - Performance: CWV (LCP, INP), content-visibility, Fetch Priority, image optimization. - System/APIs: Local filesystem access, WebUSB, WebSockets sync, WebAssembly widgets. - Frameworks: Adapting layout/styles in React, Vue, Angular. - General Frontend: Forms, autofill, advanced inputs, custom scrollbars, modern component states, etc. DO NOT trigger for: - Backend: Database SQL, ORMs, Express API routes. - Pipelines: CI/CD deployment, Docker, Actions. - Generic: Local scripts (Python/Go tools), ESLint, Git."
AFTER
"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.\nTrigger 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.\nDO 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.\n"

changed /included_files

BEFORE
[
  {
    "relative_path": "guides/accessibility/accessibility.md",
    "size_in_bytes": 24640
  },
  {
    "relative_path": "guides/accessibility/accessible-error-announcement.md",
    "size_in_bytes": 7200
  },
  {
    "relative_path": "guides/built-in-ai/language-detection.md",
    "size_in_bytes": 3641
  },
  {
    "relative_path": "guides/built-in-ai/language-model.md",
    "size_in_bytes": 16693
  },
  {
    "relative_path": "guides/built-in-ai/prompt-api.md",
    "size_in_bytes": 16693
  },
  {
    "relative_path": "guides/built-in-ai/summarizer.md",
    "size_in_bytes": 6082
  },
  {
    "relative_path": "guides/built-in-ai/translator.md",
    "size_in_bytes": 7385
  },
  {
    "relative_path": "guides/css/animate-to-intrinsic-sizes.md",
    "size_in_bytes": 5429
  },
  {
    "relative_path": "guides/css/calculate-with-intrinsic-sizes.md",
    "size_in_bytes": 9910
  },
  {
    "relative_path": "guides/css/child-state-based-styling.md",
    "size_in_bytes": 4971
  },
  {
    "relative_path": "guides/css/content-based-styling.md",
    "size_in_bytes": 5341
  },
  {
    "relative_path": "guides/css/css-layout.md",
    "size_in_bytes": 20380
  },
  {
    "relative_path": "guides/css/css.md",
    "size_in_bytes": 27634
  },
  {
    "relative_path": "guides/css/design-token-reactivity.md",
    "size_in_bytes": 5922
  },
  {
    "relative_path": "guides/css/dynamic-sibling-styling.md",
    "size_in_bytes": 3678
  },
  {
    "relative_path": "guides/css/fluid-scaling.md",
    "size_in_bytes": 3088
  },
  {
    "relative_path": "guides/css/individual-transform-properties.md",
    "size_in_bytes": 3693
  },
  {
    "relative_path": "guides/css/overflow-clipping-control.md",
    "size_in_bytes": 8231
  },
  {
    "relative_path": "guides/css/reduce-style-repetition.md",
    "size_in_bytes": 3994
  },
  {
    "relative_path": "guides/css/size-aware-styling.md",
    "size_in_bytes": 2986
  },
  {
    "relative_path": "guides/css/style-parent-with-has.md",
    "size_in_bytes": 6190
  },
  {
    "relative_path": "guides/css/usage-aware-component-variations.md",
    "size_in_bytes": 5270
  },
  {
    "relative_path": "guides/forms/animated-select-picker.md",
    "size_in_bytes": 8003
  },
  {
    "relative_path": "guides/forms/autofill-address-form.md",
    "size_in_bytes": 4192
  },
  {
    "relative_path": "guides/forms/autofill-highlight-inputs.md",
    "size_in_bytes": 2353
  },
  {
    "relative_path": "guides/forms/autofill-payment-form.md",
    "size_in_bytes": 8681
  },
  {
    "relative_path": "guides/forms/autofill-sign-in-form.md",
    "size_in_bytes": 10094
  },
  {
    "relative_path": "guides/forms/autofill-sign-up-form.md",
    "size_in_bytes": 11294
  },
  {
    "relative_path": "guides/forms/brand-consistent-forms.md",
    "size_in_bytes": 8496
  },
  {
    "relative_path": "guides/forms/branded-select-styling.md",
    "size_in_bytes": 5629
  },
  {
    "relative_path": "guides/forms/custom-select-picker-layouts.md",
    "size_in_bytes": 5169
  },
  {
    "relative_path": "guides/forms/form-fields-automatically-fit-contents.md",
    "size_in_bytes": 6042
  },
  {
    "relative_path": "guides/forms/forms.md",
    "size_in_bytes": 14370
  },
  {
    "relative_path": "guides/forms/ime-safe-enter-submit.md",
    "size_in_bytes": 5379
  },
  {
    "relative_path": "guides/forms/required-field-feedback.md",
    "size_in_bytes": 6961
  },
  {
    "relative_path": "guides/forms/rich-media-picker.md",
    "size_in_bytes": 6709
  },
  {
    "relative_path": "guides/forms/select-menu-interaction.md",
    "size_in_bytes": 5573
  },
  {
    "relative_path": "guides/forms/validate-input-after-interaction.md",
    "size_in_bytes": 8823
  },
  {
    "relative_path": "guides/html/html.md",
    "size_in_bytes": 17935
  },
  {
    "relative_path": "guides/js/calculate-event-differentials.md",
    "size_in_bytes": 4545
  },
  {
    "relative_path": "guides/js/capture-location-agnostic-data.md",
    "size_in_bytes": 3668
  },
  {
    "relative_path": "guides/js/coordinate-global-events.md",
    "size_in_bytes": 3562
  },
  {
    "relative_path": "guides/js/format-human-readable-durations.md",
    "size_in_bytes": 4313
  },
  {
    "relative_path": "guides/js/manage-recurring-intervals.md",
    "size_in_bytes": 3363
  },
  {
    "relative_path": "guides/js/model-partial-time-concepts.md",
    "size_in_bytes": 4337
  },
  {
    "relative_path": "guides/js/stabilize-reactive-state.md",
    "size_in_bytes": 3552
  },
  {
    "relative_path": "guides/js/support-global-calendar-systems.md",
    "size_in_bytes": 5800
  },
  {
    "relative_path": "guides/performance/batch-analytics-events.md",
    "size_in_bytes": 6519
  },
  {
    "relative_path": "guides/performance/break-up-long-tasks.md",
    "size_in_bytes": 2222
  },
  {
    "relative_path": "guides/performance/calculate-total-foreground-time.md",
    "size_in_bytes": 2941
  },
  {
    "relative_path": "guides/performance/conditional-async-dependencies.md",
    "size_in_bytes": 3686
  },
  {
    "relative_path": "guides/performance/defer-rendering-heavy-content.md",
    "size_in_bytes": 6418
  },
  {
    "relative_path": "guides/performance/defer-work-until-scroll-ends.md",
    "size_in_bytes": 3382
  },
  {
    "relative_path": "guides/performance/deliver-optimized-decorative-images.md",
    "size_in_bytes": 2918
  },
  {
    "relative_path": "guides/performance/deprioritize-background-fetches.md",
    "size_in_bytes": 1870
  },
  {
    "relative_path": "guides/performance/detect-initial-visibility-state.md",
    "size_in_bytes": 4638
  },
  {
    "relative_path": "guides/performance/efficient-background-processing.md",
    "size_in_bytes": 5139
  },
  {
    "relative_path": "guides/performance/faster-spa-view-transitions.md",
    "size_in_bytes": 3532
  },
  {
    "relative_path": "guides/performance/flicker-free-client-side-ab-testing.md",
    "size_in_bytes": 8654
  },
  {
    "relative_path": "guides/performance/full-session-analytics.md",
    "size_in_bytes": 5800
  },
  {
    "relative_path": "guides/performance/identify-heavy-scripts.md",
    "size_in_bytes": 4296
  },
  {
    "relative_path": "guides/performance/identify-inp-causes.md",
    "size_in_bytes": 5516
  },
  {
    "relative_path": "guides/performance/improve-next-page-load-performance.md",
    "size_in_bytes": 7320
  },
  {
    "relative_path": "guides/performance/interactions-in-complex-layouts.md",
    "size_in_bytes": 3432
  },
  {
    "relative_path": "guides/performance/optimize-image-priority.md",
    "size_in_bytes": 4592
  },
  {
    "relative_path": "guides/performance/optimize-preload-priority.md",
    "size_in_bytes": 3357
  },
  {
    "relative_path": "guides/performance/optimize-script-priority.md",
    "size_in_bytes": 2650
  },
  {
    "relative_path": "guides/performance/performance.md",
    "size_in_bytes": 20229
  },
  {
    "relative_path": "guides/performance/resolution-optimized-pseudo-elements.md",
    "size_in_bytes": 2378
  },
  {
    "relative_path": "guides/performance/schedule-tasks-by-priority.md",
    "size_in_bytes": 2298
  },
  {
    "relative_path": "guides/performance/sequence-distributed-events.md",
    "size_in_bytes": 3552
  },
  {
    "relative_path": "guides/privacy/privacy.md",
    "size_in_bytes": 11213
  },
  {
    "relative_path": "guides/security/passkey-authentication.md",
    "size_in_bytes": 9887
  },
  {
    "relative_path": "guides/security/passkey-conditional-create.md",
    "size_in_bytes": 6698
  },
  {
    "relative_path": "guides/security/passkey-management.md",
    "size_in_bytes": 9506
  },
  {
    "relative_path": "guides/security/passkey-reauthentication.md",
    "size_in_bytes": 5055
  },
  {
    "relative_path": "guides/security/passkey-registration.md",
    "size_in_bytes": 9515
  },
  {
    "relative_path": "guides/security/passkeys.md",
    "size_in_bytes": 4305
  },
  {
    "relative_path": "guides/security/security.md",
    "size_in_bytes": 25812
  },
  {
    "relative_path": "guides/ui-atoms/carousel-slide-effects.md",
    "size_in_bytes": 8312
  },
  {
    "relative_path": "guides/ui-atoms/component-specific-light-dark-theme.md",
    "size_in_bytes": 9526
  },
  {
    "relative_path": "guides/ui-atoms/position-aware-tooltips.md",
    "size_in_bytes": 6584
  },
  {
    "relative_path": "guides/ui-atoms/pull-to-reveal.md",
    "size_in_bytes": 4794
  },
  {
    "relative_path": "guides/ui-atoms/resilient-context-menus-and-nested-dropdowns.md",
    "size_in_bytes": 6504
  },
  {
    "relative_path": "guides/ui-atoms/scroll-position-aware-elements.md",
    "size_in_bytes": 3701
  },
  {
    "relative_path": "guides/ui-atoms/scroll-progress-indicator.md",
    "size_in_bytes": 6901
  },
  {
    "relative_path": "guides/ui-atoms/scrollability-affordance-hints.md",
    "size_in_bytes": 3762
  },
  {
    "relative_path": "guides/ui-atoms/shrinking-header-on-scroll.md",
    "size_in_bytes": 6499
  },
  {
    "relative_path": "guides/ui-atoms/state-aware-sticky-headers.md",
    "size_in_bytes": 6412
  },
  {
    "relative_path": "guides/ui-behaviors/anchor-positioning-tab-underline.md",
    "size_in_bytes": 2956
  },
  {
    "relative_path": "guides/ui-behaviors/animate-element-entry-exit.md",
    "size_in_bytes": 5200
  },
  {
    "relative_path": "guides/ui-behaviors/animate-to-from-top-layer.md",
    "size_in_bytes": 6945
  },
  {
    "relative_path": "guides/ui-behaviors/carousel-snap-highlights.md",
    "size_in_bytes": 5838
  },
  {
    "relative_path": "guides/ui-behaviors/consistent-cross-document-transitions.md",
    "size_in_bytes": 12090
  },
  {
    "relative_path": "guides/ui-behaviors/cross-document-transitions.md",
    "size_in_bytes": 4538
  },
  {
    "relative_path": "guides/ui-behaviors/custom-button-actions.md",
    "size_in_bytes": 7388
  },
  {
    "relative_path": "guides/ui-behaviors/declarative-dialog-popover-control.md",
    "size_in_bytes": 10523
  },
  {
    "relative_path": "guides/ui-behaviors/directional-navigation-transitions.md",
    "size_in_bytes": 5026
  },
  {
    "relative_path": "guides/ui-behaviors/dynamic-sibling-animations.md",
    "size_in_bytes": 2670
  },
  {
    "relative_path": "guides/ui-behaviors/group-element-transitions.md",
    "size_in_bytes": 5158
  },
  {
    "relative_path": "guides/ui-behaviors/highlight-text-ranges.md",
    "size_in_bytes": 5574
  },
  {
    "relative_path": "guides/ui-behaviors/interactive-content-reveal.md",
    "size_in_bytes": 5218
  },
  {
    "relative_path": "guides/ui-behaviors/interest-triggered-action-previews.md",
    "size_in_bytes": 4288
  },
  {
    "relative_path": "guides/ui-behaviors/interest-triggered-tooltips.md",
    "size_in_bytes": 8368
  },
  {
    "relative_path": "guides/ui-behaviors/light-dismiss-a-dialog.md",
    "size_in_bytes": 3676
  },
  {
    "relative_path": "guides/ui-behaviors/move-dom-element-without-losing-state.md",
    "size_in_bytes": 2617
  },
  {
    "relative_path": "guides/ui-behaviors/parallax-scroll-effects.md",
    "size_in_bytes": 9047
  },
  {
    "relative_path": "guides/ui-behaviors/persistent-top-layer-ui.md",
    "size_in_bytes": 2328
  },
  {
    "relative_path": "guides/ui-behaviors/physics-based-easing.md",
    "size_in_bytes": 5954
  },
  {
    "relative_path": "guides/ui-behaviors/platform-controls-dismiss-dialog.md",
    "size_in_bytes": 2663
  },
  {
    "relative_path": "guides/ui-behaviors/same-document-transitions.md",
    "size_in_bytes": 8490
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-entry-exit-effects.md",
    "size_in_bytes": 8035
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-snap-realtime-feedback.md",
    "size_in_bytes": 6854
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-snap-state-sync.md",
    "size_in_bytes": 4033
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-target-on-load.md",
    "size_in_bytes": 3422
  },
  {
    "relative_path": "guides/ui-behaviors/scrollytelling.md",
    "size_in_bytes": 8465
  },
  {
    "relative_path": "guides/ui-behaviors/search-hidden-content.md",
    "size_in_bytes": 6950
  },
  {
    "relative_path": "guides/ui-behaviors/swipe-to-remove.md",
    "size_in_bytes": 27541
  },
  {
    "relative_path": "guides/ui-components/navigation-drawer.md",
    "size_in_bytes": 16340
  },
  {
    "relative_path": "guides/ui-components/persistent-app-tours.md",
    "size_in_bytes": 5284
  },
  {
    "relative_path": "guides/ui-components/persistent-toast-notifications.md",
    "size_in_bytes": 3618
  },
  {
    "relative_path": "guides/ui-components/progress-ring.md",
    "size_in_bytes": 6034
  },
  {
    "relative_path": "guides/ui-components/scrollspy.md",
    "size_in_bytes": 5937
  },
  {
    "relative_path": "guides/ui-components/spinner.md",
    "size_in_bytes": 5312
  },
  {
    "relative_path": "guides/ui-components/stack-drill-down.md",
    "size_in_bytes": 34158
  },
  {
    "relative_path": "guides/visual-design/adapt-scrollbar-to-contrast-preferences.md",
    "size_in_bytes": 3611
  },
  {
    "relative_path": "guides/visual-design/apply-webgl-shaders.md",
    "size_in_bytes": 10195
  },
  {
    "relative_path": "guides/visual-design/complex-shapes.md",
    "size_in_bytes": 3592
  },
  {
    "relative_path": "guides/visual-design/customize-scrollbar-color-and-thickness.md",
    "size_in_bytes": 2483
  },
  {
    "relative_path": "guides/visual-design/dark-mode.md",
    "size_in_bytes": 15613
  },
  {
    "relative_path": "guides/visual-design/export-html-media-from-canvas.md",
    "size_in_bytes": 11766
  },
  {
    "relative_path": "guides/visual-design/expose-canvas-content-to-browser-features.md",
    "size_in_bytes": 15057
  },
  {
    "relative_path": "guides/visual-design/improve-text-layout-and-legibility.md",
    "size_in_bytes": 5192
  },
  {
    "relative_path": "guides/visual-design/interactive-content-in-3d-scenes.md",
    "size_in_bytes": 14228
  },
  {
    "relative_path": "guides/visual-design/precise-text-alignment.md",
    "size_in_bytes": 4855
  },
  {
    "relative_path": "guides/visual-design/prevent-text-wrapping.md",
    "size_in_bytes": 2446
  },
  {
    "relative_path": "guides/visual-design/shaped-cutouts.md",
    "size_in_bytes": 7179
  },
  {
    "relative_path": "guides/visual-design/soft-edge-content-fade.md",
    "size_in_bytes": 2659
  },
  {
    "relative_path": "guides/visual-design/visually-stable-font-fallbacks.md",
    "size_in_bytes": 2978
  },
  {
    "relative_path": "guides/visual-design/visually-stable-mixed-fonts.md",
    "size_in_bytes": 2914
  },
  {
    "relative_path": "guides/visual-design/visually-texture-content.md",
    "size_in_bytes": 3814
  },
  {
    "relative_path": "guides/webmcp/agentic-forms.md",
    "size_in_bytes": 5146
  },
  {
    "relative_path": "guides/webmcp/agentic-javascript-tools.md",
    "size_in_bytes": 4372
  },
  {
    "relative_path": "guides/webmcp/webmcp.md",
    "size_in_bytes": 3762
  }
]
AFTER
[
  {
    "relative_path": "guides/accessibility/accessibility.md",
    "size_in_bytes": 51700
  },
  {
    "relative_path": "guides/accessibility/accessible-error-announcement.md",
    "size_in_bytes": 13642
  },
  {
    "relative_path": "guides/accessibility/accessible-generated-content.md",
    "size_in_bytes": 2215
  },
  {
    "relative_path": "guides/accessibility/respect-os-text-scale.md",
    "size_in_bytes": 7224
  },
  {
    "relative_path": "guides/built-in-ai/language-detection.md",
    "size_in_bytes": 3663
  },
  {
    "relative_path": "guides/built-in-ai/language-model.md",
    "size_in_bytes": 19418
  },
  {
    "relative_path": "guides/built-in-ai/prompt-api.md",
    "size_in_bytes": 19418
  },
  {
    "relative_path": "guides/built-in-ai/summarizer.md",
    "size_in_bytes": 6360
  },
  {
    "relative_path": "guides/built-in-ai/translator.md",
    "size_in_bytes": 7402
  },
  {
    "relative_path": "guides/css/animate-to-intrinsic-sizes.md",
    "size_in_bytes": 5809
  },
  {
    "relative_path": "guides/css/atrule-support-conditionals.md",
    "size_in_bytes": 5799
  },
  {
    "relative_path": "guides/css/calculate-with-intrinsic-sizes.md",
    "size_in_bytes": 10671
  },
  {
    "relative_path": "guides/css/child-state-based-styling.md",
    "size_in_bytes": 4969
  },
  {
    "relative_path": "guides/css/content-based-styling.md",
    "size_in_bytes": 5341
  },
  {
    "relative_path": "guides/css/css-layout.md",
    "size_in_bytes": 21396
  },
  {
    "relative_path": "guides/css/css.md",
    "size_in_bytes": 12546
  },
  {
    "relative_path": "guides/css/design-token-reactivity.md",
    "size_in_bytes": 5922
  },
  {
    "relative_path": "guides/css/dynamic-sibling-styling.md",
    "size_in_bytes": 3689
  },
  {
    "relative_path": "guides/css/fluid-scaling.md",
    "size_in_bytes": 3317
  },
  {
    "relative_path": "guides/css/individual-transform-properties.md",
    "size_in_bytes": 3693
  },
  {
    "relative_path": "guides/css/overflow-clipping-control.md",
    "size_in_bytes": 8248
  },
  {
    "relative_path": "guides/css/reduce-style-repetition.md",
    "size_in_bytes": 4011
  },
  {
    "relative_path": "guides/css/responsive-design.md",
    "size_in_bytes": 1885
  },
  {
    "relative_path": "guides/css/selector-atrule-combinations.md",
    "size_in_bytes": 3650
  },
  {
    "relative_path": "guides/css/size-aware-styling.md",
    "size_in_bytes": 2993
  },
  {
    "relative_path": "guides/css/style-parent-with-has.md",
    "size_in_bytes": 13964
  },
  {
    "relative_path": "guides/css/usage-aware-component-variations.md",
    "size_in_bytes": 5270
  },
  {
    "relative_path": "guides/forms/animated-select-picker.md",
    "size_in_bytes": 8748
  },
  {
    "relative_path": "guides/forms/autofill-address-form.md",
    "size_in_bytes": 5009
  },
  {
    "relative_path": "guides/forms/autofill-highlight-inputs.md",
    "size_in_bytes": 3628
  },
  {
    "relative_path": "guides/forms/autofill-payment-form.md",
    "size_in_bytes": 9970
  },
  {
    "relative_path": "guides/forms/autofill-sign-in-form.md",
    "size_in_bytes": 10540
  },
  {
    "relative_path": "guides/forms/autofill-sign-up-form.md",
    "size_in_bytes": 11864
  },
  {
    "relative_path": "guides/forms/brand-consistent-forms.md",
    "size_in_bytes": 8556
  },
  {
    "relative_path": "guides/forms/branded-select-styling.md",
    "size_in_bytes": 5785
  },
  {
    "relative_path": "guides/forms/custom-select-picker-layouts.md",
    "size_in_bytes": 7573
  },
  {
    "relative_path": "guides/forms/form-fields-automatically-fit-contents.md",
    "size_in_bytes": 6042
  },
  {
    "relative_path": "guides/forms/forms.md",
    "size_in_bytes": 19384
  },
  {
    "relative_path": "guides/forms/ime-safe-enter-submit.md",
    "size_in_bytes": 6440
  },
  {
    "relative_path": "guides/forms/required-field-feedback.md",
    "size_in_bytes": 14251
  },
  {
    "relative_path": "guides/forms/rich-media-picker.md",
    "size_in_bytes": 10728
  },
  {
    "relative_path": "guides/forms/select-menu-interaction.md",
    "size_in_bytes": 13181
  },
  {
    "relative_path": "guides/forms/slider.md",
    "size_in_bytes": 6692
  },
  {
    "relative_path": "guides/forms/sms-otp-form.md",
    "size_in_bytes": 12806
  },
  {
    "relative_path": "guides/forms/switch.md",
    "size_in_bytes": 2595
  },
  {
    "relative_path": "guides/forms/validate-input-after-interaction.md",
    "size_in_bytes": 17625
  },
  {
    "relative_path": "guides/html/accessible-web-components.md",
    "size_in_bytes": 5239
  },
  {
    "relative_path": "guides/html/custom-elements.md",
    "size_in_bytes": 9472
  },
  {
    "relative_path": "guides/html/form-associated-custom-elements.md",
    "size_in_bytes": 5012
  },
  {
    "relative_path": "guides/html/html.md",
    "size_in_bytes": 21320
  },
  {
    "relative_path": "guides/html/prerendering-custom-elements.md",
    "size_in_bytes": 3679
  },
  {
    "relative_path": "guides/html/shadow-dom.md",
    "size_in_bytes": 3922
  },
  {
    "relative_path": "guides/html/styling-web-components.md",
    "size_in_bytes": 8891
  },
  {
    "relative_path": "guides/html/web-components.md",
    "size_in_bytes": 6804
  },
  {
    "relative_path": "guides/js/calculate-event-differentials.md",
    "size_in_bytes": 8465
  },
  {
    "relative_path": "guides/js/capture-location-agnostic-data.md",
    "size_in_bytes": 9882
  },
  {
    "relative_path": "guides/js/coordinate-global-events.md",
    "size_in_bytes": 4045
  },
  {
    "relative_path": "guides/js/sort-high-precision-timestamps.md",
    "size_in_bytes": 6708
  },
  {
    "relative_path": "guides/js/support-global-calendar-systems.md",
    "size_in_bytes": 5961
  },
  {
    "relative_path": "guides/performance/batch-analytics-events.md",
    "size_in_bytes": 6594
  },
  {
    "relative_path": "guides/performance/break-up-long-tasks.md",
    "size_in_bytes": 2287
  },
  {
    "relative_path": "guides/performance/calculate-total-foreground-time.md",
    "size_in_bytes": 2978
  },
  {
    "relative_path": "guides/performance/conditional-async-dependencies.md",
    "size_in_bytes": 5418
  },
  {
    "relative_path": "guides/performance/defer-rendering-heavy-content.md",
    "size_in_bytes": 6418
  },
  {
    "relative_path": "guides/performance/defer-work-until-scroll-ends.md",
    "size_in_bytes": 3382
  },
  {
    "relative_path": "guides/performance/deliver-optimized-decorative-images.md",
    "size_in_bytes": 2918
  },
  {
    "relative_path": "guides/performance/deprioritize-background-fetches.md",
    "size_in_bytes": 1870
  },
  {
    "relative_path": "guides/performance/detect-initial-visibility-state.md",
    "size_in_bytes": 4675
  },
  {
    "relative_path": "guides/performance/efficient-background-processing.md",
    "size_in_bytes": 5141
  },
  {
    "relative_path": "guides/performance/faster-spa-view-transitions.md",
    "size_in_bytes": 3733
  },
  {
    "relative_path": "guides/performance/flicker-free-client-side-ab-testing.md",
    "size_in_bytes": 8671
  },
  {
    "relative_path": "guides/performance/full-session-analytics.md",
    "size_in_bytes": 5842
  },
  {
    "relative_path": "guides/performance/identify-heavy-scripts.md",
    "size_in_bytes": 4333
  },
  {
    "relative_path": "guides/performance/identify-inp-causes.md",
    "size_in_bytes": 8912
  },
  {
    "relative_path": "guides/performance/improve-next-page-load-performance.md",
    "size_in_bytes": 7337
  },
  {
    "relative_path": "guides/performance/interaction-paint-timing.md",
    "size_in_bytes": 11508
  },
  {
    "relative_path": "guides/performance/interactions-in-complex-layouts.md",
    "size_in_bytes": 3432
  },
  {
    "relative_path": "guides/performance/lazy-load-video-and-audio.md",
    "size_in_bytes": 9561
  },
  {
    "relative_path": "guides/performance/optimize-image-priority.md",
    "size_in_bytes": 4592
  },
  {
    "relative_path": "guides/performance/optimize-preload-priority.md",
    "size_in_bytes": 3357
  },
  {
    "relative_path": "guides/performance/optimize-script-priority.md",
    "size_in_bytes": 2650
  },
  {
    "relative_path": "guides/performance/out-of-order-html-streaming.md",
    "size_in_bytes": 8084
  },
  {
    "relative_path": "guides/performance/performance.md",
    "size_in_bytes": 21118
  },
  {
    "relative_path": "guides/performance/resolution-optimized-pseudo-elements.md",
    "size_in_bytes": 2378
  },
  {
    "relative_path": "guides/performance/schedule-tasks-by-priority.md",
    "size_in_bytes": 2315
  },
  {
    "relative_path": "guides/privacy/privacy.md",
    "size_in_bytes": 11213
  },
  {
    "relative_path": "guides/pwa/install-web-app.md",
    "size_in_bytes": 15335
  },
  {
    "relative_path": "guides/pwa/migrate-web-app-origin.md",
    "size_in_bytes": 3700
  },
  {
    "relative_path": "guides/security/client-side-encryption.md",
    "size_in_bytes": 15165
  },
  {
    "relative_path": "guides/security/digital-signatures.md",
    "size_in_bytes": 10172
  },
  {
    "relative_path": "guides/security/local-network-access.md",
    "size_in_bytes": 12618
  },
  {
    "relative_path": "guides/security/passkey-authentication.md",
    "size_in_bytes": 11118
  },
  {
    "relative_path": "guides/security/passkey-conditional-create.md",
    "size_in_bytes": 8040
  },
  {
    "relative_path": "guides/security/passkey-management.md",
    "size_in_bytes": 17759
  },
  {
    "relative_path": "guides/security/passkey-reauthentication.md",
    "size_in_bytes": 6512
  },
  {
    "relative_path": "guides/security/passkey-registration.md",
    "size_in_bytes": 10583
  },
  {
    "relative_path": "guides/security/passkeys.md",
    "size_in_bytes": 4973
  },
  {
    "relative_path": "guides/security/quick-sign-ins.md",
    "size_in_bytes": 17882
  },
  {
    "relative_path": "guides/security/restrict-outbound-connections.md",
    "size_in_bytes": 13539
  },
  {
    "relative_path": "guides/security/sanitize-untrusted-html.md",
    "size_in_bytes": 5745
  },
  {
    "relative_path": "guides/security/secure-external-subresources.md",
    "size_in_bytes": 14841
  },
  {
    "relative_path": "guides/security/security.md",
    "size_in_bytes": 30035
  },
  {
    "relative_path": "guides/security/trusted-types.md",
    "size_in_bytes": 7437
  },
  {
    "relative_path": "guides/security/validate-origins.md",
    "size_in_bytes": 13018
  },
  {
    "relative_path": "guides/security/verify-email-ownership.md",
    "size_in_bytes": 14874
  },
  {
    "relative_path": "guides/ui-atoms/carousel-slide-effects.md",
    "size_in_bytes": 10358
  },
  {
    "relative_path": "guides/ui-atoms/component-specific-light-dark-theme.md",
    "size_in_bytes": 9737
  },
  {
    "relative_path": "guides/ui-atoms/icons.md",
    "size_in_bytes": 18080
  },
  {
    "relative_path": "guides/ui-atoms/position-aware-tooltips.md",
    "size_in_bytes": 8460
  },
  {
    "relative_path": "guides/ui-atoms/pull-to-reveal.md",
    "size_in_bytes": 5144
  },
  {
    "relative_path": "guides/ui-atoms/responsive-table.md",
    "size_in_bytes": 4256
  },
  {
    "relative_path": "guides/ui-atoms/scroll-position-aware-elements.md",
    "size_in_bytes": 3718
  },
  {
    "relative_path": "guides/ui-atoms/scroll-progress-indicator.md",
    "size_in_bytes": 6774
  },
  {
    "relative_path": "guides/ui-atoms/scrollability-affordance-hints.md",
    "size_in_bytes": 11556
  },
  {
    "relative_path": "guides/ui-atoms/shrinking-header-on-scroll.md",
    "size_in_bytes": 7191
  },
  {
    "relative_path": "guides/ui-atoms/state-aware-sticky-headers.md",
    "size_in_bytes": 6885
  },
  {
    "relative_path": "guides/ui-atoms/viewport-aware-dropdowns.md",
    "size_in_bytes": 10157
  },
  {
    "relative_path": "guides/ui-behaviors/2d-panning.md",
    "size_in_bytes": 9427
  },
  {
    "relative_path": "guides/ui-behaviors/anchor-positioning-tab-underline.md",
    "size_in_bytes": 3130
  },
  {
    "relative_path": "guides/ui-behaviors/animate-element-entry-exit.md",
    "size_in_bytes": 7840
  },
  {
    "relative_path": "guides/ui-behaviors/animate-to-from-top-layer.md",
    "size_in_bytes": 10942
  },
  {
    "relative_path": "guides/ui-behaviors/carousel-snap-highlights.md",
    "size_in_bytes": 7678
  },
  {
    "relative_path": "guides/ui-behaviors/consistent-cross-document-transitions.md",
    "size_in_bytes": 14282
  },
  {
    "relative_path": "guides/ui-behaviors/cross-document-transitions.md",
    "size_in_bytes": 4555
  },
  {
    "relative_path": "guides/ui-behaviors/custom-button-actions.md",
    "size_in_bytes": 8363
  },
  {
    "relative_path": "guides/ui-behaviors/declarative-dialog-popover-control.md",
    "size_in_bytes": 7742
  },
  {
    "relative_path": "guides/ui-behaviors/directional-navigation-transitions.md",
    "size_in_bytes": 5225
  },
  {
    "relative_path": "guides/ui-behaviors/drag.md",
    "size_in_bytes": 4864
  },
  {
    "relative_path": "guides/ui-behaviors/dynamic-sibling-animations.md",
    "size_in_bytes": 2682
  },
  {
    "relative_path": "guides/ui-behaviors/dynamic-sort.md",
    "size_in_bytes": 7039
  },
  {
    "relative_path": "guides/ui-behaviors/group-element-transitions.md",
    "size_in_bytes": 6365
  },
  {
    "relative_path": "guides/ui-behaviors/highlight-text-ranges.md",
    "size_in_bytes": 5574
  },
  {
    "relative_path": "guides/ui-behaviors/interactive-content-reveal.md",
    "size_in_bytes": 5846
  },
  {
    "relative_path": "guides/ui-behaviors/interest-triggered-action-previews.md",
    "size_in_bytes": 4981
  },
  {
    "relative_path": "guides/ui-behaviors/interest-triggered-tooltips.md",
    "size_in_bytes": 12683
  },
  {
    "relative_path": "guides/ui-behaviors/light-dismiss-a-dialog.md",
    "size_in_bytes": 4244
  },
  {
    "relative_path": "guides/ui-behaviors/motion.md",
    "size_in_bytes": 6101
  },
  {
    "relative_path": "guides/ui-behaviors/move-dom-element-without-losing-state.md",
    "size_in_bytes": 3855
  },
  {
    "relative_path": "guides/ui-behaviors/parallax-scroll-effects.md",
    "size_in_bytes": 9753
  },
  {
    "relative_path": "guides/ui-behaviors/persistent-top-layer-ui.md",
    "size_in_bytes": 2345
  },
  {
    "relative_path": "guides/ui-behaviors/physics-based-easing.md",
    "size_in_bytes": 5954
  },
  {
    "relative_path": "guides/ui-behaviors/platform-controls-dismiss-dialog.md",
    "size_in_bytes": 2680
  },
  {
    "relative_path": "guides/ui-behaviors/prevent-page-scroll-under-modal-dialog.md",
    "size_in_bytes": 5089
  },
  {
    "relative_path": "guides/ui-behaviors/same-document-transitions.md",
    "size_in_bytes": 8485
  },
  {
    "relative_path": "guides/ui-behaviors/scoped-component-transitions.md",
    "size_in_bytes": 12024
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-completion-effects.md",
    "size_in_bytes": 7630
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-entry-exit-effects.md",
    "size_in_bytes": 10057
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-snap-realtime-feedback.md",
    "size_in_bytes": 10983
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-snap-state-sync.md",
    "size_in_bytes": 4954
  },
  {
    "relative_path": "guides/ui-behaviors/scroll-target-on-load.md",
    "size_in_bytes": 3439
  },
  {
    "relative_path": "guides/ui-behaviors/scrollytelling.md",
    "size_in_bytes": 9013
  },
  {
    "relative_path": "guides/ui-behaviors/search-hidden-content.md",
    "size_in_bytes": 6967
  },
  {
    "relative_path": "guides/ui-behaviors/sortable-table.md",
    "size_in_bytes": 7893
  },
  {
    "relative_path": "guides/ui-behaviors/spatial-navigation.md",
    "size_in_bytes": 6937
  },
  {
    "relative_path": "guides/ui-behaviors/swipe-to-remove.md",
    "size_in_bytes": 34703
  },
  {
    "relative_path": "guides/ui-behaviors/swipe-to-reveal.md",
    "size_in_bytes": 14518
  },
  {
    "relative_path": "guides/ui-components/accordion.md",
    "size_in_bytes": 15102
  },
  {
    "relative_path": "guides/ui-components/app-menus.md",
    "size_in_bytes": 16099
  },
  {
    "relative_path": "guides/ui-components/breadcrumbs.md",
    "size_in_bytes": 12349
  },
  {
    "relative_path": "guides/ui-components/card.md",
    "size_in_bytes": 8413
  },
  {
    "relative_path": "guides/ui-components/checkbox.md",
    "size_in_bytes": 5878
  },
  {
    "relative_path": "guides/ui-components/copy-button.md",
    "size_in_bytes": 14896
  },
  {
    "relative_path": "guides/ui-components/dark-mode-toggle.md",
    "size_in_bytes": 9388
  },
  {
    "relative_path": "guides/ui-components/dialog.md",
    "size_in_bytes": 12398
  },
  {
    "relative_path": "guides/ui-components/hovercard.md",
    "size_in_bytes": 16707
  },
  {
    "relative_path": "guides/ui-components/menu.md",
    "size_in_bytes": 31801
  },
  {
    "relative_path": "guides/ui-components/navbar.md",
    "size_in_bytes": 18082
  },
  {
    "relative_path": "guides/ui-components/navigation-drawer.md",
    "size_in_bytes": 17639
  },
  {
    "relative_path": "guides/ui-components/persistent-app-tours.md",
    "size_in_bytes": 11505
  },
  {
    "relative_path": "guides/ui-components/persistent-toast-notifications.md",
    "size_in_bytes": 7635
  },
  {
    "relative_path": "guides/ui-components/progress-ring.md",
    "size_in_bytes": 6128
  },
  {
    "relative_path": "guides/ui-components/progress.md",
    "size_in_bytes": 10867
  },
  {
    "relative_path": "guides/ui-components/scrollspy.md",
    "size_in_bytes": 7036
  },
  {
    "relative_path": "guides/ui-components/spinner.md",
    "size_in_bytes": 6025
  },
  {
    "relative_path": "guides/ui-components/stack-drill-down.md",
    "size_in_bytes": 37348
  },
  {
    "relative_path": "guides/ui-components/tabs.md",
    "size_in_bytes": 21403
  },
  {
    "relative_path": "guides/ui-components/toolbar.md",
    "size_in_bytes": 17540
  },
  {
    "relative_path": "guides/user-experience/content-first-noise-reduction.md",
    "size_in_bytes": 8475
  },
  {
    "relative_path": "guides/user-experience/form-factor-adaptation.md",
    "size_in_bytes": 6122
  },
  {
    "relative_path": "guides/user-experience/natural-interactions.md",
    "size_in_bytes": 9825
  },
  {
    "relative_path": "guides/visual-design/adapt-scrollbar-to-contrast-preferences.md",
    "size_in_bytes": 3699
  },
  {
    "relative_path": "guides/visual-design/apply-webgl-shaders.md",
    "size_in_bytes": 13404
  },
  {
    "relative_path": "guides/visual-design/browser-ui-theming.md",
    "size_in_bytes": 4231
  },
  {
    "relative_path": "guides/visual-design/color.md",
    "size_in_bytes": 4481
  },
  {
    "relative_path": "guides/visual-design/complex-shapes.md",
    "size_in_bytes": 3592
  },
  {
    "relative_path": "guides/visual-design/contrast-color.md",
    "size_in_bytes": 7200
  },
  {
    "relative_path": "guides/visual-design/custom-text-decorations.md",
    "size_in_bytes": 16762
  },
  {
    "relative_path": "guides/visual-design/customize-scrollbar-color-and-thickness.md",
    "size_in_bytes": 2771
  },
  {
    "relative_path": "guides/visual-design/dark-mode.md",
    "size_in_bytes": 17170
  },
  {
    "relative_path": "guides/visual-design/equal-width-text-lines.md",
    "size_in_bytes": 6541
  },
  {
    "relative_path": "guides/visual-design/export-html-media-from-canvas.md",
    "size_in_bytes": 17553
  },
  {
    "relative_path": "guides/visual-design/expose-canvas-content-to-browser-features.md",
    "size_in_bytes": 20075
  },
  {
    "relative_path": "guides/visual-design/improve-text-layout-and-legibility.md",
    "size_in_bytes": 5209
  },
  {
    "relative_path": "guides/visual-design/interactive-content-in-3d-scenes.md",
    "size_in_bytes": 19627
  },
  {
    "relative_path": "guides/visual-design/precise-text-alignment.md",
    "size_in_bytes": 4872
  },
  {
    "relative_path": "guides/visual-design/shaped-cutouts.md",
    "size_in_bytes": 7311
  },
  {
    "relative_path": "guides/visual-design/soft-edge-content-fade.md",
    "size_in_bytes": 2659
  },
  {
    "relative_path": "guides/visual-design/typography.md",
    "size_in_bytes": 3678
  },
  {
    "relative_path": "guides/visual-design/visual-effects.md",
    "size_in_bytes": 3599
  },
  {
    "relative_path": "guides/visual-design/visually-stable-font-fallbacks.md",
    "size_in_bytes": 2978
  },
  {
    "relative_path": "guides/visual-design/visually-stable-mixed-fonts.md",
    "size_in_bytes": 2914
  },
  {
    "relative_path": "guides/visual-design/visually-texture-content.md",
    "size_in_bytes": 3814
  },
  {
    "relative_path": "guides/wasm/cpp-on-the-web.md",
    "size_in_bytes": 8186
  },
  {
    "relative_path": "guides/webmcp/agentic-forms.md",
    "size_in_bytes": 6382
  },
  {
    "relative_path": "guides/webmcp/agentic-javascript-tools.md",
    "size_in_bytes": 22675
  },
  {
    "relative_path": "guides/webmcp/webmcp.md",
    "size_in_bytes": 4369
  }
]

changed /skill_md_contents

BEFORE
"---\nname: modern-web-guidance\ndescription: |\n  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.\n\n  Trigger immediately for:\n  - UI/Layout: Modals, dialogs, popovers, Glassmorphism/backdrop-filters, anchor positioning, container queries, `:has()`, `:user-valid`.\n  - Scroll/Motion: View Transitions, Scroll-driven animations, scroll parallax/reveals.\n  - Performance: CWV (LCP, INP), content-visibility, Fetch Priority, image optimization.\n  - System/APIs: Local filesystem access, WebUSB, WebSockets sync, WebAssembly widgets.\n  - Frameworks: Adapting layout/styles in React, Vue, Angular.\n  - General Frontend: Forms, autofill, advanced inputs, custom scrollbars, modern component states, etc.\n\n  DO NOT trigger for:\n  - Backend: Database SQL, ORMs, Express API routes.\n  - Pipelines: CI/CD deployment, Docker, Actions.\n  - Generic: Local scripts (Python/Go tools), ESLint, Git.\n---\n\n# Modern Web Guidance\n\nA skill to search for specific web development use cases and retrieve their corresponding best practice guides.\n\n## When to use\n\nMust use this skill:\n- At the **start** of implementing any web feature.\n- Before creating a new component, to check if a standardized pattern already exists.\n- To avoid implementing ad-hoc solutions or loading large dependencies unnecessarily.\n\n## Usage Instructions\n\n### Step 1. Search Use Cases\n\nSearch with an action-oriented query summarizing what you want to achieve using the `search` command. Run `modern-web-guidance` directly with `npx`.\n\n```sh\nnpx -y modern-web-guidance@latest search \"<query>\" --skill-version 2026_09_04-7de96777\n```\n\n**Example Output**:\n```json\n[\n  {\n    \"id\": \"optimize-image-priority\",\n    \"description\": \"Optimize the loading priority of Largest Contentful Paint (LCP) candidate images.\",\n    \"category\": \"performance\",\n    \"featuresUsed\": [ \"Fetch priority\" ],\n    \"tokenCount\": 985,\n    \"similarity\": 0.7289\n  },\n  {\n    \"id\": \"defer-rendering-heavy-content\",\n    \"description\": \"Reduce rendering times in content-heavy web pages by deferring rendering for offscreen content.\",\n    \"category\": \"performance\",\n    \"featuresUsed\": [ \"content-visibility\", \"hidden=\\\"until-found\\\"\" ],\n    \"tokenCount\": 1250,\n    \"similarity\": 0.6961\n  }\n]\n```\n\n> **Note**: If search results are vague, return no matches, or show low similarity scores, run the `list` command to browse all guides:\n> ```sh\n> npx -y modern-web-guidance@latest list\n> ```\n\n---\n\n### Step 2. Retrieve Best Practices\n\nOnce you have a relevant `id` from the search results, call this script using the `retrieve` command to get the full guide. You can pass multiple IDs separated by commas.\n\n```sh\nnpx -y modern-web-guidance@latest retrieve \"<id>\"\n```\n\nIf the output is truncated, you must repeat the command but redirect to a file and read that file.\n\n**Example Output**:\n`The markdown content of the guide describing implementation steps...`\n\n---\n\n### Step 3. Verify Guidance Compliance\n\nWhen generating or modifying code, cross-check the implementation against the retrieved guide before concluding:\n- **Applicable Guidance & Fallbacks**: Ensure the relevant modern patterns and necessary fallback strategies from the guide are correctly applied, without forcing unrequested features.\n- **Task Fulfillment**: Confirm that the implementation fully satisfies the user's request.\n\n## Using npx / pnpx\n\n- Prefer `pnpx` over `npx` if `pnpm` is available (note: `pnpx` does not use the `-y` flag).\n- When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` specifically (or `pnpx modern-web-guidance@latest *`), never bare `npx *` or `pnpx *`.\n- IMPORTANT: on Windows, using `npx` may fail. Use `npx.cmd ...` instead.\n- Fetching and running `modern-web-guidance` requires outbound network access. If running in a sandboxed, permission-gated, or approval-based environment (e.g., Codex, Claude Code), **proactively request approval/allowlisting for the command with network access BEFORE executing it the first time**, avoiding sandbox network timeouts.\n- In sandboxed environments where `~/.npm` is read-only or restricted, set `NPM_CONFIG_CACHE=/tmp/npm-cache`.\n- If the command hangs due to being offline, try running again in offline mode: `npx --offline …`.\n- The `--skill-version` flag is used to determine if this SKILL.md is out of date. If it is, a warning message is logged to stderr.\n\n## Guidelines\n\n- Always search **first** to find the most relevant guides.\n- These guides are usually framework-agnostic; adapt them correctly to your setup.\n- Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.\n\n## Interpreting Browser Support & Fallbacks\n\n* **Default Behavior**: All guides assume **Baseline Widely available** features are safe to use without fallbacks. For features that are not Baseline widely available, you **MUST** follow the fallback recommendations in the guide, unless the user has specified a custom browser support policy.\n* **Custom Policies**: If the user has already defined explicit browser support requirements, use the browser compatibility data in the guide to determine if a fallback can be safely ignored.\n  - For Baseline YYYY targets, a feature satisfies this target if its \"Baseline since\" date is <= YYYY.\n  - **Policy Examples**:\n    - _\"Do not implement feature fallbacks.\"_ (for exploratory prototypes of the cutting-edge web)\n    - _\"Safari 17.4+\"_ (for internal tools targeting macOS or Tauri-based desktop apps)\n    - _\"Never recommend or implement polyfills; if a Baseline Newly Available feature is required for core functionality, provide a lightweight custom fallback or redesign the approach.\"_ (to minimize bundle size and avoid technical debt)\n    - _\"Assume a modern execution environment where Baseline Newly Available features can be used natively, provided they are strictly feature-detected and degrade gracefully.\"_ (for progressive enhancement strategies)\n* **Reactive Policy Discovery**: Watch for environmental cues to suggest documenting a policy in CLAUDE.md or AGENTS.md. Suggest this if the developer:\n  - Mentions building for a restricted runtime (e.g., Electron or Tauri).\n  - Explicitly excludes specific targets (e.g., \"we don't support Desktop Chrome\").\n  - Expresses hesitation about polyfill complexity, bundle size, or performance cost.\n  - Questions if a feature is safe to use without fallbacks.\n\n  No defined policy format. This is an example: `**Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and does not require external dependencies.`\n"
AFTER
"---\nname: modern-web-guidance\ndescription: |\n  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.\n  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.\n  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.\n---\n\n# Modern Web Guidance\n\nSearch 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.\n\n## Primary Workflow\n\n### Step 1. Search Use Cases\n\nRun `modern-web-guidance` directly with `npx` using a **2–5 word action-oriented query** for a **single web platform capability or UI pattern**:\n- **Keep queries focused and generic**: Describe the user-visible capability (`<verb> + <UI/platform object>`, optionally paired with the target HTML/CSS/JS feature name if known). Omit framework/library names (`React`, `Vue`, `Tailwind`, etc.) and app/domain nouns (product, route, or component/file names). Split multi-feature tasks into separate `search` calls.\n- **Name implied UI primitives**: When the user's prompt expresses intent without naming the UI primitive (e.g. \"confirm first\", \"delete with confirmation\", \"pick a date\"), translate the domain intent into the implied UI component or platform mechanism (e.g. search `\"confirmation modal dialog\"` or `\"confirm dialog\"` rather than `\"confirm destructive action\"`, or `\"date picker input\"` rather than `\"pick a date\"`).\n- **Example**: Search `\"light dismiss dialog\"` or `\"responsive data table\"`, **not** `\"dialog\"` (too terse), `\"responsive table dark mode\"` (compound — split into two searches), or `\"close React settings modal on outside click\"` (framework/app noise).\n\n```sh\nnpx -y modern-web-guidance@latest search \"<query>\" --skill-version 2026_11_06-909bc374\n```\n\n> **Note**: Returns `[{ \"id\", \"description\" }, ...]`. Judge results by their `description` fields:\n> - **Match found**: Call `retrieve` directly—do not also run `list`.\n> - **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).\n> - **Topic not covered**: If no `description` matches after rephrasing, proceed without retrieving unrelated guides.\n\n### Step 2. Retrieve Best Practices\n\nOnce 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.\n\n```sh\nnpx -y modern-web-guidance@latest retrieve \"<id>\"\n```\n\nIf `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`.\n\n### Step 3. Verify Guidance Compliance\n\nWhen generating or modifying code, cross-check the implementation against the retrieved guide before concluding:\n- **Applicable Guidance & Fallbacks**: Ensure the relevant modern patterns and necessary fallback strategies from the guide are correctly applied, without forcing unrequested features.\n- **Task Fulfillment**: Confirm that the implementation fully satisfies the user's request.\n- Do not run `legacy-scan`; it's for detecting legacy patterns to modernize, not this.\n\n### Step 4. Disclose Skill Usage\n\nWhen you consult `modern-web-guidance` for a task, end the response where you deliver those changes with a `### Modern Web Guidance` section:\n- **When retrieved guides shaped your code**: Write **one** bullet (1–2 sentences, ≤75 words) per newly applied `<id>` in first-person voice explaining the non-obvious implementation choices, CSS/API overrides, or fallbacks `<id>` required and the pitfall it prevented, anchored by a short verbatim quote of that specific rule or gotcha (never the guide's intro overview):\n  `- **\\`<id>\\`**: <Non-obvious APIs, overrides, or fallbacks applied and the pitfall prevented> (\"<short verbatim quote of the specific rule or gotcha>\").`\n  - **Never** guess `<id>`s or quotes from memory after context compaction (re-run `search`/`retrieve` if needed), and credit **only** guide-backed changes from the current turn.\n- **When searched/listed in this turn but zero guides applied**: Write one first-person sentence naming which topics or guides you checked in `modern-web-guidance` and why none applied (omit if any guide applied).\n\n## Alternative flow: Modernize an existing codebase\n\n**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:\n\n> **Note**: `legacy-scan` scans for a curated subset (~20% of the guidance corpus).\n\n```sh\nnpx -y modern-web-guidance@latest legacy-scan <path> --json\n```\n\n1. Scan: Run `legacy-scan <path> --json` to detect legacy web platform patterns across the project or directory.\n2. Verify: Check each finding against its `keepWhen` / `dropWhen` rubric; drop false positives (fallbacks, cross-file helpers, vendor code, lookalikes).\n3. Report: Summarize verified findings (and the modernization plan, if editing) for the user, noting that `legacy-scan` only checks the subset of guides (~20% of the catalog) that have deterministic legacy rules.\n4. Modernize (when the user asked to modernize rather than only audit/report): Retrieve each finding's guide (`retrieve \"<guide-id>\"` via Step 2), apply the replacement (keeping existing libraries as fallbacks where the guide requires one), and re-run `legacy-scan <path>` on the modified files to confirm resolution.\n   - Dropped findings and kept fallbacks still match static scans; do not edit safe code or inspect `legacy-scan.mjs` to force 0 findings.\n\n## Using npx / pnpx\n\n- **Runner & Permissions**: Prefer `pnpx` over `npx` if `pnpm` is available (`pnpx` does not use `-y`); on Windows, use `npx.cmd`. When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` (or `pnpx modern-web-guidance@latest *`) specifically, never bare `npx *` or `pnpx *`.\n- **Sandboxes & Network**: Fetching `modern-web-guidance` requires outbound network access. In sandboxed or approval-gated environments (e.g., Codex, Claude Code), **proactively request approval/allowlisting with network access BEFORE the first execution** to avoid timeouts, and set `NPM_CONFIG_CACHE=/tmp/npm-cache` if `~/.npm` is read-only.\n- **Offline**: If the command hangs due to being offline, retry with `npx --offline …`.\n\n## Guidelines\n\n- Always search **first** to find the most relevant guides. Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.\n- These guides use vanilla HTML/CSS/JS; adapt them to your framework without dropping the modern feature:\n  - **Types**: Spread/cast newly shipped HTML attributes (`{...({ popover: 'hint', interestfor: id, commandfor: id, switch: '' } as any)}`, `[attr.*]`) rather than removing them or merging `@types/react`.\n  - **SSR & Bundlers**: Guard `window`/`HTMLElement` in SSR and load polyfills via bare `import('<pkg>')` in client effects (or set Vite `build.target: 'esnext'` for top-level `await`)—never copy files from `node_modules`.\n  - **DOM, IDs & CSS**: Call `showModal()`/`moveBefore()` via refs on non-VDOM-managed nodes, generate per-instance IDs/`anchor-name`s (`useId()`), and keep `:root` and `@starting-style` top-level/unscoped.\n\n## Interpreting Browser Support & Fallbacks\n\n* **Default Behavior**: All guides assume **Baseline Widely available** features are safe to use without fallbacks. For features that are not Baseline widely available, you **MUST** follow the fallback recommendations in the guide, unless the user or `.mwgrc` has specified a custom browser support policy.\n* **Custom Policies**: If `.mwgrc` configures `\"baseline\"` (e.g., `\"newly\"`, `\"limited\"`, or `\"2024\"`, surfaced as a `> [!IMPORTANT]` banner on `retrieve`) or the user defines explicit browser support requirements, use the guide's compatibility data to determine which fallbacks apply — **omit** compatibility fallbacks, `@supports not (...)` blocks, and polyfills for features that already satisfy the target (for `Baseline YYYY` targets, a feature satisfies the target if its \"Baseline since\" date is `<= YYYY`). Examples: _\"Do not implement feature fallbacks\"_, _\"Safari 17.4+\"_, _\"Never implement polyfills; use a lightweight custom fallback or redesign\"_, or _\"Allow Newly Available features if feature-detected with graceful degradation\"_.\n* **Reactive Policy Discovery**: Suggest setting `\"baseline\"` in `.mwgrc` via `npx modern-web-guidance@latest set-baseline <widely|newly|limited|YYYY>` or documenting a policy in `CLAUDE.md` / `AGENTS.md` (e.g., `**Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and no external dependencies`) if the developer targets a restricted runtime (Electron/Tauri), excludes specific browsers, hesitates over polyfill size/complexity, or asks if a feature is safe without fallbacks.\n"
Full snapshot data
{
  "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.\nTrigger 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.\nDO 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.\n",
  "included_files": [
    {
      "relative_path": "guides/accessibility/accessibility.md",
      "size_in_bytes": 51700
    },
    {
      "relative_path": "guides/accessibility/accessible-error-announcement.md",
      "size_in_bytes": 13642
    },
    {
      "relative_path": "guides/accessibility/accessible-generated-content.md",
      "size_in_bytes": 2215
    },
    {
      "relative_path": "guides/accessibility/respect-os-text-scale.md",
      "size_in_bytes": 7224
    },
    {
      "relative_path": "guides/built-in-ai/language-detection.md",
      "size_in_bytes": 3663
    },
    {
      "relative_path": "guides/built-in-ai/language-model.md",
      "size_in_bytes": 19418
    },
    {
      "relative_path": "guides/built-in-ai/prompt-api.md",
      "size_in_bytes": 19418
    },
    {
      "relative_path": "guides/built-in-ai/summarizer.md",
      "size_in_bytes": 6360
    },
    {
      "relative_path": "guides/built-in-ai/translator.md",
      "size_in_bytes": 7402
    },
    {
      "relative_path": "guides/css/animate-to-intrinsic-sizes.md",
      "size_in_bytes": 5809
    },
    {
      "relative_path": "guides/css/atrule-support-conditionals.md",
      "size_in_bytes": 5799
    },
    {
      "relative_path": "guides/css/calculate-with-intrinsic-sizes.md",
      "size_in_bytes": 10671
    },
    {
      "relative_path": "guides/css/child-state-based-styling.md",
      "size_in_bytes": 4969
    },
    {
      "relative_path": "guides/css/content-based-styling.md",
      "size_in_bytes": 5341
    },
    {
      "relative_path": "guides/css/css-layout.md",
      "size_in_bytes": 21396
    },
    {
      "relative_path": "guides/css/css.md",
      "size_in_bytes": 12546
    },
    {
      "relative_path": "guides/css/design-token-reactivity.md",
      "size_in_bytes": 5922
    },
    {
      "relative_path": "guides/css/dynamic-sibling-styling.md",
      "size_in_bytes": 3689
    },
    {
      "relative_path": "guides/css/fluid-scaling.md",
      "size_in_bytes": 3317
    },
    {
      "relative_path": "guides/css/individual-transform-properties.md",
      "size_in_bytes": 3693
    },
    {
      "relative_path": "guides/css/overflow-clipping-control.md",
      "size_in_bytes": 8248
    },
    {
      "relative_path": "guides/css/reduce-style-repetition.md",
      "size_in_bytes": 4011
    },
    {
      "relative_path": "guides/css/responsive-design.md",
      "size_in_bytes": 1885
    },
    {
      "relative_path": "guides/css/selector-atrule-combinations.md",
      "size_in_bytes": 3650
    },
    {
      "relative_path": "guides/css/size-aware-styling.md",
      "size_in_bytes": 2993
    },
    {
      "relative_path": "guides/css/style-parent-with-has.md",
      "size_in_bytes": 13964
    },
    {
      "relative_path": "guides/css/usage-aware-component-variations.md",
      "size_in_bytes": 5270
    },
    {
      "relative_path": "guides/forms/animated-select-picker.md",
      "size_in_bytes": 8748
    },
    {
      "relative_path": "guides/forms/autofill-address-form.md",
      "size_in_bytes": 5009
    },
    {
      "relative_path": "guides/forms/autofill-highlight-inputs.md",
      "size_in_bytes": 3628
    },
    {
      "relative_path": "guides/forms/autofill-payment-form.md",
      "size_in_bytes": 9970
    },
    {
      "relative_path": "guides/forms/autofill-sign-in-form.md",
      "size_in_bytes": 10540
    },
    {
      "relative_path": "guides/forms/autofill-sign-up-form.md",
      "size_in_bytes": 11864
    },
    {
      "relative_path": "guides/forms/brand-consistent-forms.md",
      "size_in_bytes": 8556
    },
    {
      "relative_path": "guides/forms/branded-select-styling.md",
      "size_in_bytes": 5785
    },
    {
      "relative_path": "guides/forms/custom-select-picker-layouts.md",
      "size_in_bytes": 7573
    },
    {
      "relative_path": "guides/forms/form-fields-automatically-fit-contents.md",
      "size_in_bytes": 6042
    },
    {
      "relative_path": "guides/forms/forms.md",
      "size_in_bytes": 19384
    },
    {
      "relative_path": "guides/forms/ime-safe-enter-submit.md",
      "size_in_bytes": 6440
    },
    {
      "relative_path": "guides/forms/required-field-feedback.md",
      "size_in_bytes": 14251
    },
    {
      "relative_path": "guides/forms/rich-media-picker.md",
      "size_in_bytes": 10728
    },
    {
      "relative_path": "guides/forms/select-menu-interaction.md",
      "size_in_bytes": 13181
    },
    {
      "relative_path": "guides/forms/slider.md",
      "size_in_bytes": 6692
    },
    {
      "relative_path": "guides/forms/sms-otp-form.md",
      "size_in_bytes": 12806
    },
    {
      "relative_path": "guides/forms/switch.md",
      "size_in_bytes": 2595
    },
    {
      "relative_path": "guides/forms/validate-input-after-interaction.md",
      "size_in_bytes": 17625
    },
    {
      "relative_path": "guides/html/accessible-web-components.md",
      "size_in_bytes": 5239
    },
    {
      "relative_path": "guides/html/custom-elements.md",
      "size_in_bytes": 9472
    },
    {
      "relative_path": "guides/html/form-associated-custom-elements.md",
      "size_in_bytes": 5012
    },
    {
      "relative_path": "guides/html/html.md",
      "size_in_bytes": 21320
    },
    {
      "relative_path": "guides/html/prerendering-custom-elements.md",
      "size_in_bytes": 3679
    },
    {
      "relative_path": "guides/html/shadow-dom.md",
      "size_in_bytes": 3922
    },
    {
      "relative_path": "guides/html/styling-web-components.md",
      "size_in_bytes": 8891
    },
    {
      "relative_path": "guides/html/web-components.md",
      "size_in_bytes": 6804
    },
    {
      "relative_path": "guides/js/calculate-event-differentials.md",
      "size_in_bytes": 8465
    },
    {
      "relative_path": "guides/js/capture-location-agnostic-data.md",
      "size_in_bytes": 9882
    },
    {
      "relative_path": "guides/js/coordinate-global-events.md",
      "size_in_bytes": 4045
    },
    {
      "relative_path": "guides/js/sort-high-precision-timestamps.md",
      "size_in_bytes": 6708
    },
    {
      "relative_path": "guides/js/support-global-calendar-systems.md",
      "size_in_bytes": 5961
    },
    {
      "relative_path": "guides/performance/batch-analytics-events.md",
      "size_in_bytes": 6594
    },
    {
      "relative_path": "guides/performance/break-up-long-tasks.md",
      "size_in_bytes": 2287
    },
    {
      "relative_path": "guides/performance/calculate-total-foreground-time.md",
      "size_in_bytes": 2978
    },
    {
      "relative_path": "guides/performance/conditional-async-dependencies.md",
      "size_in_bytes": 5418
    },
    {
      "relative_path": "guides/performance/defer-rendering-heavy-content.md",
      "size_in_bytes": 6418
    },
    {
      "relative_path": "guides/performance/defer-work-until-scroll-ends.md",
      "size_in_bytes": 3382
    },
    {
      "relative_path": "guides/performance/deliver-optimized-decorative-images.md",
      "size_in_bytes": 2918
    },
    {
      "relative_path": "guides/performance/deprioritize-background-fetches.md",
      "size_in_bytes": 1870
    },
    {
      "relative_path": "guides/performance/detect-initial-visibility-state.md",
      "size_in_bytes": 4675
    },
    {
      "relative_path": "guides/performance/efficient-background-processing.md",
      "size_in_bytes": 5141
    },
    {
      "relative_path": "guides/performance/faster-spa-view-transitions.md",
      "size_in_bytes": 3733
    },
    {
      "relative_path": "guides/performance/flicker-free-client-side-ab-testing.md",
      "size_in_bytes": 8671
    },
    {
      "relative_path": "guides/performance/full-session-analytics.md",
      "size_in_bytes": 5842
    },
    {
      "relative_path": "guides/performance/identify-heavy-scripts.md",
      "size_in_bytes": 4333
    },
    {
      "relative_path": "guides/performance/identify-inp-causes.md",
      "size_in_bytes": 8912
    },
    {
      "relative_path": "guides/performance/improve-next-page-load-performance.md",
      "size_in_bytes": 7337
    },
    {
      "relative_path": "guides/performance/interaction-paint-timing.md",
      "size_in_bytes": 11508
    },
    {
      "relative_path": "guides/performance/interactions-in-complex-layouts.md",
      "size_in_bytes": 3432
    },
    {
      "relative_path": "guides/performance/lazy-load-video-and-audio.md",
      "size_in_bytes": 9561
    },
    {
      "relative_path": "guides/performance/optimize-image-priority.md",
      "size_in_bytes": 4592
    },
    {
      "relative_path": "guides/performance/optimize-preload-priority.md",
      "size_in_bytes": 3357
    },
    {
      "relative_path": "guides/performance/optimize-script-priority.md",
      "size_in_bytes": 2650
    },
    {
      "relative_path": "guides/performance/out-of-order-html-streaming.md",
      "size_in_bytes": 8084
    },
    {
      "relative_path": "guides/performance/performance.md",
      "size_in_bytes": 21118
    },
    {
      "relative_path": "guides/performance/resolution-optimized-pseudo-elements.md",
      "size_in_bytes": 2378
    },
    {
      "relative_path": "guides/performance/schedule-tasks-by-priority.md",
      "size_in_bytes": 2315
    },
    {
      "relative_path": "guides/privacy/privacy.md",
      "size_in_bytes": 11213
    },
    {
      "relative_path": "guides/pwa/install-web-app.md",
      "size_in_bytes": 15335
    },
    {
      "relative_path": "guides/pwa/migrate-web-app-origin.md",
      "size_in_bytes": 3700
    },
    {
      "relative_path": "guides/security/client-side-encryption.md",
      "size_in_bytes": 15165
    },
    {
      "relative_path": "guides/security/digital-signatures.md",
      "size_in_bytes": 10172
    },
    {
      "relative_path": "guides/security/local-network-access.md",
      "size_in_bytes": 12618
    },
    {
      "relative_path": "guides/security/passkey-authentication.md",
      "size_in_bytes": 11118
    },
    {
      "relative_path": "guides/security/passkey-conditional-create.md",
      "size_in_bytes": 8040
    },
    {
      "relative_path": "guides/security/passkey-management.md",
      "size_in_bytes": 17759
    },
    {
      "relative_path": "guides/security/passkey-reauthentication.md",
      "size_in_bytes": 6512
    },
    {
      "relative_path": "guides/security/passkey-registration.md",
      "size_in_bytes": 10583
    },
    {
      "relative_path": "guides/security/passkeys.md",
      "size_in_bytes": 4973
    },
    {
      "relative_path": "guides/security/quick-sign-ins.md",
      "size_in_bytes": 17882
    },
    {
      "relative_path": "guides/security/restrict-outbound-connections.md",
      "size_in_bytes": 13539
    },
    {
      "relative_path": "guides/security/sanitize-untrusted-html.md",
      "size_in_bytes": 5745
    },
    {
      "relative_path": "guides/security/secure-external-subresources.md",
      "size_in_bytes": 14841
    },
    {
      "relative_path": "guides/security/security.md",
      "size_in_bytes": 30035
    },
    {
      "relative_path": "guides/security/trusted-types.md",
      "size_in_bytes": 7437
    },
    {
      "relative_path": "guides/security/validate-origins.md",
      "size_in_bytes": 13018
    },
    {
      "relative_path": "guides/security/verify-email-ownership.md",
      "size_in_bytes": 14874
    },
    {
      "relative_path": "guides/ui-atoms/carousel-slide-effects.md",
      "size_in_bytes": 10358
    },
    {
      "relative_path": "guides/ui-atoms/component-specific-light-dark-theme.md",
      "size_in_bytes": 9737
    },
    {
      "relative_path": "guides/ui-atoms/icons.md",
      "size_in_bytes": 18080
    },
    {
      "relative_path": "guides/ui-atoms/position-aware-tooltips.md",
      "size_in_bytes": 8460
    },
    {
      "relative_path": "guides/ui-atoms/pull-to-reveal.md",
      "size_in_bytes": 5144
    },
    {
      "relative_path": "guides/ui-atoms/responsive-table.md",
      "size_in_bytes": 4256
    },
    {
      "relative_path": "guides/ui-atoms/scroll-position-aware-elements.md",
      "size_in_bytes": 3718
    },
    {
      "relative_path": "guides/ui-atoms/scroll-progress-indicator.md",
      "size_in_bytes": 6774
    },
    {
      "relative_path": "guides/ui-atoms/scrollability-affordance-hints.md",
      "size_in_bytes": 11556
    },
    {
      "relative_path": "guides/ui-atoms/shrinking-header-on-scroll.md",
      "size_in_bytes": 7191
    },
    {
      "relative_path": "guides/ui-atoms/state-aware-sticky-headers.md",
      "size_in_bytes": 6885
    },
    {
      "relative_path": "guides/ui-atoms/viewport-aware-dropdowns.md",
      "size_in_bytes": 10157
    },
    {
      "relative_path": "guides/ui-behaviors/2d-panning.md",
      "size_in_bytes": 9427
    },
    {
      "relative_path": "guides/ui-behaviors/anchor-positioning-tab-underline.md",
      "size_in_bytes": 3130
    },
    {
      "relative_path": "guides/ui-behaviors/animate-element-entry-exit.md",
      "size_in_bytes": 7840
    },
    {
      "relative_path": "guides/ui-behaviors/animate-to-from-top-layer.md",
      "size_in_bytes": 10942
    },
    {
      "relative_path": "guides/ui-behaviors/carousel-snap-highlights.md",
      "size_in_bytes": 7678
    },
    {
      "relative_path": "guides/ui-behaviors/consistent-cross-document-transitions.md",
      "size_in_bytes": 14282
    },
    {
      "relative_path": "guides/ui-behaviors/cross-document-transitions.md",
      "size_in_bytes": 4555
    },
    {
      "relative_path": "guides/ui-behaviors/custom-button-actions.md",
      "size_in_bytes": 8363
    },
    {
      "relative_path": "guides/ui-behaviors/declarative-dialog-popover-control.md",
      "size_in_bytes": 7742
    },
    {
      "relative_path": "guides/ui-behaviors/directional-navigation-transitions.md",
      "size_in_bytes": 5225
    },
    {
      "relative_path": "guides/ui-behaviors/drag.md",
      "size_in_bytes": 4864
    },
    {
      "relative_path": "guides/ui-behaviors/dynamic-sibling-animations.md",
      "size_in_bytes": 2682
    },
    {
      "relative_path": "guides/ui-behaviors/dynamic-sort.md",
      "size_in_bytes": 7039
    },
    {
      "relative_path": "guides/ui-behaviors/group-element-transitions.md",
      "size_in_bytes": 6365
    },
    {
      "relative_path": "guides/ui-behaviors/highlight-text-ranges.md",
      "size_in_bytes": 5574
    },
    {
      "relative_path": "guides/ui-behaviors/interactive-content-reveal.md",
      "size_in_bytes": 5846
    },
    {
      "relative_path": "guides/ui-behaviors/interest-triggered-action-previews.md",
      "size_in_bytes": 4981
    },
    {
      "relative_path": "guides/ui-behaviors/interest-triggered-tooltips.md",
      "size_in_bytes": 12683
    },
    {
      "relative_path": "guides/ui-behaviors/light-dismiss-a-dialog.md",
      "size_in_bytes": 4244
    },
    {
      "relative_path": "guides/ui-behaviors/motion.md",
      "size_in_bytes": 6101
    },
    {
      "relative_path": "guides/ui-behaviors/move-dom-element-without-losing-state.md",
      "size_in_bytes": 3855
    },
    {
      "relative_path": "guides/ui-behaviors/parallax-scroll-effects.md",
      "size_in_bytes": 9753
    },
    {
      "relative_path": "guides/ui-behaviors/persistent-top-layer-ui.md",
      "size_in_bytes": 2345
    },
    {
      "relative_path": "guides/ui-behaviors/physics-based-easing.md",
      "size_in_bytes": 5954
    },
    {
      "relative_path": "guides/ui-behaviors/platform-controls-dismiss-dialog.md",
      "size_in_bytes": 2680
    },
    {
      "relative_path": "guides/ui-behaviors/prevent-page-scroll-under-modal-dialog.md",
      "size_in_bytes": 5089
    },
    {
      "relative_path": "guides/ui-behaviors/same-document-transitions.md",
      "size_in_bytes": 8485
    },
    {
      "relative_path": "guides/ui-behaviors/scoped-component-transitions.md",
      "size_in_bytes": 12024
    },
    {
      "relative_path": "guides/ui-behaviors/scroll-completion-effects.md",
      "size_in_bytes": 7630
    },
    {
      "relative_path": "guides/ui-behaviors/scroll-entry-exit-effects.md",
      "size_in_bytes": 10057
    },
    {
      "relative_path": "guides/ui-behaviors/scroll-snap-realtime-feedback.md",
      "size_in_bytes": 10983
    },
    {
      "relative_path": "guides/ui-behaviors/scroll-snap-state-sync.md",
      "size_in_bytes": 4954
    },
    {
      "relative_path": "guides/ui-behaviors/scroll-target-on-load.md",
      "size_in_bytes": 3439
    },
    {
      "relative_path": "guides/ui-behaviors/scrollytelling.md",
      "size_in_bytes": 9013
    },
    {
      "relative_path": "guides/ui-behaviors/search-hidden-content.md",
      "size_in_bytes": 6967
    },
    {
      "relative_path": "guides/ui-behaviors/sortable-table.md",
      "size_in_bytes": 7893
    },
    {
      "relative_path": "guides/ui-behaviors/spatial-navigation.md",
      "size_in_bytes": 6937
    },
    {
      "relative_path": "guides/ui-behaviors/swipe-to-remove.md",
      "size_in_bytes": 34703
    },
    {
      "relative_path": "guides/ui-behaviors/swipe-to-reveal.md",
      "size_in_bytes": 14518
    },
    {
      "relative_path": "guides/ui-components/accordion.md",
      "size_in_bytes": 15102
    },
    {
      "relative_path": "guides/ui-components/app-menus.md",
      "size_in_bytes": 16099
    },
    {
      "relative_path": "guides/ui-components/breadcrumbs.md",
      "size_in_bytes": 12349
    },
    {
      "relative_path": "guides/ui-components/card.md",
      "size_in_bytes": 8413
    },
    {
      "relative_path": "guides/ui-components/checkbox.md",
      "size_in_bytes": 5878
    },
    {
      "relative_path": "guides/ui-components/copy-button.md",
      "size_in_bytes": 14896
    },
    {
      "relative_path": "guides/ui-components/dark-mode-toggle.md",
      "size_in_bytes": 9388
    },
    {
      "relative_path": "guides/ui-components/dialog.md",
      "size_in_bytes": 12398
    },
    {
      "relative_path": "guides/ui-components/hovercard.md",
      "size_in_bytes": 16707
    },
    {
      "relative_path": "guides/ui-components/menu.md",
      "size_in_bytes": 31801
    },
    {
      "relative_path": "guides/ui-components/navbar.md",
      "size_in_bytes": 18082
    },
    {
      "relative_path": "guides/ui-components/navigation-drawer.md",
      "size_in_bytes": 17639
    },
    {
      "relative_path": "guides/ui-components/persistent-app-tours.md",
      "size_in_bytes": 11505
    },
    {
      "relative_path": "guides/ui-components/persistent-toast-notifications.md",
      "size_in_bytes": 7635
    },
    {
      "relative_path": "guides/ui-components/progress-ring.md",
      "size_in_bytes": 6128
    },
    {
      "relative_path": "guides/ui-components/progress.md",
      "size_in_bytes": 10867
    },
    {
      "relative_path": "guides/ui-components/scrollspy.md",
      "size_in_bytes": 7036
    },
    {
      "relative_path": "guides/ui-components/spinner.md",
      "size_in_bytes": 6025
    },
    {
      "relative_path": "guides/ui-components/stack-drill-down.md",
      "size_in_bytes": 37348
    },
    {
      "relative_path": "guides/ui-components/tabs.md",
      "size_in_bytes": 21403
    },
    {
      "relative_path": "guides/ui-components/toolbar.md",
      "size_in_bytes": 17540
    },
    {
      "relative_path": "guides/user-experience/content-first-noise-reduction.md",
      "size_in_bytes": 8475
    },
    {
      "relative_path": "guides/user-experience/form-factor-adaptation.md",
      "size_in_bytes": 6122
    },
    {
      "relative_path": "guides/user-experience/natural-interactions.md",
      "size_in_bytes": 9825
    },
    {
      "relative_path": "guides/visual-design/adapt-scrollbar-to-contrast-preferences.md",
      "size_in_bytes": 3699
    },
    {
      "relative_path": "guides/visual-design/apply-webgl-shaders.md",
      "size_in_bytes": 13404
    },
    {
      "relative_path": "guides/visual-design/browser-ui-theming.md",
      "size_in_bytes": 4231
    },
    {
      "relative_path": "guides/visual-design/color.md",
      "size_in_bytes": 4481
    },
    {
      "relative_path": "guides/visual-design/complex-shapes.md",
      "size_in_bytes": 3592
    },
    {
      "relative_path": "guides/visual-design/contrast-color.md",
      "size_in_bytes": 7200
    },
    {
      "relative_path": "guides/visual-design/custom-text-decorations.md",
      "size_in_bytes": 16762
    },
    {
      "relative_path": "guides/visual-design/customize-scrollbar-color-and-thickness.md",
      "size_in_bytes": 2771
    },
    {
      "relative_path": "guides/visual-design/dark-mode.md",
      "size_in_bytes": 17170
    },
    {
      "relative_path": "guides/visual-design/equal-width-text-lines.md",
      "size_in_bytes": 6541
    },
    {
      "relative_path": "guides/visual-design/export-html-media-from-canvas.md",
      "size_in_bytes": 17553
    },
    {
      "relative_path": "guides/visual-design/expose-canvas-content-to-browser-features.md",
      "size_in_bytes": 20075
    },
    {
      "relative_path": "guides/visual-design/improve-text-layout-and-legibility.md",
      "size_in_bytes": 5209
    },
    {
      "relative_path": "guides/visual-design/interactive-content-in-3d-scenes.md",
      "size_in_bytes": 19627
    },
    {
      "relative_path": "guides/visual-design/precise-text-alignment.md",
      "size_in_bytes": 4872
    },
    {
      "relative_path": "guides/visual-design/shaped-cutouts.md",
      "size_in_bytes": 7311
    },
    {
      "relative_path": "guides/visual-design/soft-edge-content-fade.md",
      "size_in_bytes": 2659
    },
    {
      "relative_path": "guides/visual-design/typography.md",
      "size_in_bytes": 3678
    },
    {
      "relative_path": "guides/visual-design/visual-effects.md",
      "size_in_bytes": 3599
    },
    {
      "relative_path": "guides/visual-design/visually-stable-font-fallbacks.md",
      "size_in_bytes": 2978
    },
    {
      "relative_path": "guides/visual-design/visually-stable-mixed-fonts.md",
      "size_in_bytes": 2914
    },
    {
      "relative_path": "guides/visual-design/visually-texture-content.md",
      "size_in_bytes": 3814
    },
    {
      "relative_path": "guides/wasm/cpp-on-the-web.md",
      "size_in_bytes": 8186
    },
    {
      "relative_path": "guides/webmcp/agentic-forms.md",
      "size_in_bytes": 6382
    },
    {
      "relative_path": "guides/webmcp/agentic-javascript-tools.md",
      "size_in_bytes": 22675
    },
    {
      "relative_path": "guides/webmcp/webmcp.md",
      "size_in_bytes": 4369
    }
  ],
  "name": "modern-web-guidance",
  "skill_md_contents": "---\nname: modern-web-guidance\ndescription: |\n  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.\n  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.\n  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.\n---\n\n# Modern Web Guidance\n\nSearch 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.\n\n## Primary Workflow\n\n### Step 1. Search Use Cases\n\nRun `modern-web-guidance` directly with `npx` using a **2–5 word action-oriented query** for a **single web platform capability or UI pattern**:\n- **Keep queries focused and generic**: Describe the user-visible capability (`<verb> + <UI/platform object>`, optionally paired with the target HTML/CSS/JS feature name if known). Omit framework/library names (`React`, `Vue`, `Tailwind`, etc.) and app/domain nouns (product, route, or component/file names). Split multi-feature tasks into separate `search` calls.\n- **Name implied UI primitives**: When the user's prompt expresses intent without naming the UI primitive (e.g. \"confirm first\", \"delete with confirmation\", \"pick a date\"), translate the domain intent into the implied UI component or platform mechanism (e.g. search `\"confirmation modal dialog\"` or `\"confirm dialog\"` rather than `\"confirm destructive action\"`, or `\"date picker input\"` rather than `\"pick a date\"`).\n- **Example**: Search `\"light dismiss dialog\"` or `\"responsive data table\"`, **not** `\"dialog\"` (too terse), `\"responsive table dark mode\"` (compound — split into two searches), or `\"close React settings modal on outside click\"` (framework/app noise).\n\n```sh\nnpx -y modern-web-guidance@latest search \"<query>\" --skill-version 2026_11_06-909bc374\n```\n\n> **Note**: Returns `[{ \"id\", \"description\" }, ...]`. Judge results by their `description` fields:\n> - **Match found**: Call `retrieve` directly—do not also run `list`.\n> - **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).\n> - **Topic not covered**: If no `description` matches after rephrasing, proceed without retrieving unrelated guides.\n\n### Step 2. Retrieve Best Practices\n\nOnce 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.\n\n```sh\nnpx -y modern-web-guidance@latest retrieve \"<id>\"\n```\n\nIf `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`.\n\n### Step 3. Verify Guidance Compliance\n\nWhen generating or modifying code, cross-check the implementation against the retrieved guide before concluding:\n- **Applicable Guidance & Fallbacks**: Ensure the relevant modern patterns and necessary fallback strategies from the guide are correctly applied, without forcing unrequested features.\n- **Task Fulfillment**: Confirm that the implementation fully satisfies the user's request.\n- Do not run `legacy-scan`; it's for detecting legacy patterns to modernize, not this.\n\n### Step 4. Disclose Skill Usage\n\nWhen you consult `modern-web-guidance` for a task, end the response where you deliver those changes with a `### Modern Web Guidance` section:\n- **When retrieved guides shaped your code**: Write **one** bullet (1–2 sentences, ≤75 words) per newly applied `<id>` in first-person voice explaining the non-obvious implementation choices, CSS/API overrides, or fallbacks `<id>` required and the pitfall it prevented, anchored by a short verbatim quote of that specific rule or gotcha (never the guide's intro overview):\n  `- **\\`<id>\\`**: <Non-obvious APIs, overrides, or fallbacks applied and the pitfall prevented> (\"<short verbatim quote of the specific rule or gotcha>\").`\n  - **Never** guess `<id>`s or quotes from memory after context compaction (re-run `search`/`retrieve` if needed), and credit **only** guide-backed changes from the current turn.\n- **When searched/listed in this turn but zero guides applied**: Write one first-person sentence naming which topics or guides you checked in `modern-web-guidance` and why none applied (omit if any guide applied).\n\n## Alternative flow: Modernize an existing codebase\n\n**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:\n\n> **Note**: `legacy-scan` scans for a curated subset (~20% of the guidance corpus).\n\n```sh\nnpx -y modern-web-guidance@latest legacy-scan <path> --json\n```\n\n1. Scan: Run `legacy-scan <path> --json` to detect legacy web platform patterns across the project or directory.\n2. Verify: Check each finding against its `keepWhen` / `dropWhen` rubric; drop false positives (fallbacks, cross-file helpers, vendor code, lookalikes).\n3. Report: Summarize verified findings (and the modernization plan, if editing) for the user, noting that `legacy-scan` only checks the subset of guides (~20% of the catalog) that have deterministic legacy rules.\n4. Modernize (when the user asked to modernize rather than only audit/report): Retrieve each finding's guide (`retrieve \"<guide-id>\"` via Step 2), apply the replacement (keeping existing libraries as fallbacks where the guide requires one), and re-run `legacy-scan <path>` on the modified files to confirm resolution.\n   - Dropped findings and kept fallbacks still match static scans; do not edit safe code or inspect `legacy-scan.mjs` to force 0 findings.\n\n## Using npx / pnpx\n\n- **Runner & Permissions**: Prefer `pnpx` over `npx` if `pnpm` is available (`pnpx` does not use `-y`); on Windows, use `npx.cmd`. When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` (or `pnpx modern-web-guidance@latest *`) specifically, never bare `npx *` or `pnpx *`.\n- **Sandboxes & Network**: Fetching `modern-web-guidance` requires outbound network access. In sandboxed or approval-gated environments (e.g., Codex, Claude Code), **proactively request approval/allowlisting with network access BEFORE the first execution** to avoid timeouts, and set `NPM_CONFIG_CACHE=/tmp/npm-cache` if `~/.npm` is read-only.\n- **Offline**: If the command hangs due to being offline, retry with `npx --offline …`.\n\n## Guidelines\n\n- Always search **first** to find the most relevant guides. Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.\n- These guides use vanilla HTML/CSS/JS; adapt them to your framework without dropping the modern feature:\n  - **Types**: Spread/cast newly shipped HTML attributes (`{...({ popover: 'hint', interestfor: id, commandfor: id, switch: '' } as any)}`, `[attr.*]`) rather than removing them or merging `@types/react`.\n  - **SSR & Bundlers**: Guard `window`/`HTMLElement` in SSR and load polyfills via bare `import('<pkg>')` in client effects (or set Vite `build.target: 'esnext'` for top-level `await`)—never copy files from `node_modules`.\n  - **DOM, IDs & CSS**: Call `showModal()`/`moveBefore()` via refs on non-VDOM-managed nodes, generate per-instance IDs/`anchor-name`s (`useId()`), and keep `:root` and `@starting-style` top-level/unscoped.\n\n## Interpreting Browser Support & Fallbacks\n\n* **Default Behavior**: All guides assume **Baseline Widely available** features are safe to use without fallbacks. For features that are not Baseline widely available, you **MUST** follow the fallback recommendations in the guide, unless the user or `.mwgrc` has specified a custom browser support policy.\n* **Custom Policies**: If `.mwgrc` configures `\"baseline\"` (e.g., `\"newly\"`, `\"limited\"`, or `\"2024\"`, surfaced as a `> [!IMPORTANT]` banner on `retrieve`) or the user defines explicit browser support requirements, use the guide's compatibility data to determine which fallbacks apply — **omit** compatibility fallbacks, `@supports not (...)` blocks, and polyfills for features that already satisfy the target (for `Baseline YYYY` targets, a feature satisfies the target if its \"Baseline since\" date is `<= YYYY`). Examples: _\"Do not implement feature fallbacks\"_, _\"Safari 17.4+\"_, _\"Never implement polyfills; use a lightweight custom fallback or redesign\"_, or _\"Allow Newly Available features if feature-detected with graceful degradation\"_.\n* **Reactive Policy Discovery**: Suggest setting `\"baseline\"` in `.mwgrc` via `npx modern-web-guidance@latest set-baseline <widely|newly|limited|YYYY>` or documenting a policy in `CLAUDE.md` / `AGENTS.md` (e.g., `**Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and no external dependencies`) if the developer targets a restricted runtime (Electron/Tauri), excludes specific browsers, hesitates over polyfill size/complexity, or asks if a feature is safe without fallbacks.\n"
}

SHA-256 of public snapshot: c09761a0acd6f6b89dfcceea53074d33f2dfd13bea910430f6683efbccb68ff7