What problem does it solve?
This skill solves the problem of invisible or hard-to-reproduce layout shifts (CLS) that degrade user experience by providing a repeatable, instrumented QA loop for web interfaces.
Core Features & Use Cases
- Automated Instrumentation: Injects a PerformanceObserver into the browser to capture layout-shift entries, including node identifiers and bounding-rect deltas.
- Diagnostic Taxonomy: Maps observed shifts to four common root causes: state-driven content swaps, layout-affecting animations, async content arrival, and viewport-dependent reflows.
- A/B Validation: Provides a rigorous workflow to verify fixes by deliberately re-introducing bugs to confirm the instrumentation is active and accurate.
Quick Start
Use the layout-shift-qa skill to instrument the current page and identify the root cause of any layout shifts occurring during the search interaction.