responsive-engineering
Skill11 starsChanged 9 days agoMITView on GitHub
Use when implementing or auditing responsive layouts, mobile and tablet behavior, fluid typography, container queries, touch interactions or zoom and reflow support.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- accessibility-automationSkill
- accessibility-reviewSkill
- accessible-componentsSkill
- accessible-motionSkill
- animation-performanceSkill
- anti-slop-uiSkill
- api-securitySkill
- authentication-sessionsSkill
- authorization-access-controlSkill
- component-engineeringSkill
- core-web-vitalsSkill
- design-directionSkill
- design-system-architectureSkill
- document-head-seoSkill
- font-performanceSkill
- forms-and-validationSkill
- frontend-architectureSkill
- gsap-fundamentalsSkill
- icon-engineeringSkill
- image-asset-optimizationSkill
- independent-reviewSkill
- interactive-storytellingSkill
- javascript-performanceSkill
- keyboard-focusSkill
- modern-cssSkill
- motion-design-systemsSkill
- network-cachingSkill
- performance-auditingSkill
- performance-testingSkill
- premium-landing-pagesSkill
- quickstart-onboardingSkill
- rendering-performanceSkill
- screen-reader-testingSkill
- scrolltrigger-experiencesSkill
- secrets-configurationSkill
- secure-application-designSkill
- secure-input-outputSkill
- security-reviewSkill
- security-testingSkill
- semantic-accessibilitySkill
- visual-design-reviewSkill
- visual-reference-analysisSkill
- wcag-auditingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 23 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Start with a robust narrow layout, then add space where content benefits from it.
- Distinctive: line 21
Prefer fluid sizing with min(), max() and clamp() where it improves continuity.
- Distinctive: line 22
Use Grid and Flexbox for layout.
- Distinctive: line 26
Avoid fixed heights around dynamic content.
- Distinctive: line 28
Ensure images have intrinsic dimensions or aspect-ratio reservations to reduce layout shifts.
- Distinctive: line 29
Use appropriate object-fit and focal positioning without cropping essential information.
- Distinctive: line 32
Do not make hover the only way to reveal information or actions.
- Distinctive: line 34
Keep focus visible and ensure overlays fit within the viewport.
- Distinctive: line 35
Do not disable browser zoom.
- Distinctive: line 36
Test reflow at narrow widths and enlarged text.
- Distinctive: line 38
Prefer logical properties for inline and block directions.
- Distinctive: line 39
Avoid relying on exact device dimensions or user-agent detection.
- Distinctive: line 40
Use safe-area environment variables when edge-to-edge layouts require them.
- Distinctive: line 42
Avoid horizontal overflow caused by long URLs, code, unbroken strings or intrinsic media.
- Distinctive: line 44
Test narrow phone, wide phone, tablet, laptop and large desktop widths appropriate to the product.
- Distinctive: line 45
Test portrait and landscape when relevant.
- Distinctive: line 46
Test keyboard navigation, touch behavior, zoom and long/localized content.
- Distinctive: line 51
No unintended horizontal page scrolling.
- Distinctive: line 52
No clipped text, hidden actions or overlapping controls.
- Distinctive: line 68
Verify at a 320 CSS-pixel-wide viewport and at 400% browser zoom where applicable.
- Distinctive: line 69
Test long words, URLs, translated labels, validation messages, empty states and user-generated content.
- Distinctive: line 70
Check text resizing and spacing changes without clipping, overlap or loss of controls.
- Distinctive: line 71
Test orientation changes and dynamic browser chrome on mobile when the experience depends on viewport height.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Responsive Engineering
Objective
Make the same content and functionality work across viewport sizes, input methods, zoom levels and content lengths. Responsive design is not a desktop layout squeezed onto a phone.
Workflow
- Establish the content model
- Identify primary tasks, reading order, navigation, dense data and critical actions.
- Inspect the existing viewport meta tag and layout constraints.
- Find fixed widths, fixed heights, overflow traps and assumptions about pointer precision.
- Design from constraints
- Start with a robust narrow layout, then add space where content benefits from it.
- Choose breakpoints when the content no longer fits—not from a device list.
- Prefer fluid sizing with min(), max() and clamp() where it improves continuity.
- Use Grid and Flexbox for layout; use container queries when a component depends on its available container rather than the viewport.
- Set sensible maximum line lengths and avoid overly wide text measures.
- Protect content and controls
- Allow text, labels, buttons and cards to wrap or grow.
- Avoid fixed heights around dynamic content.
- Make tables intentionally scrollable or provide a useful narrow-screen alternative.
- Ensure images have intrinsic dimensions or aspect-ratio reservations to reduce layout shifts.
- Use appropriate object-fit and focal positioning without cropping essential information.
- Support touch, keyboard and zoom
- Provide adequately sized and spaced touch targets.
- Do not make hover the only way to reveal information or actions.
- Preserve logical DOM order when changing visual layout.
- Keep focus visible and ensure overlays fit within the viewport.
- Do not disable browser zoom.
- Test reflow at narrow widths and enlarged text.
- Use resilient CSS
- Prefer logical properties for inline and block directions.
- Avoid relying on exact device dimensions or user-agent detection.
- Use safe-area environment variables when edge-to-edge layouts require them.
- Account for dynamic viewport units when browser chrome affects full-height layouts.
- Avoid horizontal overflow caused by long URLs, code, unbroken strings or intrinsic media.
- Verify representative conditions
- Test narrow phone, wide phone, tablet, laptop and large desktop widths appropriate to the product.
- Test portrait and landscape when relevant.
- Test keyboard navigation, touch behavior, zoom and long/localized content.
- Inspect actual rendered pages; do not infer correctness from CSS alone.
Responsive review checklist
- No unintended horizontal page scrolling.
- No clipped text, hidden actions or overlapping controls.
- Navigation remains usable at every tested width.
- Content order remains logical for reading and keyboard navigation.
- Images and embeds scale without distortion.
- Forms remain readable and easy to complete.
- Dialogs and menus remain within the visible viewport.
- Layout survives larger text and longer translations.
- Motion and sticky behavior do not obstruct content.
Completion criteria
The interface preserves content, task completion and accessibility across the tested viewport and input conditions, with any intentional overflow clearly designed and documented.
Reflow and content stress tests
- Verify at a 320 CSS-pixel-wide viewport and at 400% browser zoom where applicable; content must remain available without two-dimensional page scrolling except where the content requires it (for example, a wide data table or map).
- Test long words, URLs, translated labels, validation messages, empty states and user-generated content.
- Check text resizing and spacing changes without clipping, overlap or loss of controls.
- Test orientation changes and dynamic browser chrome on mobile when the experience depends on viewport height.
- Confirm sticky headers, fixed action bars and virtual keyboards do not obscure focused fields or essential content.
- For complex data, document the narrow-screen interaction: scroll region, column prioritization, summary/detail view or alternative representation.
Choose breakpoints from observed content failure. Record widths and conditions actually tested; do not claim universal device coverage from a small sample.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

