Skip to content

Keep your coding agent up to date with the latest web best practices

Release v0.0.98

github-actions[bot]8c8242eac34a
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 7675145..bef78b8 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -8,7 +8,7 @@
"name": "modern-web-guidance",
"source": "./",
"description": "Google Chrome's agent skills collection",
- "version": "0.0.97"
+ "version": "0.0.98"
}
]
}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index b078571..7e8122b 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "modern-web-guidance",
"description": "Google Chrome's agent skills collection",
- "version": "0.0.97",
+ "version": "0.0.98",
"author": {
"name": "Google Chrome"
}
diff --git a/README.md b/README.md
index a85c14f..9f3cfb3 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
This curated collection of skills, tools, and AI-ready documentation injects Chrome's web platform knowledge directly into your workflow, ensuring your coding agent builds apps that are modern, fast, and secure by default.
-#### Skill Coverage in `v0.0.97`
+#### Skill Coverage in `v0.0.98`
<details>
<summary><strong>83 web features with implementation guidance from Chrome's experts</strong>: `::backdrop`, `:autofill`, `:has()`, `:not()`, `:user-valid and :user-invalid`, `@starting-style`, `&lt;details>`, `&lt;dialog closedby>`, `&lt;dialog>`, `&lt;link rel="expect">`, `&lt;link rel="preload">`, `AbortController and AbortSignal`, `accent-color`, `Active view transition`, `Anchor position container queries`, `Anchor positioning`, `blocking="render"`, `calc-size()`, `color-scheme`, `Container queries`, `Container scroll-state queries`, `content-visibility`, `Cross-document view transitions`, `Customizable &lt;select>`, `Email, telephone, and URL &lt;input> types`, `enterkeyhint`, `Event timing`, `Fetch`, `Fetch priority`, `fetchLater`, `field-sizing`, `font-size-adjust`, `Form-associated WebMCP attributes`, `hidden="until-found"`, `image-set()`, `Individual transform properties`, `inert`, `inputmode`, `Interest invokers`, `interpolate-size`, `Intersection observer`, `Intl.DurationFormat`, `Invoker commands`, `Language detector`, `light-dark()`, `linear() easing`, `Long animation frames`, `Masks`, `moveBefore()`, `Mutually exclusive &lt;details> elements`, `Navigation API`, `navigator.modelContext`, `overlay`, `Page visibility`, `Page visibility state`, `Popover`, `popover="hint"`, `prefers-color-scheme media query`, `prefers-contrast media query`, `prefers-reduced-motion media query`, `Registered custom properties`, `Scheduler API`, `Scroll snap`, `Scroll-driven animations`, `scroll-initial-target`, `scrollbar-color`, `scrollbar-width`, `scrollend`, `scrollIntoView()`, `sibling-count() and sibling-index()`, `sin(), cos(), tan(), asin(), acos(), atan(), and atan2() (CSS)`, `Speculation rules`, `Summarizer`, `Temporal`, `text-box`, `text-wrap`, `text-wrap: balance`, `text-wrap: pretty`, `Top-level await`, `transition-behavior`, `Translator`, `View transitions`, `view-transition-class`</summary>
diff --git a/gemini-extension.json b/gemini-extension.json
index 6ad0e75..561c971 100644
--- a/gemini-extension.json
+++ b/gemini-extension.json
@@ -1,7 +1,7 @@
{
"name": "modern-web-guidance",
"description": "Google Chrome's web development agent skills.",
- "version": "0.0.97",
+ "version": "0.0.98",
"author": {
"name": "Google Chrome"
}
diff --git a/package.json b/package.json
index d68bc9c..a24b34e 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "modern-web-guidance",
"displayName": "Modern Web Guidance",
"description": "Curated collection of agent skills for modern web development.",
- "version": "0.0.97",
+ "version": "0.0.98",
"publisher": "GoogleChrome",
"engines": {
"vscode": "^1.90.0",
diff --git a/skills/css/SKILL.md b/skills/css/SKILL.md
deleted file mode 100644
index a2f3e9e..0000000
--- a/skills/css/SKILL.md
+++ /dev/null
@@ -1,518 +0,0 @@
----
-name: css
-description: Action-oriented guidelines for modern CSS architecture, layouts, and performance. Use this skill when authoring styles, managing design systems, or optimizing web rendering.
----
-
-# CSS: Modern Architecture and Performance
-
-These guidelines provide a high-density reference for writing maintainable, performant, and standard-compliant CSS.
-
-1. [1. Foundations](#1-foundations)
-2. [2. Inheritance and The Cascade](#2-inheritance-and-the-cascade)
-3. [3. Selectors and scoping](#3-selectors-and-scoping)
- 1. [Prefer CSS selectors over JS for complex element targeting](#prefer-css-selectors-over-js-for-complex-element-targeting)
- 2. [Use `:is()` (or `:where()`) instead of CSS rule duplication for fallbacks](#use-is-or-where-instead-of-css-rule-duplication-for-fallbacks)
- 3. [Avoid overmatching](#avoid-overmatching)
- 4. [Nesting and scoping](#nesting-and-scoping)
-4. [4. Interactivity](#4-interactivity)
- 1. [Focus management](#focus-management)
- 2. [Touch targets](#touch-targets)
-5. [5. Design Tokens and Theming](#5-design-tokens-and-theming)
- 1. [Dark mode](#dark-mode)
- 2. [Forced Colors Mode](#forced-colors-mode)
- 3. [Generating tints](#generating-tints)
- 4. [Theming browser-generated UI](#theming-browser-generated-ui)
-6. [6. Responsive design](#6-responsive-design)
- 1. [Responsive Typography](#responsive-typography)
-7. [7. Typography](#7-typography)
- 1. [Text wrapping](#text-wrapping)
-8. [8. Visual effects](#8-visual-effects)
- 1. [Depth and texture](#depth-and-texture)
- 2. [Shapes](#shapes)
- 3. [Gradients and `color-mix()`](#gradients-and-color-mix)
- 4. [Patterns](#patterns)
-9. [9. Transitions \& animations](#9-transitions--animations)
- 1. [Performance](#performance)
- 2. [Accessibility](#accessibility)
-10. [10. Generated content](#10-generated-content)
-
-
-## 1. Foundations
-
-Be allergic to knowledge duplication. Prefer variables over repetition, but whenever possible, prefer built-in conventions such as:
-- `currentColor` instead of defining a variable and setting `color` to it
-- The `inherit` keyword instead of defining a variable on the parent and using it on the same property across parent and child.
-- `em` units instead of `font-size: var(--size)`
-- `cqw`/`cqh` (or their logical versions — `cqi`/`cqb`) units instead of repeating box model values.
-- Code duplication is not knowledge duplication. The goal is robustness and maintainability, not saving characters.
-- Prefer **logical properties and values** over physical ones (e.g. `margin-inline-start` instead of `margin-left`) so that styles adapt to different writing modes and orientations. Even if the page author does not plan to localize, external translation tools often display translated text in context.
-- Do not use logical properties indiscriminately — ask yourself "would I want this to flip in RTL?" — if the answer is no, use the physical property instead.
-- Consider different viewing modes (dark mode, high contrast mode), different viewport sizes, and different input modes (touch, keyboard, pointer).
-
-## 2. Inheritance and The Cascade
-
-**Avoid** introducing BEM naming conventions to manage specificity.
-Instead, use modern CSS features such as cascade layers and `:where()` to make cascade behavior predictable and follow author intent.
-
-Use cascade layers (`@layer`) to define explicit priority zones (e.g., `reset`, `base`, `theme`, `components`, `utilities`), and declare their order upfront (e.g. `@layer reset, base, theme, components, utilities;`).
-Within each layer, use `:where()` to make selectors only compete based on meaningful signals, not incidental filters (`:not()` edge cases, remote ancestors, etc.) or for one-off easily overridable defaults.
-
-Use keywords like `inherit`, `initial`, `unset`, or `revert` instead of explicit values to improve maintainability and better express intent.
-Examples:
-- When specifying a transition on a child that should match the parent's `transition-*` properties, instead of repeating the transition properties on the child, use `transition: inherit` (reduce duplication, improve maintainability)
-- Use `initial` to reset a property to its initial value instead of specifying the value explicitly (clearer expression of intent)
-
-## 3. Selectors and scoping
-
-Modern browser-native selectors reduce the need for preprocessors and complex state-tracking in JS.
-
-### Prefer CSS selectors over JS for complex element targeting
-
-- **DO** use `:has()` to style parents based on child state instead of managing classes in JS (e.g. `label:has(:checked)` instead of a manual `label.has-checked` class) For more information, see the guides at `child-state-based-styling` (via `npx -p modern-web-guidance@latest -- modern-web retrieve "child-state-based-styling"`) and `content-based-styling` (via `npx -p modern-web-guidance@latest -- modern-web retrieve "content-based-styling"`).
-- **DO NOT** nest `:has()` or use pseudo-elements inside it (browser API limitation)
-- Use `:nth-child(<An+B> of <selector>)` when you need to style every n-th element of a certain type. E.g. `details:nth-child(1 of [open])` will style the first open `<details>` element it finds, whereas `details[open]:first-child` would style only the first child if and only if it was open.
-
-### Use `:is()` (or `:where()`) instead of CSS rule duplication for fallbacks
-
-**DO NOT** duplicate CSS rules to provide fallbacks for pseudo-classes that may not be supported — use `:is()` or `:where()` instead and take advantage of their forgiving parsing rules.
-
-```css
-/* BAD: duplicate rules instead of using `:where()` */
-[popover]:popover-open {
- /* styles for native popovers */
-}
-[popover].\:popover-open {
- /* same styles again, for polyfilled popovers */
-}
-
-/* GOOD */
-[popover]:where(:popover-open, .\:popover-open) {
- /* same styles in one rule */
-}
-```
-
-Do NOT use this for pseudo-elements, as they are not supported in `:is()` or `:where()`.
-
-### Avoid overmatching
-
-Write selectors in a way that expresses _intent_.
-
-#### Use `:not()` instead of overrides to exclude irrelevant states/targets
-
-When the intent is to exclude certain states or elements that are fundamentally irrelevant, use `:not()`.
-
-For example, to apply bottom borders between list items, don't do this:
-
-```css
-.fancy-list li {
- border-bottom: 1px solid silver;
-}
-
-.fancy-list li:last-child {
- border-bottom: none;
-}
-```
-
-This can unintentionally overwrite a desirable `border-bottom` set from another rule.
-The actual intent was to only apply the bottom border to the non-last `li`s. The code above is a workaround that poorly expresses this intent. Instead, this expresses intent more clearly:
-
-```css
-.fancy-list li:not(:last-child) {
- border-bottom: 1px solid silver;
-}
-```
-
-Similarly, don't do this:
-
-```css
-button:hover {
- background: var(--color-blue);
-}
-
-button:disabled {
- background: var(--color-neutral);
-}
-```
-
-If we reorder the two rules, we will get a hover background on disabled buttons!
-Instead, do this:
-
-```css
-button:hover:not(:disabled) {
- background: var(--color-blue);
-}
-
-button:disabled {
- background: var(--color-neutral);
-}
-```
-
-This works regardless of reordering, as the first rule does not overmatch.
-
-#### Prefer `@scope` over `:not()` for excluding (potentially deeply nested) subtrees
-
-While `:not()` + descendant selectors can exclude subtrees, this works poorly for deeply nested structures.
-For example, `.card :not(.content *)` will not work as expected for nested cards.
-`@scope` fixes this as it takes hierarchical proximity into account:
-
-```css
-@scope (.card) to (.content) {
- /* styles for elements inside .card but not inside .content */
-}
-```
-
-This will work as expected even for nested cards.
-
-#### Overrides are fine for specialization
-
-This is fine:
-
-```css
-button {
- background: var(--color-neutral);
-}
-
-button.primary {
- background: var(--color-blue);
-}
-```
-
-Both rules express legitimate _intent_: buttons are generally neutral, but primary ones are blue.
-
-#### No global resets
-
-**DO NOT** use global resets (styles on `*`) as they cannot be overridden by web components or lower-priority cascade layers (without `!important`). Instead, apply reset styles to specific element types and/or conditions.
-
-### Nesting and scoping
-
-Use native CSS nesting to group related styles to the extent it improves maintainability and readability.
-
-Prefer `@scope` over nesting when proximity should matter more than pure specificity. This is common in selectors that can be nested in any order, but the closest matching one (in element -> ancestor order) should win, e.g. theming classes.
-
-For example this will not work as expected:
-```css
-.dark .invert { color-scheme: light }
-.light .invert { color-scheme: dark }
-```
-
-If `.invert` is nested within _both_ `.dark` and `.light`, it will always resolve to dark mode as both rules have the same specificity.
-Using `@scope` fixes this:
-
-```css
-@scope (.dark) {
- .invert { color-scheme: light }
-}
-
-@scope (.light) {
- .invert { color-scheme: dark }
-}
-```
-
-## 4. Interactivity
-
-### Focus management
-
-- Use `:focus-visible` to define custom focus rings, not `:focus`.
-- Do not remove the browser's default focus rings (via `outline: none`) without providing an alternative visible focus style.
-- Prefer `outline` over other properties (e.g. `box-shadow`) for focus rings. If you must rely on `box-shadow` for focus rings, provide an `outline`-based fallback for High Contrast Mode using the `forced-colors` media query.
-- Pair focus outlines with `outline-offset` to visually separate the ring from the element.
-
-### Touch targets
-
-- Interactive elements should be at least 24×24 CSS pixels (WCAG 2.5.8 AA). Enforce with `min-block-size` / `min-inline-size` or padding rather than `width` / `height`, so content can grow the target but not shrink it.
-- Bump targets up on coarse pointers: `@media (pointer: coarse) { ... }`.
-- **DON'T** use `touch-action: none` for custom gestures — it disables page scrolling through the element. Scope to the axis you actually need: `pan-y` for horizontal swipes (page still scrolls vertically), `pan-x` for vertical ones. Reserve `none` for elements where no native touch behavior makes sense (e.g. a drawing canvas).
-
-## 5. Design Tokens and Theming
-
-Use CSS custom properties on `:root` to define core design variables (colors, fonts, sizes, etc) used throughout the design, for visual consistency and to scale UI design across teams.
-**DO NOT** specify nontrivial styling values inline. E.g. `background: transparent` or `padding: 0` is ok, but `background: #f06` or `padding: .3em` are not.
-One exception is use cases where keeping code small and simple is far more important than long-term maintainability and evolution, such as testcases.
-
-Typically these are organized in tiers, with each tier building upon the previous one. For example:
-1. Tier 1: Literal design tokens (e.g. `--color-blue-10`, `--color-gray-90`, `--font-sans-serif`, `--size-xl` etc)
-2. Tier 2: Semantic design tokens (e.g. `--color-accent`, `--color-neutral`, `--font-body`, `--font-heading` etc)
-3. Tier 3: General UI design tokens (e.g. `--ui-border`, `--surface-bg-subtle` etc)
-4. Tier 4: Component-specific design tokens (e.g. `--button-bg-primary-hover`, `--button-border-color-secondary` etc)
-
-The smaller the scope of the use case, the fewer tiers it needs. E.g. a quick demo or toy app are fine with one tier. Do not overengineer.
-Check for any existing conventions around naming and levels before inventing your own.
-
-### Dark mode
-
-- Use `color-scheme: light dark` on `:root` to enable dark mode support that automatically adapts to the system setting. You can also specify `color-scheme` on individual elements to force a different value for that subtree (`light`/`dark` or `light dark` for the system default)
-- Use `light-dark()` to provide alternatives that automatically resolve based on the element's `color-scheme`.
-Typically this happens in Tier 2 or Tier 3 tokens.
-- IMPORTANT: When using `light-dark()` on an inherited `<color>` property, it will resolve to a specific color based on that element's `color-scheme` and inherit as that resolved color, not as a `light-dark()` value. It will NOT adapt to any descendant-specific `color-scheme` overrides. To keep `light-dark()` color tokens dynamic resolve them as late as possible by only passing them around as unregistered custom properties.
-
-
-### Forced Colors Mode
-
-In Forced Colors Mode (High Contrast on Windows), the browser overrides author colors with system keywords and strips `background-image`, `box-shadow`, and `border-image`.
-
-- Define system color fallbacks for color tokens using `@media (forced-colors: active)`.
-- **DON'T** rely on `background-image`, `box-shadow`, or `border-image` to convey borders, separators, or state — they disappear in forced colors (and often in print too). If you must, ensure there's an alternative in forced colors mode, such as `outline` or `border` with system color keywords (`CanvasText`, `LinkText`, `ButtonText`, `Highlight`, `GrayText`, etc.).
-- Use `forced-color-adjust: none` where color is essential information (syntax highlighter, color picker swatch). **DON'T** use `forced-color-adjust: none` just to preserve aesthetics.
-
-
-### Generating tints
-
-Before generating tints dynamically, check if you can use an existing, predefined, design token. This allows much more designer control and ensures consistency.
-
-If you need to generate lighter or darker colors dynamically:
-- **DO NOT** just adjust the lightness channel in `oklch`/`oklab` or `lch`/`lab`, e.g. `oklab(from var(--primary) 0.9 a b)`. While that is theoretically the correct way, browsers do not yet implement gamut mapping, so the resulting color is unpredictable.
-- You can use `color-mix()` to mix with white or black (preferably in `oklab`). This keeps the color safely in gamut, but tends to over-desaturate colors and produce washed out tints and shades.
-- You MAY combine lightness adjustment with any of the other methods (e.g. `color-mix(in oklab, oklch(from var(--primary) 0.9 c h), white 30%)`) for a balance between the two, but avoid going above 30% for the lightness adjustment.
-
-### Theming browser-generated UI
-
-Most browser-generated UI can be customized to some extent using CSS.
-Even if it requires modern features, it degrades gracefully in older browsers, and thus often does not require a polyfill or fallback.
-
-Before re-creating browser UI (form controls, scrollbars, selections, error messages, etc), first verify that:
-1. the browser UI cannot be customized enough for your needs, even with modern CSS,
-2. the desired customization is sufficiently critical to justify the tradeoffs of re-creating built-in UI — most notably losing accessible semantics, keyboard handling, IME, and AT integration that the native UI provides for free.
-
-Example customizations that are possible:
-- Use `::selection` to customize highlighted text colors.
-- **DON'T** apply `user-select: none` to content text — breaks copy-paste, translation tools, and AT "read from here" gestures. Limit it to chrome (drag handles, toolbars, redundant button labels).
-- Use `accent-color` to apply the page's accent color to any browser-generated UI.
-- Use `color-scheme` to have browser UI adapt to light/dark mode.
-- Use `scrollbar-color` to customize scrollbar colors and `scrollbar-width` to control scrollbar thickness — keep the thumb visibly distinct from the track (≥3:1), and don't set `scrollbar-width: none` on scrollable regions (use it only when scrolling is fully replaced by another affordance).
-- Use `:user-invalid` / `:user-valid` for validity styling, **not** `:invalid` / `:valid` — they only match after the user has interacted with the field, avoiding the hostile default of flagging required-empty fields as errors on page load.
-- Buttons and text fields (including `<textarea>`) can generally be styled as normal elements.
-- Use `font-size` to scale and other textual properties to control typography
-
-#### Styling textual fields (`<input>` & `<textarea>`)
-
-For most styling purposes (e.g. colors, borders, backgrounds, typography, etc) treat these elements as normal text containers.
-
-- Use `:placeholder-shown` and `::placeholder` to style input placeholders.
-- Use `field-sizing: content` to make text fields size to content.
-- For `<textarea>` elements, use `resize: vertical` to disable horizontal resizing or `resize: none` to disable all resizing.
-
-#### Multiple choice controls (select, radios, checkboxes)
-
-- To select one among many options presented in a dropdown: Use a `<select>` + `appearance: base-select` + `::picker(select)`. For more info see `branded-select-styling` (via `npx -p modern-web-guidance@latest -- modern-web retrieve "branded-select-styling"`)
-- Selecting one or more among multiple options laid out inline in the page: Use a `<input type=checkbox>` or `<input type=radio>` inside a `<label>` for each option. Style via `label:has(:checked)`.
-- Style checkboxes, radios and switches via `appearance: none` + generated content (`::before`/`::after`) or background images to draw the checked state.
-<!-- Customizable select listbox version currently buggy + this has much better browser support -->
-
-#### Non-textual `<input>`s (buttons, sliders, file inputs etc.)
-
-- File inputs: Use `::file-selector-button` to style the button.
-- Do not use `<input>` with a `type` of `button`, `submit` or `reset`. Use `<button>` instead and style it as a regular element.
-- Sliders: Use `appearance: none` + thumb pseudo-elements (`::-webkit-slider-thumb`, `::-moz-range-thumb`, etc) and track pseudo-elements (`::-webkit-slider-runnable-track`, `::-moz-range-track`, etc) for more granular control.
-
-## 6. Responsive design
-
-- Use `@container` queries to create component-driven responsive layouts that adapt to their parent container's size rather than the viewport.
-- Use dynamic viewport units (`dvh`, `dvw`) instead of `vh`/`vw` to prevent layout breakage when mobile browser UI elements (like address bars) appear or disappear.
-- Use `aspect-ratio` for media elements (like `<img>` and `<video>`) to reserve space during loading and prevent Cumulative Layout Shift (CLS).
-
-### Responsive Typography
-
-- **DO** combine viewport-relative and font-relative units in `clamp()` for font sizes that scale with the viewport size while ensuring they stay within a desired range. For example, `clamp(2rem, 1rem + 5vw, 4rem)`. Adjust the proportion of viewport-relative and font-relative units to control how quickly the font-size changes.
-- **DON'T** use `vw` alone for font-size without `clamp()`, as it can scale text too small or too large on extreme screens.
-
-## 7. Typography
-
-- Use unitless numbers for `line-height` (e.g., `1.5`) to ensure relative scaling during font-size inheritance.
-- Use `overflow-wrap: break-word` (or `anywhere`) to contain long URLs.
-- **DON'T** use `px` for font-size. Prefer `rem` to honor the user's browser font-size preferences (root font size), or `em` for contextual sizing.
-
-### Text wrapping
-
-- Use `text-wrap: balance` for balanced headlines and headline-like content (e.g. `<th>`)
-- Use `text-wrap: pretty` for long-form body text (paragraphs, blockquotes, etc.)
-- Use `text-wrap: balance` or `text-wrap: pretty` deliberately, **DO NOT** apply it on `*` as it does have a performance cost.
-- Avoid `text-wrap: balance` on elements with a visible box (backgrounds, borders, shadows, etc) as it does not change the container's width, it only affects how text wraps *within* that width. This can leave empty space at the end of the container, which is usually undesirable.
-
-## 8. Visual effects
-
-### Depth and texture
-
-- Layer multiple shadows for realistic soft depth effects.
-- Use `filter: drop-shadow()` instead of `box-shadow` for non-rectangular shapes or transparent PNGs.
-- Use `mix-blend-mode` and `background-blend-mode` for lighting overlays (limit scope with `isolation: isolate`)
-
-```css
-.hero {
- background-image: url('texture.png'), linear-gradient(to bottom, #fff, #eee);
- background-blend-mode: soft-light;
-}
-```
-
-### Shapes
-
-- Use `corner-shape: squircle` for more aesthetically pleasing curves as a progressive enhancement over regular rounded corners.
-- Use elliptical `border-radius` (e.g., `10px / 20px`) for proportional curves without extra elements.
-
-### Gradients and `color-mix()`
-
-Use `in oklch` or `in oklab` to explicitly specify the interpolation color space for gradients or `color-mix()`.
-- `in oklch` preserves chroma better, but can more easily get out of device gamut, especially for bigger differences between colors
-- `in oklab` stays in gamut more easily (assuming in-gamut endpoints) but can create washed out desaturated colors in the middle, especially when interpolating between opposite hues.
-- *DON'T* use `in srgb` unless you have a specific reason to do so (e.g. you are building a color picker that needs to interpolate in srgb).
-
-#### Fallback
-
-Some pre-2024 browsers do not support gradient color interpolation space.
-To support these browsers, use the token only when its usage is safe by defining a variable:
-
-```css
-:root {
- --in-oklab: ;
- --in-oklch: ;
-}
-
-@supports (linear-gradient(in oklab, white, black)) {
- :root {
- --in-oklab: in oklab;
- --in-oklch: in oklch;
- }
-}
-```
-
-Then use like:
-
-```css
-.card {
- background: linear-gradient(to bottom var(--in-oklab), var(--accent-color), var(--darker));
-}
-```
-
-- **Important:** If you use this technique, make sure there is always a non-empty gradient preamble without it, otherwise it will be a syntax error in older browsers.
-- You do NOT need this for `color-mix()`. If a browser supports `color-mix()`, it also supports its `in <color-space>` argument.
-
-### Patterns
-
-Many patterns can be created via CSS gradients + hard stops, and these can be more flexible and performant than SVGs or external images as they can have access to CSS variables and lengths from the surrounding context.
-You don't need to repeat the position twice — just use `0` or `0%` and gradient fixup will auto-adjust it.
-
-Examples below.
-
-Vertical stripes of `1em` width each:
-
-```css
-background: linear-gradient(to right, var(--color-1) 50%, var(--color-2) 0) 0 / 2em;
-```
-
-Diagonal stripes of `1em` width each:
-
-```css
-background: repeating-linear-gradient(-45deg, var(--color-1) 0 1em, var(--color-2) 0 2em);
-```
-
-Checkerboard pattern with `1em` squares:
-
-```css
-background: repeating-conic-gradient(var(--color-1) 0 25%, var(--color-2) 0 50%) 0 / 2em 2em;
-```
-
-Polka dot with `.5em` radius dots spaced `2em` apart (horizontally/vertically — multiply by `sqrt(2)` for diagonal distance):
-
-```css
---distance: 2em;
---radius: .5em;
---polka: radial-gradient(circle, var(--color-1) var(--radius), transparent calc(var(--radius) + 1px));
-background: var(--polka) 0 0, var(--polka) var(--distance) var(--distance) var(--color-2);
-background-size: calc(var(--distance) * 2) calc(var(--distance) * 2);
-```
-
-Simple pie chart:
-
-```css
-.pie {
- --p: 80%;
- width: 60px;
- aspect-ratio: 1;
- border-radius: 50%;
- background: conic-gradient(var(--color-1) var(--p), transparent 0%) var(--color-2);
-}
-```
-
-**Important:** When using gradients to render charts, ensure there is a textual fallback for screen readers.
-
-## 9. Transitions & animations
-
-- Use `clip-path` and `mask-image` for custom geometric reveals and smooth fade-outs.
-- Use **Scroll-Driven Animations** (`animation-timeline: scroll()`) for non-essential scroll-bound effects instead of JS listeners.
-- Use **View Transitions** to animate between complex layout states seamlessly.
-
-### Performance
-
-Rendering performance is critical for smooth user experiences, especially in heavy DOM trees.
-
-- Prefer to animate `opacity` and `transform` (including individual transform properties, e.g. `translate` instead of `left/right/top/bottom`) to ensure animations stay on the compositor thread.
-- Use `transition-behavior: allow-discrete` + `@starting-style` to animate layout properties like `display` or `<dialog>` state natively.
-- Always pair `content-visibility` with `contain-intrinsic-size` to prevent scrollbar jumps (CLS).
-- Use `contain: layout style paint` to isolate component rendering updates.
-
-#### Code Example: Render Optimization
-
-```css
-.large-section {
- content-visibility: auto;
- contain-intrinsic-size: auto 800px;
-}
-
-.popover-reveal {
- /* Allow discrete animations for display transitions */
- transition: display 0.2s allow-discrete;
-}
-```
-
-### Accessibility
-
-Use `prefers-reduced-motion` media queries to turn off heavy motion for users who prefer it.
-
-**DO NOT** globally apply `animation-duration: 0.01ms;` globally as it can cause certain animations to become _more_ jarring.
-Either apply reduced motion versions on a case by case basis, or use a custom property like:
-
-```css
-@property --animation-reduced {
- syntax: "*";
- inherits: false;
- initial-value: none;
-}
-
-@media (prefers-reduced-motion: reduce) {
- * {
- animation: var(--animation-reduced) !important;
- }
-}
-```
-
-Then, reduced motion versions can be kept together with the original animations:
-
-```css
-progress:not([value]) {
- animation: slide 1s infinite linear;
- --animation-reduced: slide 20s infinite linear;
-}
-```
-
-## 10. Generated content
-
-- **DON'T** use `content` to convey meaningful text (labels, state, instructions) — keep that in the DOM (WCAG F87). The alt text argument is harm reduction for cases where decoration accidentally carries meaning, not a license.
-- Use the alternative text argument of `content` to provide alt text for screen readers. E.g. `content: url(cloud.svg) / "Save";`
-- Use `content: "text" / "";` to prevent purely decorative text from being announced to screen readers.
-- **DON'T** use an empty alt text argument for images — they're already presentational by default. E.g. this is wrong: `content: url(cloud.svg) / "";`.
-- **DON'T** use the alt text argument to describe emojis unless the description differs from the official emoji name. E.g. don't do `content: "🎉" / "celebration";`, but `content: "🎉" / "Yay!";` is fine.
-
-**ONLY** use the alt text argument when the text is different than the primary value and is not already present in the DOM. I.e. this is wrong:
-
-HTML:
-```html
-<button class="save">Save</button>
-```
-
-CSS:
-```css
-button.save::before {
- content: url(cloud.svg) / "Save";
-}
-```
-
-A screen reader would read it out as "Save save".
diff --git a/skills/forms/SKILL.md b/skills/forms/SKILL.md
deleted file mode 100644
index 50d9277..0000000
--- a/skills/forms/SKILL.md
+++ /dev/null
@@ -1,369 +0,0 @@
----
-name: forms
-description: Best practices for building accessible, secure, and user-friendly web forms. Use this skill when creating or modifying forms, inputs, and submission flows.
----
-
-## 1. Semantic Structure and Form Element
-
-### Guidelines
-
-- **DO** use the `<form>` element to wrap interactive controls for data collection.
-- **DO** use `method="POST"` for sensitive data and mutations; use `method="GET"` for idempotent requests (e.g., search).
-- **DO** specify the `action` attribute for the destination URL.
-- **DO** specify a `name` attribute for every form control to identify data on submission.
-- **DO** use semantic tags like `<button type="submit">`, `<textarea>`, and `<select>`.
-- **DO** use `<fieldset>` and `<legend>` to group related controls.
-- **DO** use actionable language on submit buttons (e.g., "Save changes").
-
-- **DON'T** use `GET` for sensitive data (it exposes data in history/logs).
-- **DON'T** use generic `<div>` or `<span>` for form controls.
-- **DON'T** use `type="button"` for primary submission buttons.
-- **DON'T** disable textarea resizing without alternate layout provisions.
-
-### Code Example
-
-```html
-<form action="/search" method="GET">
- <fieldset>
- <legend>Search Preferences</legend>
- <label for="q">Query:</label>
- <input type="text" id="q" name="q" required>
- <button type="submit">Search</button>
- </fieldset>
-</form>
-```
-
-### Selection Control Decision Matrix
-
-| Options Count | Choice Type | Recommended Element | Usability & Accessibility Logic |
-| :--- | :--- | :--- | :--- |
-| **1–5** | Single (Exclusive) | `<input type="radio">` | **Zero-click scanning**: All choices are immediately visible. Faster scan time. |
-| **6+** | Single (Exclusive) | `<select>` | **Space conservation**: Use only when vertical space is premium or the list is long. |
-| **10+ / Dynamic** | Single (Exclusive) | `<input list="id">` (`<datalist>`) | **Fuzzy Search**: Prevents scrolling fatigue in massive sets (e.g., countries). |
-| **Any** | Multi-select | `<input type="checkbox">` | **Standard semantics**: Native non-exclusive toggles. |
-
-**Single-Sentence Mental Model**: "Expose mutually exclusive options as visible radio buttons when choices are fewer than six; use `<select>` only when space is constrained or the list is long."
-
-## 2. Accessible Labeling and State
-
-### Guidelines
-
-- **DO** always associate `<label>` with its input using `for` and `id`.
-- **DO** place labels above form controls to enable faster scanning.
-- **DO** use visible labels; do not rely on `placeholder` alone.
-- **DO** ensure the vertical margin between a label and its input is less than the margin between form groups (**Gestalt Proximity Rule**).
-- **DO** use `aria-describedby` to link inputs with help text or error messages.
-- **DO** define the `lang` attribute on `<html>` for proper device translation.
-- **DO** use non-color visual cues (icons, text) to communicate state (don't rely on color alone).
-- **DO** indicate clearly which fields are required.
-- **DO** use `aria-live` for dynamic error announcements.
-
-- **DON'T** use `placeholder` as a replacement for labels.
-- **DON'T** use `aria-label` as the sole text description if translation is needed.
-- **DON'T** disable focus outlines without providing a high-contrast alternative.
-
-### Code Example
-
-```html
-<div class="field">
- <label for="username">Username:</label>
- <input type="text" id="username" name="username" aria-describedby="user-help" required>
- <span id="user-help" class="hint">3-12 characters.</span>
-</div>
-
-<style>
- input:focus-visible {
- outline: 3px solid #0b57d0;
- outline-offset: 2px;
- }
-</style>
-```
-
-## 3. Autofill and Input Modes
-
-### Guidelines
-
-- **DO** use the `autocomplete` attribute to specify expected data (e.g., `email`, `tel`, `current-password`, `new-password`).
-- **DO** use `inputmode` to optimize on-screen keyboards (e.g., `inputmode="numeric"` for PINs).
-- **DO** use `enterkeyhint` to set the Enter key label (e.g., `next`, `done`).
-- **DO** use single-field inputs for complex numbers (credit cards, phones) to help autofill.
-
-- **DON'T** use `type="number"` for credit cards or ZIP codes (causes UI scroll issues and removes leading zeros).
-
-### Code Example
-
-```html
-<label for="zip">ZIP Code:</label>
-<input type="text" id="zip" name="zip" autocomplete="postal-code" inputmode="numeric" pattern="\d{5}">
-```
-
-## 4. Constraints and Validation
-
-### Guidelines
-
-- **DO** use native constraints: `required`, `minlength`, `maxlength`, `pattern`.
-- **DO** use CSS pseudo-classes `:invalid:user-invalid` for non-intrusive styling.
-- **DO** use the ValidityState API (`setCustomValidity`) for custom messaging.
-
-- **DON'T** disable submit buttons to block validation; let users submit and highlight errors. However, **DO** disable the button *after* a valid submission is clicked to prevent double-posts.
-
-### Code Example
-
-```html
-<label for="code">Activation Code (4 digits):</label>
-<input type="text" id="code" name="code" required pattern="\d{4}">
-
-<script>
- const input = document.getElementById('code');
- input.addEventListener('invalid', () => {
- input.setCustomValidity('Please enter exactly 4 digits.');
- });
- input.addEventListener('input', () => {
- input.setCustomValidity('');
- });
-</script>
-```
-
-### Validation Event Timing Matrix
-
-| Event Trigger | Phase | Action Allowed | UX / Accessibility Logic |
-| :--- | :--- | :--- | :--- |
-| **`input`** | Active Typing | **Clear** existing errors only. | **Non-intrusive**: Do not yell at the user before they finish typing. |
-| **`blur` / `focusout`** | Exiting Field | **Run** check and show error. | **Contextual validation**: Validate once the user indicates they are "done" with a field. |
-| **`submit`** | Final Attempt | **Block** and route focus. | **Final gatekeeper**: Intercepts bad payloads and forces screen reader focus to the summary. |
-
-**Single-Sentence Mental Model**: "Validate on `blur` to avoid premature warnings while typing, and reset error states on `input` as soon as the user attempts a correction."
-
-**Security vs UX Scale**: Client-side validation is for User Experience; Server-side validation is for Security. Never treat browser constraints as a data integrity defense.
-
-## 5. Responsive Design and Typography
-
-### Guidelines
-
-- **DO** use single-column layouts for scanning.
-- **DO** set `font-size` to at least `1rem` (16px) to prevent iOS zoom.
-- **DO** expand clickable areas for mobile tap targets using padding tricks.
-- **DO** ensure tap targets are at least `48px`.
-- **DO** use units relative to root (`rem`) and unitless `line-height`.
-- **DO** use CSS logical properties (e.g., `margin-inline-start`) for RTL support.
-
-### Code Example
-
-```css
-.form-group {
- margin-block-end: 1.5rem;
-}
-
-/* Expand clickable tap area without layout shift */
-label {
- display: inline-block;
- padding: 10px 0;
- margin: -10px 0;
-}
-
-input {
- font-size: 1rem;
- padding: 0.75rem;
- min-height: 48px;
- box-sizing: border-box;
-}
-
-@media (pointer: coarse) {
- input {
- min-height: 52px;
- }
-}
-```
-
-## 6. Styling Form Controls
-
-### Guidelines
-
-- **DO** use `accent-color` for quick branding of native radios/checkboxes.
-- **DO** use `appearance: none` for custom dropdown arrows without breaking semantics.
-- **DO** ensure inputs are clearly visible with adequate border contrast (e.g., `#ccc` or darker on white backgrounds).
-- **DO** hide inputs visually using `position: absolute; opacity: 0` (NOT `display: none`) to keep them accessible.
-
-### Code Example
-
-```html
-<div class="checkbox-container">
- <input type="checkbox" id="sub" name="sub" class="visually-hidden">
- <label for="sub" class="checkbox-label">Subscribe</label>
-</div>
-
-<style>
- .visually-hidden {
- position: absolute;
- opacity: 0;
- width: 1rem;
- height: 1rem;
- z-index: 1;
- }
- .checkbox-label::before {
- content: "";
- display: inline-block;
- width: 1.25rem;
- height: 1.25rem;
- border: 2px solid #ccc;
- }
- input:focus-visible + .checkbox-label::before {
- outline: 2px solid #0b57d0;
- }
-</style>
-```
-
-## 7. JavaScript and AJAX
-
-### Guidelines
-
-- **DO** prevent default navigation on form submit for AJAX (`e.preventDefault()`).
-- **DO** use `ValidityState` interfaces for real-time validation checks.
-- **DO** use `aria-expanded` and `aria-controls` for dynamic UI reveals.
-
-- **DON'T** block page submission if JS fails; ensure server-side fallback.
-
-### Code Example
-
-```js
-form.addEventListener('submit', (e) => {
- e.preventDefault();
- const data = new FormData(form);
- // fetch('/submit', { method: 'POST', body: data });
-});
-```
-
-## 8. Identity, Payments, and Advanced Security
-
-### Guidelines
-
-- **DO** use `autocomplete="new-password"` for sign-up and `autocomplete="current-password"` for sign-in.
-- **DO** allow pasting into password fields.
-- **DO** provide a toggle capability allowing users to unmask password input.
-- **DO** indicate exact amounts on pay buttons (e.g., "Pay $100").
-- **DO** use `autocomplete="cc-number"`, `cc-exp`, `cc-csc`.
-- **DO** use HTTPS for all pages.
-- **DO** implement cryptographically secure anti-CSRF tokens for mutating actions (POST/PUT/DELETE).
-- **DO** sanitize user input (e.g., via DOMPurify) before injecting it into the DOM to prevent XSS.
-- **DO** implement spam protection (honeypots or reCAPTCHA) for open forms.
-
-- **DON'T** utilize HTTP `GET` for endpoints executing state changes.
-- **DON'T** use inline JavaScript (e.g., `onclick="..."`) directly within form markup to satisfy strict Content Security Policies (CSP).
-
-### Code Example
-
-```html
-<form method="post">
- <input type="hidden" name="csrf_token" value="secure_token_abc123">
-
- <h1>Sign up</h1>
-
- <section>
- <label for="name">Full name</label>
- <input id="name" name="name" autocomplete="name" required pattern="[\p{L}\.\- ]+">
- </section>
-
- <section>
- <label for="email">Email</label>
- <input id="email" name="email" type="email" autocomplete="username" required>
- </section>
-
- <section>
- <label for="password">Password</label>
- <button id="toggle-password" type="button" aria-label="Show password as plain text. Warning: this will display your password on the screen.">Show password</button>
- <input id="password" name="password" type="password" autocomplete="new-password" minlength="8" aria-describedby="password-constraints" required>
- <div id="password-constraints">Eight or more characters.</div>
- </section>
-
- <button id="sign-up">Sign up</button>
-</form>
-```
-
-
-## 9. Address Collection
-
-### Guidelines
-
-- **DO** use a single field for names.
-- **DO** use `autocomplete="street-address"`.
-- If the site has users in different countries, **DO** use the `<textarea>` element for addresses, to accommodate different address formats in different geographical regions. If the form uses separate inputs for address parts (e.g. Street, City), **DO** use `autocomplete` values `address-line1`, `address-line2`, etc.
-- **DO** make postal codes optional.
-
-- **DON'T** split name inputs into rigid variables ("First", "Last") for global audiences.
-- **DON'T** enforce Latin-only characters for names and usernames.
-
-### Code Example
-
-```html
-<!-- Accessible Address Form with Autofill -->
-<form action="/save-address" method="POST">
- <div class="form-group">
- <label for="full-name">Full name</label>
- <input type="text" id="full-name" name="full_name" maxlength="100" required autocomplete="name">
- </div>
-
- <div class="form-group">
- <label for="address">Address</label>
- <textarea id="address" name="address" required autocomplete="street-address" maxlength="300"></textarea>
- </div>
-
- <button type="submit">Save Address</button>
-</form>
-```
-
-
-## 10. Usability Testing and Analytics
-
-### Guidelines
-
-- **DO** test forms across multiple devices, browsers, and screen sizes.
-- **DO** test keyboard-only navigation (using `Tab` and `Shift+Tab`) and verify visual focus.
-- **DO** emulate various impairments (visual, motor) using browser tools.
-- **DO** use analytics to monitor form completion rates and bounce points.
-- **DO** track discrete events (e.g., field focus, click) to find micro-friction points.
-
-- **DON'T** rely solely on automated tools (Lighthouse) for usability; test with real users.
-- **DON'T** track sensitive personal data in standard event labels.
-
-### Code Example
-
-```html
-<form action="/submit" method="POST" id="track-form">
- <label for="postal-code">ZIP or postal code</label>
- <input type="text" id="postal-code" name="postal-code" autocomplete="postal-code" maxlength="20" required>
- <button type="submit" id="submit-btn">Submit</button>
-</form>
-
-<script>
- const trackForm = document.getElementById('track-form');
- const trackBtn = document.getElementById('submit-btn');
-
- trackBtn.addEventListener('click', () => {
- console.log('Analytics Event: Submit clicked');
- });
-</script>
-```
-
-## 11. Multi-Page Forms
-
-### Guidelines
-
-- **DO** clearly display progress through a multi-page form with clear labels and progress indicators.
-- **DO** allow users to navigate backwards and forwards between pages.
-- **DO** use context-specific `enterkeyhint` values (e.g., `"previous"`, `"next"`) to guide navigation via on-screen keyboards.
-- **DO** design layouts so that the mobile keyboard does not obscure inputs or buttons (e.g., by placing them in the upper half of the viewport when focused or using CSS scroll-padding).
-
-### Code Example
-
-```html
-<nav aria-label="Progress">
- <ol class="progress-tracker">
- <li class="step-done">Step 1: Account</li>
- <li class="step-active" aria-current="step">Step 2: Shipping</li>
- <li class="step-todo">Step 3: Payment</li>
- </ol>
-</nav>
-
-<button type="button" onclick="history.back()" enterkeyhint="previous">Previous</button>
-<button type="submit" enterkeyhint="next">Next</button>
-```
diff --git a/skills/html/SKILL.md b/skills/html/SKILL.md
deleted file mode 100644
index af6ae85..0000000
--- a/skills/html/SKILL.md
+++ /dev/null
@@ -1,411 +0,0 @@
----
-name: html
-description: Action-oriented guidelines for modern HTML architecture, semantics, native interactive APIs (Dialog, Popover, Details), focus management, and resource prioritization. Use this skill when structuring web documents, implementing native overlays, or optimizing resource loading order.
----
-
-## Table of Contents
-
-1. Fundamental Semantics and Validation
-2. Content Grouping and Attribution
-3. Resource Prioritization and Performance
-4. Native Overlays: Dialogs and Popovers
-5. Disclosures: Details and Summary
-6. Focus Boundaries and Visibility
-7. HTML APIs and Forms Grouping
-8. Native Media Elements
-9. Dynamic Styles and Interactivity
-
-## 1. Fundamental Semantics and Validation
-
-### Guidelines
-
-- **DO** use the standard HTML5 doctype `<!DOCTYPE html>` to prevent quirky rendering modes.
-- **DO** set the `lang` attribute on the `<html>` element for screen reader pronunciation and translation tools.
-- **DO** use the `<meta name="viewport">` element with the `content` attribute set to `"width=device-width, initial-scale=1.0"` to ensure page responsiveness.
-- **DO** use a single `<h1>` per page/view representing the main topic. Exceptions can be made for modal dialogs, which can also use a single `<h1>`.
-- **DO** maintain a sequential, non-skipping heading hierarchy (`<h2>` to `<h3>`, but not `<h2>` to `<h4>`).
-- **DO** use semantic landmarks (`<header>`, `<nav>`, `<main>`, `<aside>`, `<footer>`) to create regional navigation for assistive technologies.
-- **DO** use `<search>` to enclose search and filtering mechanisms (eliminates the need for `role="search"`).
-- **DO** use `<button>` for triggered actions (JS, Modals, Forms) and `<a>` strictly for URL navigation. Set `type="button"` for non-submit buttons in forms to prevent unintended submission.
-- **DO** use `<ul>`, `<ol>`, and `<dl>` elements for list content.
-- **DO** ensure that all interactive elements like links and buttons have accessible names.
-- **DO** hide purely decorative SVG images from assistive technology using `aria-hidden="true"`. If using a decorative `<img>`, always include an empty `alt` attribute (e.g. `alt=""`).
-- **DO** ensure that informative SVGs like logos, data visualizations, or icon buttons have a proper accessible name.
-
-- **DON'T** use generic `<div>` or `<span>` when semantic elements exist, for instance for interactive elements, headings, or independently reusable self-contained content.
-- **DON'T** use boolean attributes with redundant values (e.g., use `disabled`, not `disabled="disabled"`).
-- **DON'T** use generic elements with added ARIA roles or states when native elements with built-in semantics and behavior exist.
-- **DON'T** change the native semantics of elements with ARIA unless it is a critical requirement.
-- **DON'T** use `role="presentation"` or `aria-hidden="true"` on focusable elements or their parents and ancestors.
-- **DON'T** disable page zooming capabilities.
-
-### Code Example
-
-```html
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Dashboard | Platform</title>
-</head>
-<body>
- <header>
- <nav>
- <ul>
- <li><a href="#">About</a></li>
- <li><a href="#">Contact</a></li>
- </ul>
- </nav>
- </header>
- <main>
- <h1>Analytics</h1>
- <search>
- <form action="/filter" method="GET">
- <label for="search-input">Scan items:</label>
- <input type="search" id="search-input" name="q">
- <button type="submit">Search</button>
- </form>
- </search>
- <article>
- <h2>First post</h2>
- </article>
- </main>
-</body>
-</html>
-```
-
-## 2. Content Grouping and Attribution
-
-### Guidelines
-
-- **DO** use `<blockquote>` for extended quotations from another source, and use the `cite` attribute to provide a machine-readable URL for that source.
-- **DO** use `<figure>` to group self-contained content (images, code snippets, or quotes) that is referenced from the main flow but could be moved to an appendix or sidebar without affecting the document's meaning.
-- **DO** use `<figcaption>` as the first or last child of a `<figure>` to provide a human-readable caption or attribution.
-- **DO** use the `<cite>` element inside a caption or attribution to identify the **title** of a work (e.g., a book or website name), not the author's name.
-- **DO** use the `<code>` element for short fragments of computer code (e.g., variable names, file paths, or inline snippets).
-- **DO** wrap `<code>` inside a `<pre>` element when displaying blocks of code to preserve whitespace and line breaks.
-- **DO** ensure that code blocks are accessible by adding `tabindex="0"` to the `<pre>` element if it becomes scrollable, allowing keyboard users to reach the content.
-
-- **DON'T** use `<blockquote>` for purely visual indentation of non-quoted text.
-- **DON'T** use `<figure>` for every single image; use it only when a caption is required or when the content is a distinct, referenced unit.
-- **DON'T** use `<pre>` without `<code>` for code blocks; `<pre>` alone only preserves formatting but doesn't convey that the content is a computer language.
-
-### Code Example
-
-```html
-<!-- Quote with attribution using Figure -->
-<figure>
- <blockquote cite="https://html.spec.whatwg.org/">
- <p>The figure element represents some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document.</p>
- </blockquote>
- <figcaption>
- Definition of the &lt;figure&gt; element from the <cite>HTML Living Standard</cite>
- </figcaption>
-</figure>
-
-<!-- Image with caption -->
-<figure>
- <img
- src="architecture-diagram.webp"
- alt="Diagram showing the flow between Client, API Gateway, and Microservices"
- width="800"
- height="450"
- loading="lazy"
- >
- <figcaption>Figure 1: High-level system architecture overview.</figcaption>
-</figure>
-
-<!-- Code block with accessibility and language hint -->
-<figure>
- <figcaption>Example configuration:</figcaption>
- <pre tabindex="0"><code class="language-json">
-{
- "name": "gemini-cli",
- "version": "1.0.0",
- "private": true
-}
- </code></pre>
-</figure>
-
-<!-- Inline code -->
-<p>To initialize the project, run the <code>npm install</code> command.</p>
-```
-
-## 3. Resource Prioritization and Performance
-
-### Guidelines
-
-- **DO** use `fetchpriority="high"` for the Largest Contentful Paint (LCP) element (e.g., hero image) to elevate network priority.
-- **DO** use `<link rel="preload" as="image">` with `fetchpriority="high"` for LCP background images defined in CSS.
-- **DO** apply `loading="lazy"` to off-screen images and iframes to defer bandwidth.
-- **DO** specify `width` and `height` on all `<img>` tags to preserve aspect ratio and prevent Layout Shifts (CLS).
-- **DO** use the `srcset` attribute on `<img>`s for adding multiple versions of the same image at different sizes.
-- **DO** use the `<picture>` element with a fallback `<img>` for more fine-grained image control like switching between image formats, image sizes, and cropping images at different device sizes.
-
-- **DON'T** apply `loading="lazy"` to above-the-fold or hero images. This delays LCP.
-- **DON'T** overuse `fetchpriority="high"`; prioritization is a zero-sum mechanism. Use `fetchpriority="low"` to demote non-critical trackers or carousel items.
-
-### Code Example
-
-```html
-<!-- High-priority hero image with responsive sizes -->
-<img
- src="hero-large.webp"
- srcset="hero-small.webp 480w, hero-medium.webp 800w, hero-large.webp 1200w"
- sizes="(max-width: 600px) 100vw, (max-width: 1200px) 80vw, 70vw"
- alt="Main product view"
- fetchpriority="high"
- width="1200"
- height="600"
->
-
-<!-- Art direction and format switching with <picture> -->
-<picture>
- <!-- Mobile Art Direction: Different aspect ratio (square) and format (AVIF) -->
- <source
- media="(max-width: 600px)"
- srcset="hero-mobile.avif 1x, hero-mobile-2x.avif 2x"
- type="image/avif"
- width="600"
- height="600"
- >
- <source
- media="(max-width: 600px)"
- srcset="hero-mobile.webp 1x, hero-mobile-2x.webp 2x"
- width="600"
- height="600"
- >
-
- <!-- Desktop: Modern format for primary layout -->
- <source srcset="hero-desktop.avif" type="image/avif">
-
- <!-- Fallback img defines the default aspect ratio (2:1) -->
- <img
- src="hero-desktop.webp"
- alt="Platform dashboard overview"
- width="1200"
- height="600"
- loading="lazy"
- >
-</picture>
-
-<!-- Low-priority decorative footer image -->
-<img
- src="footer-art.png"
- alt=""
- loading="lazy"
- width="200"
- height="100"
->
-```
-
-## 4. Native Overlays: Dialogs and Popovers
-
-### Guidelines
-
-See `declarative-dialog-popover-control` (via `npx -p modern-web-guidance@latest -- modern-web retrieve "declarative-dialog-popover-control"`) for more info on fallback strategies for using the Popover API in a cross-browser way.
-- **DO** use `<dialog>` for modal overlays (requires JS `.showModal()`) to automatically trap focus, dim backgrounds, and support dismissing via `Esc`. Use the `closedby="any"` attribute to enable native "light-dismiss" (closing on backdrop click) without custom JavaScript.
-- **DO** utilize the Popover API (`popover` attribute) for non-modal UI (menus, tooltips) that do not require focus traps.
-- **DO** use `::backdrop` to style modal backgrounds.
-- **DO** use `<form method="dialog">` to dismiss dialogs without manual JS handlers. Combined button `formmethod="dialog"` yields the button's value to the dialog `.returnValue`.
-
-- **DON'T** use `show()` for modals where keyboard traps are expected (use `showModal()`).
-- **DON'T** call `showModal()` on elements possessing a `popover` attribute (they are mutually exclusive programmatic states). However, `<dialog popover="auto">` is a valid declarative architecture to combine dialog semantics with light-dismiss mechanics.
-
-### Code Example
-
-```html
-<!-- Popover (No JS required for toggle) -->
-<button popovertarget="help-menu">Info</button>
-<div id="help-menu" popover="auto">
- <p>Standard help text.</p>
-</div>
-
-<!-- Modal Dialog with Form-based closing -->
-<button id="show-dialog">Open dialog</button>
-<dialog id="fav-modal">
- <!-- method="dialog" closes the dialog natively and sets the returnValue -->
- <form method="dialog">
- <p>Confirm action?</p>
- <button value="cancel">Cancel</button>
- <button value="confirm">Confirm</button>
- </form>
-</dialog>
-
-<script>
- const dialog = document.getElementById("fav-modal");
- const openModal = document.getElementById("show-dialog");
-
- // Show modal dialog
- openModal.addEventListener('click', () => dialog.showModal());
-
- // Listen for the 'close' event to retrieve the user's choice (returnValue)
- dialog.addEventListener('close', () => {
- console.log(dialog.returnValue); // "confirm" or "cancel"
- });
-</script>
-```
-
-### Native UI Overlay & Disclosure Matrix
-
-| Feature | Modality | Focus | Dismiss Mechanism | Use Case |
-| :--- | :--- | :--- | :--- | :--- |
-| **`<dialog>`** | Modal / Non-modal | Automatic trap (Modal) | Esc / Form / `closedby` | Critical Actions, Settings |
-| **`[popover]`** | Non-modal | Standard Tab flow | Light-dismiss (Click outside) | Menus, Tooltips, Toasts |
-| **`<details>`** | Inline Disclosure | Standard Tab flow | Toggle summary | Accordions, FAQs |
-
-**Heuristic Rule**: Use `<dialog>` for interruptions requiring user action, `popover` for transient info, and `<details>` for inline content expansion.
-
-## 5. Disclosures: Details and Summary
-
-### Guidelines
-
-- **DO** use `<details>` and `<summary>` for native accordions or revealable content without JS.
-- **DO** place `<summary>` as the *first* child of `<details>`.
-- If headings must be used within a `<summary>`, consider if the heading is essential for understanding or navigating the document structure. If it is, use a more robust disclosure approach that allows wrapping the disclosure trigger with the heading (e.g. `<h2><button type="button" aria-expanded="false" aria-controls="significant-section-content">Significant section</button></h2>`). This ensures the heading semantics aren’t lost, and the button and its state are announced.
-- **DO** use `details[open]` attribute for styling expanded states.
-- **DO** use `details::details-content` for styling the contents of the `<details>` element.
-- **DO** use the `name` attribute on multiple `<details>` elements to create exclusive accordions (opening one closes others).
-
-- **DON'T** nest other interactive elements (links, buttons) directly inside `<summary>` text as it acts as a button and breaks focus.
-- **DON'T** hide visible triangles via `list-style: none` without providing explicit directional cues (via `::before`/`::after` pseudo-elements).
-- **DON'T** use the `title` attribute to create tooltip effects.
-
-### Code Example
-
-```html
-<!-- Exclusive Accordion Set -->
-<details name="faq">
- <summary>Item 1</summary>
- <p>Contents...</p>
-</details>
-<details name="faq">
- <summary>Item 2</summary>
- <p>Contents...</p>
-</details>
-```
-
-## 6. Focus Boundaries and Visibility
-
-### Guidelines
-
-- **DO** use the global `inert` attribute for entire hidden sections (off-screen menus, background while custom modal is open) to remove them from tab flows and accessibility trees.
-- **DO** pair `[inert]` with CSS (`opacity: 0.5`) to visually signify inactivity.
-- **DO** rely on natural DOM order for sequential navigation.
-
-- **DON'T** use positive `tabindex` values (e.g., `1`, `2`). Use `0` to add element to tab flow, or `-1` for JS program focus.
-- **DON'T** alter focus flow using CSS properties (`flex-flow: row-reverse`, `order`) without aligning the DOM structure.
-- **DON'T** use `node.focus({ preventScroll: true })` without usability validation; it can hide the focused element off-screen.
-
-### Code Example
-
-```html
-<!-- De-tabbing a background app shell while custom drawer is open -->
-<main id="app-shell" inert>
- <a href="/">Dashboard</a>
-</main>
-<aside id="drawer">
- <button>Close</button>
-</aside>
-```
-
-```css
-[inert], [inert] * {
- opacity: 0.5;
- cursor: default;
- user-select: none;
-}
-```
-
-## 7. HTML APIs and Forms Grouping
-
-### Guidelines
-
-See `forms` (via `npx -p modern-web-guidance@latest -- modern-web retrieve "forms"`) for more details on creating modern web forms.
-
-- **DO** utilize the `form="form-id"` attribute to decouple inputs from the physical `<form>` tree.
-- **DO** use `<datalist>` coupled with `<input list="id">` for lightweight auto-suggestions (note: visually unstylable and has screen-reader quirks).
-- **DON'T** use `autocomplete="off"` on credential, address, payment, or contact fields. Browsers and password managers ignore it there by design. Use a specific token instead (`autocomplete="email"`, `"street-address"`, `"cc-number"`, etc.).
-- **DON'T** use `autocomplete="off"` unless handling highly sensitive tracking tokens (violates standard password manager overrides). Use standard inputs `type="email"`, `type="tel"`.
-- **DO** distinguish `autocomplete="current-password"` (sign-in) from `autocomplete="new-password"` (registration / password change) so password managers offer the right action.
-- **DO** match `autocomplete` tokens with appropriate `inputmode` and `type` (`type="email"` + `inputmode="email"` + `autocomplete="email"`). They control different things — keyboard, validation, and autofill respectively — and reinforce each other.
-
-### Code Example
-
-```html
-<form>
- <fieldset>
- <legend>Address Information</legend>
- <label for="city">City:</label>
- <input type="text" id="city" list="cities" autocomplete="address-level2">
- <datalist id="cities">
- <option value="New York">
- <option value="London">
- </datalist>
- </fieldset>
-</form>
-```
-
-## 8. Native Media Elements
-
-### Guidelines
-
-- **DO** set `width` and `height` to prevent layout shifts (CLS) on `<video>` elements.
-- **DO** provide a `poster` image fallback for videos.
-- **DO** include subtitles and captions with `<track>`.
-- **DO** ensure background videos are `muted`, provide users with full control over playback, and use `role="none"` or `aria-hidden="true"`. The `controls` attribute must also be omitted to make sure the video is not focusable.
-
-- **DON'T** rely on JS for basic video controls if native `controls` attribute is sufficient.
-
-### Code Example
-
-```html
-<video
- controls
- width="800"
- height="450"
- poster="poster.webp"
->
- <source src="intro.webm" type="video/webm">
- <source src="intro.mp4" type="video/mp4">
- <track src="caps.vtt" kind="captions" srclang="en" label="English">
-</video>
-```
-
-## 9. Dynamic Styles and Interactivity
-
-### Guidelines
-- **DO** use the `style` attribute to pass state to CSS via **Custom Properties**. This keeps visual logic in your stylesheet while JavaScript provides the raw data.
-
-- **DON'T** use inline styles for static design (colors, padding, margins) that belong in a stylesheet.
-- **DON'T** use inline event handlers (e.g., `onclick`). Trigger actions using `addEventListener()`.
-
-### Code Example
-
-```html
-<body>
- <!-- Progress with style-driven color data -->
- <label for="upload-progress">Upload status:</label>
- <progress id="upload-progress" class="loading-bar" value="0" max="100" style="--brand-hue: 200;"></progress>
-
- <script>
- const updateProgress = (percent, hue) => {
- const bar = document.querySelector('.loading-bar');
- bar.value = percent;
-
- // Update dynamic style variable
- if (hue) bar.style.setProperty('--brand-hue', hue);
- };
-
- // Example: Move to 85% and shift color to green (120)
- setTimeout(() => updateProgress(85, 120), 1000);
- </script>
-</body>
-```
-```css
-.loading-bar {
- accent-color: hsl(var(--brand-hue, 200) 80% 50%);
- transition: accent-color 0.3s ease;
-}
-```
diff --git a/skills/javascript/SKILL.md b/skills/javascript/SKILL.md
deleted file mode 100644
index a31cd19..0000000
--- a/skills/javascript/SKILL.md
+++ /dev/null
@@ -1,182 +0,0 @@
----
-name: javascript
-description: Modern JavaScript development - use this skill when writing, reviewing, or debugging client-side JavaScript code, including DOM manipulation, asynchronous logic, and performance optimization.
----
-
-# JavaScript Development Standards
-
-This skill is a baseline for writing clean, performant, and secure JavaScript. These guidelines apply to web platform development and assume modern ECMAScript standards (ES2023+).
-
-This skill defers to specific use-case guidance found in the `/guides/` directory when applicable.
-
-## Modern Syntax and Variable Declarations
-
-- **Use `const` by Default**: Use `const` for all variable declarations. Use `let` only when reassignment is strictly required.
-- **Never Use `var`**: Deprecate the legacy `var` keyword to avoid function-scoping and hoisting bugs.
-- **Enforce Strict Mode**: Add `"use strict";` at the top of scripts or functions if not inside an ES module or class (which are strict by default).
-- **Prefer Primitives and Literals**: Avoid object wrappers (e.g., `new String()`, `new Number()`). Define variables using literals (e.g., `""`, `0`, `true`), standard conversion functions (e.g., `Number()`, `String()`) for type conversion, and standard parse functions (e.g.,`parseInt()`, `parseFloat()`) for string-to-number parsing.
-- **Use Strict Equality `===`**: Always use `===` and `!==` over `==` and `!=` to bypass dangerous implicit type coercion. Use `Number.isNaN()` to check if a value is `NaN`.
-- **Nullish Operators for Safety**:
- - Use Optional Chaining (`?.`) to safely traverse nested objects without throwing `TypeError`.
- - Use Nullish Coalescing (`??`) for defaults instead of logical OR (`||`) to avoid accidentally overriding valid falsy values like `0` or `""`.
-- **Use Template Literals**: Use backticks `` ` `` and `${}` for string interpolation instead of concatenation `+`.
-- **Naming Conventions**: Use `camelCase` for variables and functions, `PascalCase` for classes.
-- **Use `structuredClone()` to Recursively Copy Objects**: Avoid using `JSON.parse(JSON.stringify(object))` to clone an object.
-- **Precise Calculations**: Use integers or whole numbers for precision-critical math (e.g., currency) to avoid floating-point issues (`0.1 + 0.2 !== 0.3`).
-- **Document with JSDoc**: Provide inline code documentation that integrates with tooling with JSDoc. DO include `@param` and `@returns` to document functions.
-
-```javascript
-// ✅ GOOD
-const score = 0;
-const finalScore = score ?? 10; // 0
-
-// ❌ BAD
-const finalScoreLegacy = score || 10; // 10 (incorrectly overrides 0)
-```
-
-## Functions and Async Flow
-
-- **Prefer Rest and Default Parameters**: Use Rest parameters (`...args`) instead of the legacy `arguments` object. Define defaults inside the signature (`param = value`).
-- **Arrow Functions for Lexical `this`**: Use arrow functions when you want to preserve the surrounding context's `this` (e.g., inside callbacks or timers).
-- **Standard Functions for Dynamic `this`**: Use standard function syntax (`functionName() {}`) when you need `this` to bind dynamically (e.g., object methods or event handlers).
-- **Asynchronous Flow with `async/await`**: Use `async`/`await` for readable asynchronous code instead of heavy promise chains or callbacks. Always wrap with `try/catch` for error handling.
-- **Fail Fast with Early Returns**: Return early from functions to keep code flat and avoid deep `if-else` nesting.
-- **Use Ternary Statements for Conditional Variable Assignment**: Prefer standard `if/else` statements over side effects in a conditional ternary statement.(e.g., `condition ? doSomething() : doSomethingElse()`). Avoid nesting ternary operators, prefer `if-else` or switch statements.
-- **Throw Error Objects**: Don't throw strings or other literals (e.g., `throw "CustomError"`). Instead throw an `Error` or a subclass of `Error`, (e.g., `throw new Error('CustomError')`).
-
-```javascript
-// ✅ GOOD: Readable async flow
-async function fetchData(url) {
- try {
- const response = await fetch(url);
- const data = await response.json();
- return data;
- } catch (error) {
- console.error("Fetch failed:", error);
- throw error; // Propagate or handle
- }
-}
-```
-
-### Async Patterns Decision Matrix
-
-| Pattern | Best For | Error Behavior | Execution |
-| :--- | :--- | :--- | :--- |
-| **`async / await`** | Sequential dependencies | `try/catch` per call | Serial (One by one) |
-| **`Promise.all()`** | Parallel tasks, all required | Fails fast (rejects on first error) | Parallel |
-| **`Promise.allSettled()`** | Parallel tasks, independent | Never fails (returns status for all) | Parallel |
-
-**Heuristic Rule**: Use `Promise.all()` when you need all results to proceed (e.g., initial data load). Use `Promise.allSettled()` when results are independent (e.g., batching multiple analytics pings).
-
-## Objects, Classes, and Prototypes
-
-- **Prefer Class Syntax**: Use modern `class` over legacy constructor functions and `prototype` manipulation.
-- **Use `#` for Private Encapsulation**: Utilize the `#` prefix for internal fields and methods to expose only necessary surface area.
-- **Super Calls First**: In subclass constructors, always call `super()` before accessing `this`.
-- **Static Utilities**: Use `static` methods for utility functions or domain factories that do not need instance state.
-- **Safe Property Checks**: Use `Object.hasOwn(obj, "prop")` instead of `obj.hasOwnProperty("prop")`.
-- **Avoid Prototype Poisoning**: Use `Object.getPrototypeOf()` and `Object.setPrototypeOf()` instead of the legacy `__proto__`.
-- **Use Getters and Setters**: Encapsulate custom logic, value validation and formatting using `get` and `set`.
-
-```javascript
-class UserService {
- #privateToken; // Encapsulated
-
- constructor(token) {
- this.#privateToken = token;
- }
-
- set privateToken(token){
- if(!validateToken(token)){
- console.log('Invalid Token');
- } else {
- this.#privateToken = token;
- }
- }
-
- get hasValidToken(){
- return validateToken(this.#privateToken)
- }
-
- static fromConfig(config) { // Factory utility
- return new UserService(config.token);
- }
-}
-```
-
-## Collections and Iteration
-
-- **Prefer Array Literals**: Use `[]` over `new Array()`.
-- **Iterate with `for...of`**: Use `for...of` for standard iterable collections. Use `for...in` sparingly and only for plain object properties (paired with `Object.hasOwn`).
-- **Sets for Uniqueness**: Use `Set` when you require collections of unique values.
-- **Maps for Complex Keys**: Use `Map` when keys are complex objects or when insertion order is critical.
-- **Weak Collections for Memory Management**: Use `WeakMap` or `WeakSet` to associate temporary data with objects without preventing garbage collection.
-
-### JS Collection Decision Matrix
-
-| Requirement | Data Structure | Key Type | Order Preserved |
-| :--- | :--- | :--- | :--- |
-| **Unique values** | `Set` | Value itself | ✅ Yes |
-| **Object-keyed pairs** | `Map` | Any (Objects/Primitives) | ✅ Yes |
-| **Standard JSON pairs** | Object `{}` | String / Symbol | ❌ No |
-| **Ordered lists** | Array `[]` | Integer Index | ✅ Yes |
-
-**Heuristic Rule**: Use `Map` for dynamic dictionaries and lookup tables, `Set` for lists of unique items, and arrays for ordered lists of non-unique items.
-
-## DOM Manipulation and Performance
-
-- **Reduce Layout Thrashing (Reflows)**: Accessing geometric properties (`offsetHeight`, `clientWidth`) after a DOM write forces synchronous layout. Batch all DOM reads first, then all DOM writes.
-- **Offload Heavy Tasks with Web Workers**: Do not block the main thread with heavy computation. Offload non-DOM work like data manipulation or image rendering to Web Workers.
-- **Prevent Memory Leaks**: Remove event listeners when removing DOM elements, set detached DOM references to `null`, and clear timers to allow garbage collection. Use a shared AbortController signal to clean up multiple asynchronous events.
-- **Share Observer Instances**: If there are many elements to observe with a `ResizeObserver` or `IntersectionObserver`, attach them to a single shared Observer instance rather than spawning one per item.
-- **Disconnect Cleanup**: Always call `.unobserve(el)` or `.disconnect()` when elements or components unmount to prevent memory leaks.
-- **Use `DocumentFragment` for Batch Appends**: When inserting many elements, append them first to an in-memory `DocumentFragment` before a single insertion into the live DOM tree.
-
-```javascript
-// Clean up multiple items with a shared AbortController.
-const controller = new AbortController();
-const signal = controller.signal;
-
-// Use the same `signal` when setting up event listeners and fetches.
-async function setup(){
- button.addEventListener('click', ()=>{}, { signal })
- const response = await fetch(url, { signal });
-}
-// Calling `abort()` cleans up all processes with a shared signal.
-function tearDown(){
- controller.abort();
-}
-```
-
-```javascript
-// ✅ Optimized Batch DOM Insertion
-const list = document.getElementById('myList');
-const fragment = document.createDocumentFragment();
-
-for (let i = 0; i < 1000; i++) {
- const li = document.createElement('li');
- li.textContent = `Item ${i + 1}`;
- fragment.appendChild(li); // Appended in-memory, no reflow
-}
-list.appendChild(fragment); // Single layout recalculation pass
-```
-
-## Modern Browser APIs
-
-- **Prefer Modern Browser APIs over Third Party Libraries** - Use native APIs like `document.querySelectorAll()` over jQuery selectors, and `Object.groupBy()` over Lodash `groupBy()`.
-- **Prefer HTML and CSS for UI over JavaScript** - Don't use JavaScript when a feature is possible without it, (e.g., `<details>` and `<summary>` for simple accordion components, Relative Color Syntax for color manipulation, `position:sticky` for sticky positioning, or native form validation).
-- **Prefer HTML and CSS features over Observers**: Use `<img loading="lazy" />` or scroll driven animations over `IntersectionObserver`, and container queries over `ResizeObserver`.
-- **Use JavaScript as a Progressive Enhancement**: Anticipate that JavaScript will not always be able to run, and ensure your site is functional without it.
-- **Trigger Actions Using `addEventListener()`**: Don't use `on*` HTML attributes like `onclick`.
-- **Avoid Extending CustomEvent**: Use native events like `TouchEvent` or `FocusEvent` when possible, or extend `Event`.
-- **Avoid Recreating Native Elements**: Use `<button>` to trigger events, `<a>` to navigate, etc. Avoid replicating their behavior by adding event listeners to `<div>` or other generic elements. Do use JavaScript to add required dynamic ARIA, for instance `aria-expanded` or `aria-selected`.
-
-## Security
-
-- **Prevent DOM-XSS with Trusted Types**: Enforce Trusted Types in CSP to reject direct raw string assignments to dangerous sinks (like `innerHTML`). Use standard sanitization libraries like **DOMPurify** with `RETURN_TRUSTED_TYPE: true`.
-- **Never Use Eval Utilities**: Avoid `eval()`, `setTimeout(string)`, or `new Function()`. Use `JSON.parse()` for parsing and standard functions for evaluation.
-
-## Delivery
-
-- **Use Import Maps**: Use `<script type="importmap">` to control how `import` statements resolve.
-- **Preprocess Scripts to Reduce Filesize**: Use preprocessor tooling to minimize and tree shake the scripts delivered in production.
diff --git a/skills/performance/SKILL.md b/skills/performance/SKILL.md
deleted file mode 100644
index 0ee582b..0000000
--- a/skills/performance/SKILL.md
+++ /dev/null
@@ -1,371 +0,0 @@
----
-name: performance
-description: Actionable guidelines for optimizing modern web applications. Use this skill when auditing performance, optimizing loading metrics, fixing slow interactions and optimizing Core Web Vitals (LCP, INP, CLS)
----
-
-## Critical Rendering Path (CRP) Optimization
-
-The Critical Rendering Path dictates how quickly the browser converts HTML, CSS, and JavaScript into painted pixels.
-
-### DOs
-* **DO inline critical CSS**: Extract styles necessary for above-the-fold content and inject them directly into the HTML `<head>`. Defer the rest of the stylesheet.
-* **DO use `async` or `defer` for all non-critical scripts**: Prevent JavaScript from blocking the DOM parser. Use `defer` for scripts that depend on the DOM or each other, and `async` for independent scripts. `type="module"` is preferred for modern JavaScript and is deferred by default so no need to have an explicit `defer` attribute but you can use `async` on independent module scripts.
-* **DO split CSS by media queries**: Use the `media` attribute on `<link>` tags so the browser downloads unused stylesheets (e.g., print styles or desktop styles on mobile) without blocking the render.
-* **DO utilize resource hints**: Add `preconnect` or `dns-prefetch` for essential third-party domains (e.g., font foundries or API endpoints) to establish early TLS handshakes.
-
-### DON'Ts
-* **DON'T use `@import` in CSS**: This creates sequential request chains that delay the CSS Object Model (CSSOM) construction.
-* **DON'T place large, non-critical JavaScript in the `<head>`**: This halts DOM construction until the script is downloaded, parsed, and executed.
-* **DON'T load invisible or unreachable CSS/JS**: Ensure build tools apply tree-shaking and CSS minification to drop unreachable code before deployment.
-
-### Code Examples
-
-**HTML: Deferring Non-Critical CSS & Scripts**
-```html
-<!-- Inline critical styles directly in head -->
-<style>
- body { margin: 0; font-family: system-ui; }
- .hero { min-height: 100vh; }
-</style>
-
-<!-- Defer non-critical CSS -->
-<link rel="preload" href="non-critical.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
-<noscript><link rel="stylesheet" href="non-critical.css"></noscript>
-
-<!-- Load CSS conditionally based on viewport -->
-<link rel="stylesheet" href="mobile.css" media="(max-width: 768px)">
-
-<!-- Defer JavaScript execution -->
-<script defer src="app-bundle.js"></script>
-```
-
-### The Resource Hint Navigator
-
-| Hint | Tool Use Case | Example |
-| :--- | :--- | :--- |
-| `preconnect` | Resolve TLS/DNS for known third-party APIs | API endpoints, font services |
-| `dns-prefetch` | Lean fallback for non-critical third-party origins | Ad servers, analytics fallbacks |
-| `preload` | Same-origin asset needed *now* for rendering | Hero images, render-blocking fonts |
-| `prefetch` | Assets needed for next-page navigation | Next-page bundle, detail views |
-
-**Single-Sentence Mental Model**: "Preconnect for domains, Preload for viewport, Prefetch for futures."
-
-## Largest Contentful Paint (LCP) & Resource Fetching
-
-LCP measures the time required to render the largest visible text or image block within the viewport. Optimize LCP by prioritizing visible elements and prepolishing.
-
-### DOs
-* **DO use `fetchpriority="high"` on the LCP image**: Signal to the browser's heuristic engine to elevate the image's priority above scripts and non-critical assets.
-* **DO declare the LCP image in standard HTML**: Ensure the `<img>` tag is present in the raw HTML response so the preload scanner discovers it immediately. Avoid relying on JavaScript to mount the LCP element.
-* **DO preload background images acting as LCP**: If the LCP element is a CSS `background-image`, force early discovery using `<link rel="preload" as="image">` coupled with `fetchpriority="high"`.
-* **DO use `fetchpriority="low"` to demote competing elements**: Lower the priority of large images or carousels that appear above the fold but are *not* the primary LCP element.
-
-### DON'Ts
-* **DON'T lazy-load the LCP image**: Never apply `loading="lazy"` to above-the-fold images. This purposefully delays the fetch until layout calculation is complete, severely degrading LCP.
-* **DON'T overuse `fetchpriority="high"`**: Prioritization is a zero-sum mechanism. Elevating too many resources creates network contention and negates the benefit.
-* **DON'T implement complex JavaScript loaders for the hero section**: Client-side rendering of the LCP element introduces substantial request chains (HTML -> JS -> Execution -> Image Request).
-
-### Code Examples
-
-**HTML: LCP Image Optimization**
-```html
-<!-- Standard LCP Image -->
-<img
- src="/images/hero.webp"
- alt="Hero Product"
- fetchpriority="high"
- decoding="sync"
- width="1200"
- height="600"
->
-
-<!-- Preloading a CSS-based LCP background -->
-<link rel="preload" as="image" href="/images/bg-hero.webp" fetchpriority="high" type="image/webp">
-
-<!-- Demoting an above-the-fold non-LCP carousel image -->
-<img src="/images/carousel-2.webp" fetchpriority="low" alt="Slide 2">
-```
-
-## Interaction to Next Paint (INP) & Main Thread Unblocking
-
-INP measures the latency of all interactive events across the page's lifecycle. Poor INP is caused by long-running JavaScript tasks blocking the main thread.
-
-### DOs
-* **DO break up long tasks**: Any JavaScript execution exceeding 50ms should be split. Yield to the main thread frequently so the browser can process pending user inputs.
-* **DO use `scheduler.yield()` with a fallback**: Utilize the modern `scheduler.yield()` API to place task continuations at the *front* of the queue, falling back to `setTimeout` wrapped in a Promise for unsupported browsers.
-* **DO debounce or throttle rapid event listeners**: Limit the execution frequency of handlers attached to `scroll`, `resize`, or rapid `input` events.
-* **DO separate UI updates from heavy computations**: Update the UI synchronously to provide immediate visual feedback, then push background processing to a Web Worker or deferred task.
-
-### DON'Ts
-* **DON'T rely solely on `setTimeout(..., 0)` for continuous yielding**: Standard `setTimeout` places continuations at the *back* of the task queue, potentially causing long delays if other tasks are pending.
-* **DON'T cause layout thrashing**: Avoid interleaving DOM reads (`offsetHeight`, `getBoundingClientRect`) and writes (`style.height`) within the same loop. Batch DOM reads, then batch DOM writes.
-* **DON'T block the thread with recurring timers**: Avoid heavy polling with `setInterval` that starves the main thread.
-
-### Code Examples
-
-**JS: `scheduler.yield` Polyfill and Usage**
-```javascript
-// Polyfill for yielding to main thread
-async function yieldToMain() {
- if ('scheduler' in window && 'yield' in scheduler) {
- return await scheduler.yield();
- }
- return new Promise(resolve => setTimeout(resolve, 0));
-}
-
-// Processing a large array without blocking user input
-async function processLargeList(items) {
- for (let i = 0; i < items.length; i++) {
- processItem(items[i]);
-
- // Yield every 50 iterations to allow rendering/interaction
- if (i % 50 === 0) {
- await yieldToMain();
- }
- }
-}
-```
-
-### Main Thread Task Slicing Heuristic
-
-**The 50ms Rule for INP**:
-- **< 50ms**: Execute synchronously.
-- **50ms - 250ms**: Slice tasks and yield with `scheduler.yield()`.
-- **> 250ms**: Offload to a Web Worker.
-
-## Third-Party Script Management
-
-Third-party scripts (analytics, ads, chat widgets) are the primary source of main thread congestion.
-
-### DOs
-* **DO avoid third-party scripts blocking main content**: Use `defer` with all third-party scripts unless critical to the page load and load them in the footer of the page, rather than the `<head>`.
-* **DO self-host critical third-party dependencies**: Reduce DNS lookups and enforce custom `Cache-Control` logic by hosting third-party libraries on the origin domain.
-
-### Code Examples
-
-**HTML: Third-Party Script Execution**
-```html
-<!-- 1. Place third-party scripts near the end of the page with the defer attribute -->
-<script defer src="http://www.example.com/third-party.js"></script>
-```
-
-## CSS Rendering & Containment Optimization
-
-Rendering involves Layout, Style, Paint, and Compositing calculations. CSS Containment limits the scope of these calculations which is useful on large, complex pages where such calculations can cause performance problems.
-
-### DOs
-* **DO use `content-visibility: auto` on off-screen sections on large, complex pages**: Instruct the browser to skip layout and paint calculations for entire subtrees until they approach the viewport.
-* **DO pair `content-visibility` with `contain-intrinsic-size`**: Prevent layout shifts and scrollbar jumping by providing a placeholder height/width for unrendered containers.
-* **DO apply explicit CSS containment (`contain`)**: For isolated UI components (like modals or widgets), use `contain: layout style paint` to prevent internal changes from triggering page-wide reflows.
-
-### DON'Ts
-* **DON'T apply `content-visibility: auto` on smaller, simpler pages**: The gains will be negligible and there are risks of side effects with content jumping.
-* **DON'T apply `content-visibility: auto` to above-the-fold content**: The browser will still evaluate it, but forcing it through the containment engine unnecessarily adds slight overhead to visible elements.
-* **DON'T overuse `will-change` globally**: Indiscriminately applying `will-change: transform` to multiple elements consumes excessive VRAM, causing GPU crashes or sluggish rendering.
-* **DON'T forget accessibility when hiding elements**: `content-visibility: auto` keeps elements in the DOM for screen readers. If content should be truly hidden from assistive technology when off-screen, manage `aria-hidden` attributes manually.
-
-### Code Examples
-
-**CSS: Content Visibility and Containment**
-```css
-/* Optimize a long list of articles below the fold */
-.article-list-item {
- content-visibility: auto;
- contain-intrinsic-size: auto 600px; /* Provides a 600px placeholder */
-}
-
-/* Scope a complex widget to prevent layout thrashing */
-.isolated-widget {
- contain: layout style paint;
-}
-
-/* Hardware accelerate an animation only on hover */
-.interactive-button:hover {
- will-change: transform;
- transform: scale(1.05);
-}
-```
-
-## Modern Image & Media Optimization
-
-Images typically represent the largest payload on a given web page. Optimization requires format negotiation, responsive sizing, and layout stabilization.
-
-### DOs
-* **DO serve modern formats (AVIF / WebP)**: Use the `<picture>` element to offer AVIF (best compression), falling back to WebP, and finally JPEG/PNG for legacy browsers.
-* **DO apply explicit `width` and `height` attributes**: Setting native attributes allows the browser to compute the aspect ratio immediately, reserving space and eliminating CLS. Image dimensions may be set either as HTML attributes or CSS properties.
-* **DO utilize `loading="lazy"` on all below-the-fold images**: Utilize native browser lazy loading to defer network requests for images outside the initial viewport.
-* **DO implement responsive images with `srcset` and `sizes`**: Serve tailored resolutions based on screen density and viewport width to prevent mobile devices from downloading desktop-sized images.
-
-### DON'Ts
-* **DON'T lazy load above-the-fold images**: This directly harms LCP. Visible images must use `loading="eager"` (the default).
-* **DON'T delete necessary dimensions**: Failing to specify width/height on lazy loaded images causes layout shifts.
-* **DON'T omit the `sizes` attribute when using `srcset`**: Without `sizes`, the browser assumes `100vw` and downloads the largest available image.
-
-### Code Examples
-
-**HTML: Comprehensive Responsive Image Component**
-```html
-<picture>
- <!-- Modern Formats with Source Negotiation -->
- <source type="image/avif" srcset="hero-400w.avif 400w, hero-800w.avif 800w" sizes="(max-width: 600px) 100vw, 50vw">
- <source type="image/webp" srcset="hero-400w.webp 400w, hero-800w.webp 800w" sizes="(max-width: 600px) 100vw, 50vw">
-
- <!-- Fallback + Dimensions + Priority for Above-The-Fold -->
- <img
- src="hero-800w.jpg"
- alt="Descriptive text"
- width="800"
- height="600"
- fetchpriority="high"
- loading="eager"
- >
-</picture>
-
-<!-- Below-The-Fold Image -->
-<img
- src="footer-icon.png"
- alt="Footer Logo"
- width="100"
- height="100"
- loading="lazy"
->
-
-<!-- DO: Use native lazy loading for below the fold iframes -->
-<iframe src="https://example.com/map" width="800" height="600" loading="lazy" title="Example Map"></iframe>
-```
-
-## Service Workers & Caching Strategies
-
-Client-side caching via Service Workers allows applications to bypass the network entirely, serving resources from disk/memory.
-
-### DOs
-* **DO use a `CacheFirst` strategy for static, versioned assets**: Immutable files (fonts, JS/CSS bundles with hash strings) should be served directly from the cache to guarantee instant loading.
-* **DO use `StaleWhileRevalidate` for dynamic, non-critical resources**: For API calls where slight staleness is acceptable, serve immediately from cache while silently updating the cache in the background.
-* **DO implement a `NetworkFirst` strategy for HTML documents**: Ensure the user always receives the latest application shell and manifest, falling back to cache only if offline.
-* **DO restrict cache sizes and expiry**: Use expiration plugins to prevent the Service Worker from exhausting the device's storage quota.
-
-### DON'Ts
-* **DON'T cache opaque responses blindly**: Responses from third-party domains lacking CORS headers are "opaque". Caching them heavily consumes quota and fails silently. Only cache them using `NetworkFirst` or `StaleWhileRevalidate`.
-* **DON'T cache POST requests**: Service workers cannot cache non-GET requests natively. Implement background sync queues for offline submissions.
-* **DON'T bypass versioning**: Failing to update asset hashes/versions will trap users in infinite cache loops.
-
-### Code Examples
-
-**JS: Service Worker Caching via Workbox**
-```javascript
-import { registerRoute } from 'workbox-routing';
-import { CacheFirst, StaleWhileRevalidate, NetworkFirst } from 'workbox-strategies';
-import { ExpirationPlugin } from 'workbox-expiration';
-import { CacheableResponsePlugin } from 'workbox-cacheable-response';
-
-// 1. HTML Documents: Network First
-registerRoute(
- ({ request }) => request.mode === 'navigate',
- new NetworkFirst({ cacheName: 'pages-cache' })
-);
-
-// 2. Static Assets (JS, CSS, Fonts): Cache First
-registerRoute(
- ({ request }) => ['style', 'script', 'font'].includes(request.destination),
- new CacheFirst({
- cacheName: 'static-resources',
- plugins: [
- new CacheableResponsePlugin({ statuses: [0, 200] }),
- new ExpirationPlugin({ maxEntries: 50, maxAgeSeconds: 30 * 24 * 60 * 60 })
- ]
- })
-);
-
-// 3. API Responses: Stale While Revalidate
-registerRoute(
- ({ url }) => url.pathname.startsWith('/api/v1/content'),
- new StaleWhileRevalidate({
- cacheName: 'api-cache',
- plugins: [
- new CacheableResponsePlugin({ statuses: [0, 200] })
- ]
- })
-);
-```
-
-## Web Fonts Optimization
-
-Web fonts are a common source of render blocking. Optimizing them reduces the Flash of Invisible Text (FOIT) and speeds up initial rendering.
-
-### DOs
-* **DO preload critical fonts**: Use `<link rel="preload" as="font" type="font/woff2" crossorigin>` for fonts seen above the fold.
-* **DO subset fonts**: Trim font weights and glyph variations to include only the characters your application requires.
-
-### DON'Ts
-* **DON'T preload all fonts**: Over-preloading leads to network contention that starves other critical assets.
-
-### Code Examples
-
-**CSS: Font Loading Face**
-```css
-@font-face {
- font-family: 'Modern Sans';
- src: url('/fonts/modern-sans.woff2') format('woff2');
-}
-```
-
-**HTML: Critical Font Preload**
-```html
-<!-- Always use crossorigin for fonts even if on the same origin -->
-<link rel="preload" href="/fonts/modern-sans.woff2" as="font" type="font/woff2" crossorigin>
-```
-
-## Video Performance & Metrics
-
-Video payloads are among the heaviest assets. Optimization focuses on reducing bandwidth stall and preserving Cumulative Layout Shift (CLS) stability.
-
-### DOs
-* **DO specify explicit `width` and `height` attributes**: Setting native dimensions reserves layout space and prevents CLS.
-* **DO provide a `poster` image fallback**: Display a lightweight image placeholder while the video buffers to improve perceived performance.
-* **DO use `preload="none"` for non-critical videos**: Delay bandwidth consumption for below-the-fold or non-autoplaying videos.
-* **DO serve modern formats via source negotiation**: Offer WebM (better compression ratio) alongside standard MP4 formats.
-* **DO use `loading="lazy"` for offscreen videos**: Lazy-loading videos allow `poster` and `preload` downloads to be deferred until the video is in or near the viewport.
-
-### DON'Ts
-* **DON'T auto-play video files blindly**: Rely on user intent or use progressive enhancement streams.
-* **DON'T auto-play large video files at all**: Rely on user intent before downloading large files.
-
-### Code Examples
-
-**HTML: Accessible and Dynamic Video Loader**
-```html
-<video
- controls
- width="1200"
- height="675"
- poster="/images/video-poster.webp"
- preload="none"
->
- <source src="/videos/intro.webm" type="video/webm">
- <source src="/videos/intro.mp4" type="video/mp4">
- <!-- Include accessibility tracks -->
- <track src="/video-caps.vtt" kind="captions" srclang="en" label="English">
-</video>
-```
-
-## JavaScript Code-Splitting
-
-Heavy monolithic bundles block main thread parse times on low-end devices. Splitting ensures we only download bytes required for the immediate viewport.
-
-### DOs
-* **DO use dynamic imports**: Split routes or heavy UI libraries using standard `import()` specifications.
-* **DO configure bundler asset chunking**: Use Vite or Webpack rollup directives to split third-party vendors from runtime application logic.
-
-### DON'Ts
-* **DON'T ship a single, enormous `app.js` bundle**: It increases parse time and memory consumption for initial views.
-
-### Code Examples
-
-**JS: Route based Dynamic Splitting**
-```javascript
-// Dynamic import of heavy module only when button is clicked
-document.getElementById('heavy-btn').addEventListener('click', async () => {
- const { heavyFunction } = await import('./heavy-module.js');
- heavyFunction();
-});
-```
diff --git a/skills/webmcp/SKILL.md b/skills/webmcp/SKILL.md
deleted file mode 100644
index 4cb8411..0000000
--- a/skills/webmcp/SKILL.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-name: webmcp
-description: Use this skill to implement WebMCP (Web Model Context Protocol) in browser applications, exposing client-side functionality as tools to AI agents via declarative or imperative APIs.
----
-
-# WebMCP (Web Model Context Protocol)
-
-WebMCP is a browser-native JavaScript API that allows web pages to expose their client-side functionality as structured "tools" to AI agents, browser assistants, and assistive technologies.
-
-IMPORTANT: WebMCP is currently **Chrome-only** (Early Preview). It requires Chrome `146.0.7672.0` or higher and the `#enable-webmcp-testing` flag.
-
-**Crucial Distinction:** WebMCP runs entirely **client-side** in the browser tab. It is *not* a backend server, and it does *not* use HTTP, Server-Sent Events (SSE), or `stdio` transports. The web page itself acts as the tool registry.
-
-Currently, WebMCP **only supports Tools**. It does not support the "Resources" or "Prompts" primitives found in the backend Model Context Protocol.
-
-## Quick Overview
-
-- **Imperative API**: Use `navigator.modelContext.registerTool()` for complex logic and dynamic interactions.
-- **Declarative API**: Annotate standard HTML `<form>` elements with `toolname` and `tooldescription` to turn them into tools.
-
-## Best Practices
-
-* **Naming and Semantics**: Use specific verbs describing exact behavior (e.g. `create-event` vs `start-event-creation-process`). Favor positive descriptions over listing limitations.
-* **Schema Design**: Accept raw user input (avoid agent math/calculation). Ensure all parameters have specific types and explain the purpose of options.
-* **Reliability**: Validate constraints in code and return descriptive errors for retries. Handle rate limiting gracefully. Ensure the function returns *after* UI state updates for consistency.
-* **Tool Strategy**: Tools should be atomic, composable, and distinct. Do not force flow control instructions ("Don't call B after A") — let the agent decide. Register/unregister tools dynamically depending on the current page context. Use `annotations: { readOnlyHint: true }` (placed after `execute`) for tools that do not modify state to inform the agent of safe execution.
-* **Clean Up**: Always use `AbortSignal` to unregister tools when pages transition or resources are released to avoid leaks and collisions. Do not use `unregisterTool`.
-
-### When to Discourage WebMCP
-
-* **Backend Operations**: If the operation requires intensive compute, access to secure databases, or requires API keys that shouldn't be exposed to the client, use a standard backend MCP server instead of WebMCP.
-* **High-Risk Actions without Guardrails**: Avoid auto-submitting tools for destructive or irreversible actions (e.g., deleting data) unless the UI requires manual user confirmation outside the agent's control.
-* **Hyper-Dynamic State**: If data changes faster than the agent can react, it may work with stale context.
-
-### Anti-Patterns & Warnings (DO NOT DO THIS)
-
-* **Do not use backend transports.** WebMCP is for browser tabs, not Node.js background processes.
-* **Do not include Resources or Prompts.** These are not supported in the current WebMCP spec.
-* **Do not ignore `inputSchema` structure.** Always provide clear descriptions for every parameter to minimize agent hallucinations.
-* **Do not use outside of a Secure Context (HTTPS).**
-
-## Implementation Status
-
-WebMCP is currently in early preview in Chrome browser:
-
-* **Current Status**: Early preview.
-* **Required Version**: Chrome `146.0.7672.0` or higher.
-* **Activation**: Requires enabling the flag `chrome://flags/#enable-webmcp-testing`.
-* **Specification**: Evolving [Draft Community Group specification](https://webmachinelearning.github.io/webmcp/); not yet a standards-track recommendation.