agentleFS
revizahoshii-norevizahoshii-no/agent-skill-project/skills/responsive-mobile/SKILL.md

responsive-mobile

Skill1 starsChanged 25 days agoMITView on GitHub

Design and verify mobile-first layouts that reflow across continuous widths without overflow, clipping, inaccessible targets, or desktop-only interaction assumptions.

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 18 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    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 at the narrow target.

    line 23
  2. Distinctive:

    Add layout states where content stops working.

    line 26
  3. Distinctive:

    Test the entire width range.

    line 27
  4. Distinctive:

    Place breakpoints where content fails, not at named device widths.

    line 32
  5. Distinctive:

    Use as many states as the content needs.

    line 33
  6. Distinctive:

    Keep source order meaningful across every state.

    line 35
  7. Distinctive:

    Use fluid or deliberately stepped typography.

    line 39
  8. Distinctive:

    Prefer dynamic viewport units when browser chrome affects height.

    line 42
  9. Distinctive:

    Keep readable line lengths and avoid single-word columns.

    line 43
  10. Distinctive:

    Use flexible tracks and wrapping.

    line 48
  11. Distinctive:

    Keep images within their containers.

    line 51
  12. Distinctive:

    Do not use hidden overflow to conceal lost content or controls.

    line 66
  13. Distinctive:

    Every hover interaction needs tap and keyboard alternatives.

    line 72
  14. Distinctive:

    Keep focused form fields above the on-screen keyboard.

    line 76
  15. Distinctive:

    No clipped text or controls.

    line 94
  16. Distinctive:

    No desktop row forced onto a phone.

    line 95
  17. Distinctive:

    No target below minimum size.

    line 97
  18. Distinctive:

    No fixed UI covering the final content.

    line 98

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

Use when

  • building or changing a responsive layout;
  • repairing overflow or cramped content;
  • designing mobile navigation;
  • verifying touch targets and safe areas;
  • supporting phones, tablets, laptops, and desktops.

Core principle

Mobile is a distinct layout state, not a scaled desktop layout. Reflow content according to available space and task priority.

Workflow

  1. Start at the narrow target.
  2. Establish content order and critical actions.
  3. Define fluid type, spacing, and media behavior.
  4. Add layout states where content stops working.
  5. Test the entire width range.
  6. Repair the element causing overflow instead of hiding it.

Breakpoints

  • Place breakpoints where content fails, not at named device widths.
  • Use as many states as the content needs.
  • Prevent the common two-state gap where tablets inherit either a stretched phone layout or a cramped desktop grid.
  • Keep source order meaningful across every state.

Scale

  • Use fluid or deliberately stepped typography.
  • Reduce section spacing and gaps on narrow screens.
  • Let sections size to content unless a real full-viewport composition is required.
  • Prefer dynamic viewport units when browser chrome affects height.
  • Keep readable line lengths and avoid single-word columns.

Reflow

  • Collapse multi-column layouts before they become unreadable.
  • Use flexible tracks and wrapping.
  • Apply min-width: 0 where children must shrink.
  • Give tables and code blocks a deliberate narrow-screen strategy.
  • Keep images within their containers.
  • Wrap or break long user content safely.

Overflow

A page must not leak horizontal scroll. Find the offender:

  • fixed-width child;
  • unbroken string;
  • table or code block;
  • translated text;
  • media without constraints;
  • transform outside the viewport;
  • fixed navigation without reserved space.

Do not use hidden overflow to conceal lost content or controls.

Touch and navigation

  • Minimum target area: 44 by 44 CSS pixels.
  • Separate adjacent targets enough to prevent accidental activation.
  • Every hover interaction needs tap and keyboard alternatives.
  • Mobile navigation must be discoverable and labeled.
  • Sticky or fixed navigation must remain compact and reserve space.
  • Respect safe-area insets.
  • Keep focused form fields above the on-screen keyboard.

Verification

Check at minimum:

  • a narrow phone around 320 CSS pixels;
  • a common phone around 400 CSS pixels;
  • tablet width;
  • small laptop width;
  • desktop width;
  • 200 percent text zoom where applicable.

Drag through intermediate widths. Sample screenshots alone do not prove continuous responsiveness.

Completion check

  • No horizontal overflow.
  • No clipped text or controls.
  • No desktop row forced onto a phone.
  • No hover-only task.
  • No target below minimum size.
  • No fixed UI covering the final content.
  • Navigation and forms remain usable with touch and keyboard.

Human documentation: ../../docs/guides/responsive-mobile.md.

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.