Apply Flexbox Best Practices for Layout Stability
Overview: Ensure the environment supports modern CSS features like flex shorthand and gap. Prepare by reviewing the rendered layout across breakpoints and interaction states before proposing fixes.
Browse agent skills, compare use cases, and open the original source. Share your results after trying a skill.
Overview: Ensure the environment supports modern CSS features like flex shorthand and gap. Prepare by reviewing the rendered layout across breakpoints and interaction states before proposing fixes.
Overview: Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes. Ensure critical CSS is inlined for above-fold content and eliminate render-blocking resources.
Overview: Ensure the LCP image or hero element is identified before adding fetchpriority="high". Also, apply fetchpriority="low" to non-critical below-the-fold images to avoid resource contention.
Overview: Ensure the parent container is properly scoped and that event.target.closest() is used to identify the intended target element. Clean up listeners on the parent when the container is removed from the DOM.
Overview: Ensure the project uses a bundler or adds type="module" to script tags for browser compatibility. Prepare existing code for migration by identifying all require() and module.exports statements.
Overview: Install an error monitoring SDK early in the app entry point and ensure user context, release version, and environment are attached to every event.
Overview: Ensure the onerror attribute is correctly implemented with valid fallback image URLs. Prepare placeholder content that matches the context of the missing image. The first deliverable is a working fallback image or placeholder content that appears when the primary image fails to load.
Overview: Ensure the code being reviewed includes async operations and React components, as these are the primary targets for error handling improvements. Log errors with sufficient context to aid debugging.
Overview: Before applying fixes, validate that the CSS is not critical for above-the-fold rendering or dynamic (e.g., CSS custom properties). Ensure external CSS files are properly linked and cached.
Overview: Rename affected elements using semantic, content-specific class names such as .privacy-controls or .cookie-preferences to avoid false-positive blocking by adblockers. Test the page with uBlock Origin enabled to verify visibility.
Overview: Ensure the project uses a testing framework like Playwright or Cypress, and that E2E tests are integrated into CI/CD pipelines with artifact uploads on failure.
Overview: Verify the actual bottleneck using DevTools, Lighthouse, or field data before recommending changes. Ensure third-party scripts are audited for bundled dependencies.