ui-intergrity
Installation
SKILL.md
UI Integrity
Prevent visual integration bugs, including unintended overlap; z-index or stacking-context conflicts; clipping and overflow; broken absolute, fixed, or sticky positioning; layout shifts; scroll and animation collisions; extension UI interfering with native website UI; invisible elements blocking clicks; duplicate injected components; and responsive-layout breakage.
Approach
When changing UI:
- Identify the component's intended spatial owner and positioning context.
- Inspect nearby native and custom UI for possible collisions.
- Test default, hover, expanded, animated, scrolled, and resized states.
- Check bounding boxes, overflow, stacking contexts, and pointer events when something looks wrong.
- Fix the underlying layout relationship instead of masking it with arbitrary offsets or huge
z-indexvalues. - Re-test the changed component and surrounding UI.
Browser extension rules
When injecting UI into another website: