Phone layout fixes
Point Claude at a page and it finds common phone layout mistakes, like sideways scrolling, with a fix for each.
See it work
You give it
Use antislop-layoutmobile. Our Pune café's order-ahead menu page looks fine on my laptop, but customers say it's a mess on their phones. Here's the CSS (no media queries yet):
.hero{height:100vh;padding:120px 80px}
h1{font-size:64px}
nav a{display:inline-block;margin:0 28px}
.menu{display:grid;grid-template-columns:repeat(3,360px);gap:40px}
.card .add{opacity:0}
.card:hover .add{opacity:1}
.qty button{width:28px;height:28px}
.cart{position:fixed;bottom:0;height:72px}
The nav has 6 links: Menu, Combos, Catering, Our beans, Careers, Contact. Combos is a 5-column price table (₹249 to ₹649). What do I fix, and what should the phone layout be?
You get back
What breaks on a phone, worst first
1. Horizontal scroll leak / fixed-width grid. repeat(3, 360px) plus two 40px gaps is 1,160px wide. A phone is around 375px wide, so the whole page scrolls sideways and customers have to drag left and right to find the second and third cards. Fix: tracks that shrink and wrap, repeat(auto-fill, minmax(min(100%, 300px), 1fr)), so the menu is one column on a phone, two on a tablet and three only where three really fit. (R-03)
2. Hover-only interaction. .add only appears on :hover. A phone has no hover, so the Add button on every card is invisible and the page can't take an order. This is the most expensive line in the file. Fix: Add is always visible, with an :active state so a tap visibly registers. (R-03)
3. Bottom bar eats content. The 72px cart bar is fixed and nothing reserves its height, so the last menu item and the last row of the combos table scroll under it and can't be reached. Fix: pad the bottom of the page by the bar's height plus the phone's safe-area inset. (R-03)
4. Under-sized targets. The quantity buttons are 28 × 28px. A thumb needs at least 44 × 44px, or people hit the wrong one and order two cold coffees. Fix: 44 × 44px buttons with the quantity number between them as the gap. (R-03)
Part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Sets breakpoints where the content breaks, not by device.
- Finds sideways scrolling and clipped content.
- Checks tap targets and phone menus.
What's inside
antislop-layoutmobile/CREDITS.mdantislop-layoutmobile/LICENSEantislop-layoutmobile/SKILL.md
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use antislop-layoutmobile".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.