antislop-layoutmobile
Ce qu’il fait
Donne à un assistant de code IA des règles pour des mises en page adaptatives, qui changent selon la taille de l'écran. Il s'adresse aux développeurs qui veulent qu'une page soit bien présentée et utilisable sur téléphone comme sur ordinateur.
Quand l’utiliser
- ✓Quand un développeur crée une mise en page qui doit fonctionner sur téléphone comme sur écran d'ordinateur.
- ✓Quand la page d'un développeur déborde sur le côté ou se casse sur un petit écran.
- ✓Quand un développeur veut des boutons et des liens faciles à toucher sur téléphone.
Lien du skill
https://github.com/miqdadbadjuber/anti-slop/blob/main/skills/antislop-layoutmobile/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Mon site dépasse sur le côté de l'écran de mon téléphone. Corrige la mise en page pour qu'elle s'adapte correctement.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill traite la mise en page mobile comme une conception à part entière, avec un contenu réorganisé, redimensionné et réordonné. Il vérifie les points de rupture, les grilles, les débordements, la taille des zones tactiles et la navigation.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
antislop-layoutmobile
Anti Slop: Rules for AI Coding Agents. Mobile Layout skill
Part of the antislop system. Read together with
antislop.md(the core). This skill deep-dives the responsive layout concern: how a layout must reflow across screen sizes, phone to desktop. Breakpoints, scale, grids, overflow, tap targets, and navigation. It references core rules by number and never duplicates or renumbers them. Load it when the task builds or edits a layout that has to hold up at any screen width.
How to use this skill
- Load together with
antislop.mdwhenever the task is mobile or responsive layout work. The core holds the mechanism (the purpose test, the three tiers, the Delivery Gate); this skill holds mobile-layout depth. - Every entry has the same shape: Tell (the pattern), Why (why it reads as slop), Fix (what to do instead), with the governing core rule cited as R-XX.
- The principle behind this skill: mobile layout is a different layout, not the desktop layout at a smaller size. It must reflow: re-stack, rescale, and re-order with intent. Every pattern below is a way a layout fails to reflow.
- The Delivery Gate in the core remains the gate. The "Layoutmobile Skill Checklist" at the end of this file is the mobile-specific supplement to run alongside it.
Breakpoints
Desktop-Only Layout
- Tell: one layout state for every screen; the mobile view is the desktop layout squeezed into a phone.
- Why: R-03 requires a mobile layout that is perfect, not an afterthought. A page that only shrinks has no mobile design at all: cards that worked side by side overlap, and text meant for a wide canvas crowds into a narrow one.
- Fix: define a real mobile state at the breakpoint where the content stops working. The mobile layout reflows: columns stack, sizes drop, and order changes where the content needs it. If the mobile view is just the desktop view at a smaller width, the layout is not done.
Breakpoint Driven by Device List
- Tell: breakpoints named after phone widths (375px, 414px, 768px) chosen because "that is the iPhone size", not because the content breaks there.
- Why: device widths change every year and every model. A breakpoint is a point where the layout stops holding; forcing it to match a device list makes the layout follow a spec sheet instead of the content (R-03).
- Fix: place breakpoints where the content actually breaks: when a column stops being readable, when a row of cards gets too narrow. Test by narrowing the viewport and watching where it snaps, then set the breakpoint there.
Mobile Styled Last
- Tell: mobile rules bolted on as a trailing override: a long desktop stylesheet with a small media query at the end fixing one or two things.
- Why: an override patch is not a mobile design. It fixes the symptom that got reported and leaves the next one, and the base styles stay tuned for a wide screen (R-03).
- Fix: treat mobile as a designed state, not an override. Give the narrow viewport its own deliberate sizes and stacking, and verify the whole layout there, not just the patched spots (R-35).
Two-State Layout
- Tell: a layout with exactly two states: a single stacked column below one breakpoint, and a wide multi-column grid above it, with nothing defined in between. A tablet or small laptop width then inherits whichever state is closest: the phone stack stretched absurdly wide, or the desktop grid crammed into a fraction of its intended canvas.
- Why: a page is a continuous range of widths, and R-03 demands it hold up at every one of them, not just two chosen breakpoints. Two states leave the whole middle band of the range (roughly 600 to 1024 px, where tablets and small laptops live) as an accident: content that neither stacks with intent nor sits in a grid that fits. The layout reads as designed only at its two sample points and broken everywhere between.
- Fix: define real states at the widths where the content stops working, and let them be as many as the content needs. A typical reflow is three states, not two: single column, then a two-column grid when cards get too wide as a single stack, then the full multi-column grid only when it genuinely fits. Verify by dragging the viewport through the whole range, not by checking two widths and calling it done (R-35).
Scale & Sizing
Desktop-Sized Everything
- Tell: padding, gaps, hero heights, and card sizes carried unchanged from desktop t
Questions fréquentes
Une mise en page mobile n'est-elle qu'une version réduite du bureau ?
Non. Le skill indique qu'une mise en page pour téléphone doit être repensée avec intention, et non simplement réduite.
Vérifie-t-il les zones tactiles ?
Oui. Il couvre les zones tactiles, pour que les boutons soient faciles à toucher sur téléphone.
Nécessite-t-il le fichier antislop principal ?
Oui. Il est conçu pour être utilisé avec le fichier antislop principal, qui contient les règles communes.
Détails
Description originale de l’auteur
Mobile layout skill for antislop. Use for layouts that reflow across screen sizes, phone to desktop: grids, overflow, tap targets. Load with the core.
repo: miqdadbadjuber/anti-slop
Popularité
- Étoiles GitHub
- 8.0k
- Position au classement
- #12651
- Licence
- MIT
- Mis à jour
- 01/11/2026
Commentaires
- …
Autres skills de ce dépôt
antislop-code
8.0kAide votre agent à nettoyer les commentaires de code d'allure IA : retire les décoratifs ou évidents, garde les utiles, sans toucher au code.
antislop-copywriting
8.0kAide votre agent à rédiger et corriger des textes marketing, titres et appels à l'action en langage humain, sans tics d'IA ni faits inventés.
antislop-human
8.0kAide votre agent à créer des interfaces accessibles à tous, avec des contrastes lisibles, une navigation au clavier, un focus visible et des états clairs.
antislop-ui
8.0kAide votre agent à concevoir des interfaces soignées plutôt que génériques, avec une palette de couleurs réfléchie, une vraie mise en page et des animations utiles.
Skills similaires
angular-developer
280kAide votre agent à créer du code Angular et à conseiller sur la structure des projets. Utile pour démarrer, créer des composants ou améliorer performances et accessibilité.
frontend-a11y
280kAide votre agent à rendre les interfaces web accessibles à tous. Il garantit que sites et apps fonctionnent avec les lecteurs d'écran et la navigation au clavier.
frontend-patterns
280kPermet à votre agent d'appliquer les modèles modernes du frontend : optimisation des performances, gestion d'état et bonnes pratiques avec React et Next.js.