Implement Service Worker for Offline Support and Caching
Overview: Ensure the service worker is registered in the main JavaScript entry point and that caching strategies are implemented for static assets and navigation requests.
Browse agent skills, compare use cases, and open the original source. Share your results after trying a skill.
Overview: Ensure the service worker is registered in the main JavaScript entry point and that caching strategies are implemented for static assets and navigation requests.
Overview: Ensure that each `<select>` element has a corresponding `<label>` with a matching `for` attribute, or use `aria-label`/`aria-labelledby` if a visible label is not possible. Verify the fix using browser accessibility tools or assistive technology.
Overview: Ensure the search form has a visible or screen reader accessible label, and that autocomplete suggestions are keyboard navigable. Verify that the form uses role='search' and that result counts are announced to screen readers.
Overview: Before testing, ensure the environment supports assistive technologies and that JavaScript is enabled to verify scroll behavior. If custom scrolling is required, check for the presence of a 'prefers-reduced-motion' media query and a method to disable custom effects.
Overview: Ensure the screen reader and browser combination is compatible (e.g., NVDA + Chrome on Windows, VoiceOver + Safari on macOS). Prepare test scenarios that include form completion, navigation, and error correction to validate real user flows.
Overview: Ensure the environment supports scheduler.yield(), or use a MessageChannel-based polyfill as a fallback. Identify synchronous loops or bulk operations that may exceed 50 ms and block user input.
Overview: Before applying fixes, validate the current CSS for px-based font sizes, widths, and padding. Ensure rem is used for font sizes to respect user browser settings, and use % or flex/grid for widths to allow natural adaptation to parent containers.
Overview: Verify that images use both srcset and sizes attributes. Check that the srcset includes multiple image sizes and that the sizes attribute accurately reflects the layout context to ensure the browser selects the optimal image.
Overview: Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes. Ensure that resource hints are applied only to critical assets to avoid unnecessary network requests.
Overview: Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes. Inline only critical CSS to allow the page to start rendering immediately.
Overview: Use the prefers-reduced-motion media query to disable non-essential animations and ensure no content flashes more than 3 times per second to avoid seizure risks.
Overview: Before running this skill, ensure that all internal links are crawled and that the HTTP response codes are checked. Update the href attribute of internal links to point directly to the final destination URL (the 200-status URL after following all redirects). Keep redirects in place for external links, but update internal links to point directly to the canonical URL.