agentleFS
ViviBeriViviBeri/webcraft-pro/skills/responsive-engineering/SKILL.md

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.

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
  1. Distinctive:

    Start with a robust narrow layout, then add space where content benefits from it.

    line 19
  2. Distinctive:

    Prefer fluid sizing with min(), max() and clamp() where it improves continuity.

    line 21
  3. Distinctive:

    Use Grid and Flexbox for layout.

    line 22
  4. Distinctive:

    Avoid fixed heights around dynamic content.

    line 26
  5. Distinctive:

    Ensure images have intrinsic dimensions or aspect-ratio reservations to reduce layout shifts.

    line 28
  6. Distinctive:

    Use appropriate object-fit and focal positioning without cropping essential information.

    line 29
  7. Distinctive:

    Do not make hover the only way to reveal information or actions.

    line 32
  8. Distinctive:

    Keep focus visible and ensure overlays fit within the viewport.

    line 34
  9. Distinctive:

    Do not disable browser zoom.

    line 35
  10. Distinctive:

    Test reflow at narrow widths and enlarged text.

    line 36
  11. Distinctive:

    Prefer logical properties for inline and block directions.

    line 38
  12. Distinctive:

    Avoid relying on exact device dimensions or user-agent detection.

    line 39
  13. Distinctive:

    Use safe-area environment variables when edge-to-edge layouts require them.

    line 40
  14. Distinctive:

    Avoid horizontal overflow caused by long URLs, code, unbroken strings or intrinsic media.

    line 42
  15. Distinctive:

    Test narrow phone, wide phone, tablet, laptop and large desktop widths appropriate to the product.

    line 44
  16. Distinctive:

    Test portrait and landscape when relevant.

    line 45
  17. Distinctive:

    Test keyboard navigation, touch behavior, zoom and long/localized content.

    line 46
  18. Distinctive:

    No unintended horizontal page scrolling.

    line 51
  19. Distinctive:

    No clipped text, hidden actions or overlapping controls.

    line 52
  20. Distinctive:

    Verify at a 320 CSS-pixel-wide viewport and at 400% browser zoom where applicable.

    line 68
  21. Distinctive:

    Test long words, URLs, translated labels, validation messages, empty states and user-generated content.

    line 69
  22. Distinctive:

    Check text resizing and spacing changes without clipping, overlap or loss of controls.

    line 70
  23. Distinctive:

    Test orientation changes and dynamic browser chrome on mobile when the experience depends on viewport height.

    line 71

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.