antislop-human
Ce qu’il fait
Donne à un assistant de code IA des règles d'accessibilité pour les interfaces, comme le contraste du texte, la navigation au clavier et le focus. Il s'adresse aux développeurs qui veulent que leur application ou leur site fonctionne pour des personnes aux besoins différents.
Quand l’utiliser
- ✓Quand un développeur crée ou modifie un site ou un écran d'application que les utilisateurs doivent lire et utiliser.
- ✓Quand un développeur doit vérifier que les couleurs du texte ou des boutons ont un contraste suffisant.
- ✓Quand un développeur veut une prise en charge du clavier et des états de focus clairs dans une interface.
Lien du skill
https://github.com/miqdadbadjuber/anti-slop/blob/main/skills/antislop-human/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
“Vérifie les couleurs et la navigation au clavier de mon formulaire d'inscription pour que tout le monde puisse l'utiliser.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill contrôle l'interface à la recherche de problèmes qui excluent des personnes, comme un contraste faible, un focus absent ou des états peu clairs. Il inclut un outil de vérification du contraste pour tester les paires de couleurs.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
antislop-human
Anti Slop: Rules for AI Coding Agents. Human skill
Part of the antislop system. Read together with
antislop.md(the core). This skill deep-dives the human concern: the UI must stay usable by people with different eyes, hands, and setups. Contrast, keyboard, focus, states, and the mobile details that exclude people.
How to use this skill
- Load together with
antislop.mdwhenever the task builds or edits UI. The core holds the mechanism (the purpose test, the three tiers, the Delivery Gate); this skill holds the human-side depth: the parts of a UI that exclude people with different eyes, hands, and setups. - Every entry has the same shape: Tell (the pattern), Why (who it excludes, and why it reads as unfinished), Fix (what to do instead), with the governing core rule cited as R-XX.
- Accessibility is not a checklist of extras bolted on at the end. It is part of the core promise that "the UI holds up" (C-4). The Delivery Gate in the core remains the gate; the "Human Skill Checklist" at the end of this file is the supplement to run alongside it.
- The contrast checker (formula + reference table + script) lives in this skill. Use it for every color pairing you cannot verify by eye.
- This skill keeps only the mobile details that exclude people: zooming, and the on-screen keyboard.
Color & Contrast
Low-Contrast Text
- Tell: light grey text on a white or near-white background, thin body text, muted labels chosen because they look "elegant" but are hard to read.
- Why: it excludes low-vision users and everyone in bright light. It is a visual choice made without checking the standard, which is exactly the kind of default the filter exists to catch.
- Fix: meet WCAG AA minimums (R-25): 4.5:1 for normal text, 3:1 for large text (18px+). Compute the ratio; do not eyeball it.
Text Over a Photo or Gradient
- Tell: white text placed directly over an image or gradient that is light in some areas, checked at one bright spot only.
- Why: contrast is local. Where the image is light, the text drops below 4.5:1 even if the hero still "looks" fine. R-25 requires testing the whole area the text passes over, not a single point.
- Fix: add a scrim or a solid color block behind the text, then verify the worst spot, not the best. If any part of the text area fails, the treatment fails.
The Grey-on-Grey Hallucination
- Tell: "dark grey on black" or "light grey on white" claimed to pass AA without a computation.
- Why: this is the most common accessibility hallucination. The eye overestimates contrast on grey pairs, and agents repeat the claim because it sounds plausible. #555555 on black is 2.8:1. It fails.
- Fix: never assert a pairing passes. Run the contrast checker (below) or apply the formula. When neither is possible, use the reference table.
Non-Text Contrast
- Tell: interactive components (buttons, icons, input borders, focus indicators, chart segments) distinguished from their background by less than 3:1.
- Why: non-text UI carries information by shape and edge. When the edge is a hair of tint, low-vision users cannot find the control. The same bar applies to states like hover and selected.
- Fix: give every component boundary and every status indicator a 3:1 ratio against adjacent colors (WCAG 1.4.11). Pair icons with a text label that meets 4.5:1.
The Contrast Checker
The home of the contrast checker. Three layers, from most to least convenient:
The script. When a script runtime is available and the file is present, run it instead of computing by hand. The script ships in this skill's folder (contrast-check.py, next to this SKILL.md). Run it with python3 on macOS and Linux, python on Windows:
python3 "${CLAUDE_SKILL_DIR}/contrast-check.py" "#FFFFFF" "#777777"
# normal text: FAIL (4.48 < 4.5)
# large text: PASS (4.48 >= 3.0)
If the ${CLAUDE_SKILL_DIR} variable is not available in this agent, point the script path at this skill's folder directly. The script exists so agents stop hallucinating AA. It takes two hex colors and prints the ratio and the verdict for both text sizes. If the file is missing, the formula and table below are complete on their own. Never block on the script.
The formula (WCAG 2.x).
- Contrast ratio = (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter relative luminance and L2 the darker.
- Relative luminance L of one color: convert each channel to 0-1
Questions fréquentes
Inclut-il un outil de vérification du contraste ?
Oui. Le skill contient un outil de vérification du contraste pour les paires de couleurs que vous ne pouvez pas contrôler à l'œil.
Couvre-t-il l'usage sur téléphone ?
Oui. Il couvre les détails mobiles qui peuvent exclure des personnes, comme le zoom et le clavier à l'écran.
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
Human and accessibility skill for antislop. Contrast, keyboard, focus, states, and interaction affordances for real people. Includes the contrast checker.
repo: miqdadbadjuber/anti-slop
Popularité
- Étoiles GitHub
- 8.0k
- Position au classement
- #12650
- 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-layoutmobile
8.0kAide votre agent à créer des mises en page qui s'adaptent du téléphone à l'ordinateur, sans débordement latéral et avec des zones faciles à toucher.
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.