antislop-human
できること
ウェブサイトやアプリの画面に関するアクセシビリティのルールを、AIのコーディング支援に与えます。文字のコントラスト、キーボード操作、フォーカス表示などが対象です。さまざまなニーズを持つ人が使えるアプリやサイトを作りたい開発者向けです。
使う場面
- ✓開発者が、ユーザーが読んで操作する必要のあるウェブサイトやアプリの画面を作る、または編集するとき。
- ✓開発者が、文字やボタンの色に十分なコントラストがあるか確認する必要があるとき。
- ✓開発者が、インターフェースにキーボード対応と分かりやすいフォーカス表示を入れたいとき。
スキルのリンク
https://github.com/miqdadbadjuber/anti-slop/blob/main/skills/antislop-human/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“会員登録フォームの色とキーボード操作を確認して、誰でも使えるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、コントラストの低さ、フォーカスの欠如、分かりにくい状態表示など、人を排除しかねない問題がインターフェースにないかを確認します。色の組み合わせを検査するためのコントラストチェッカーを含みます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
コントラストチェッカーは含まれていますか?
はい。目で確かめにくい色の組み合わせを検査するための、コントラストチェッカーが含まれています。
スマートフォンでの利用もカバーしますか?
はい。拡大操作や画面上のキーボードなど、人を締め出しかねないモバイルの細部をカバーします。
中核となるantislopファイルが必要ですか?
はい。共通のルールを持つメインのantislopファイルと一緒に使うことを想定しています。
詳細
作者による元の説明
Human and accessibility skill for antislop. Contrast, keyboard, focus, states, and interaction affordances for real people. Includes the contrast checker.
repo: miqdadbadjuber/anti-slop
人気
- GitHubのスター
- 8.0k
- ランキング
- #12650
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
antislop-code
8.0kエージェントが、AIらしく聞こえるコードのコメントを整理し、装飾的で自明なものを取り除き、役立つものは残します。コード自体には触れません。
antislop-copywriting
8.0kエージェントが、マーケティング文、見出し、行動喚起を、よくあるAIの書き方を避けた、平易で人間らしい言葉で書いたり編集したりできるよう支援します。事実のでっち上げも避けます。
antislop-layoutmobile
8.0kエージェントが、スマートフォンからデスクトップまでうまく再配置されるレイアウトを作れるよう支援します。整ったグリッド、横方向のはみ出しがないこと、タップしやすい領域を含みます。
antislop-ui
8.0kエージェントが、一般的な見た目ではなく、練られた色のパレット、実際のレイアウト、目的を持った動きを備えた、デザインされたインターフェースを作れるよう支援します。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。