adapt
Installation
SKILL.md
Adapt — Responsive Adaptation & Container Queries
Mandatory Pre-Flight Context Inspection
Before engineering responsive layouts or cross-device UIs, you MUST inspect:
- Container Queries (
@container) over Viewport Media Queries (Section 24) → Adapt component layouts based on parent container width (container-type: inline-size) - Touch Target Sizing (Section 39) → Ensure interactive controls meet min
44x44pxtarget size on touch devices - Fluid Clamp Scaling (Section 45) → Use
clamp()for smooth fluid typography and spacing without abrupt media query jumps
Architect UIs that adapt fluidly to screen dimensions, container boundaries, input devices (touch vs pointer), and orientation.
Activation Boundaries
- Activate when: Operating in tasks requiring Adapt designs across breakpoints, devices, platform constraints, touch vs mouse input, and container queries. Use when making a UI responsive or optimizing for mobile/tablet..
- DO NOT activate when: The task falls strictly outside adapt domain or belongs to a different dedicated specialist.