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.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibilitySkill
- asset-imageSkill
- browser-acceptanceSkill
- clean-build-coreSkill
- clean-build-runtimeSkill
- clean-build-verificationSkill
- clean-build-webSkill
- color-systemsSkill
- design-directionSkill
- editorial-articleSkill
- interface-craftSkill
- knowledge-retrievalSkill
- loading-experienceSkill
- motion-showreelSkill
- performanceSkill
- product-copySkill
- release-deliverySkill
- routerSkill
- seo-securitySkill
- style-atlasSkill
- web-presentationSkill
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
- Distinctive: line 23
Start at the narrow target.
- Distinctive: line 26
Add layout states where content stops working.
- Distinctive: line 27
Test the entire width range.
- Distinctive: line 32
Place breakpoints where content fails, not at named device widths.
- Distinctive: line 33
Use as many states as the content needs.
- Distinctive: line 35
Keep source order meaningful across every state.
- Distinctive: line 39
Use fluid or deliberately stepped typography.
- Distinctive: line 42
Prefer dynamic viewport units when browser chrome affects height.
- Distinctive: line 43
Keep readable line lengths and avoid single-word columns.
- Distinctive: line 48
Use flexible tracks and wrapping.
- Distinctive: line 51
Keep images within their containers.
- Distinctive: line 66
Do not use hidden overflow to conceal lost content or controls.
- Distinctive: line 72
Every hover interaction needs tap and keyboard alternatives.
- Distinctive: line 76
Keep focused form fields above the on-screen keyboard.
- Distinctive: line 94
No clipped text or controls.
- Distinctive: line 95
No desktop row forced onto a phone.
- Distinctive: line 97
No target below minimum size.
- Distinctive: line 98
No fixed UI covering the final content.
≈ “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 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
- Start at the narrow target.
- Establish content order and critical actions.
- Define fluid type, spacing, and media behavior.
- Add layout states where content stops working.
- Test the entire width range.
- 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: 0where 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.
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.

