antislop-human
Skill này làm gì
Cung cấp cho trợ lý lập trình AI các quy tắc truy cập cho giao diện, như độ tương phản chữ, dùng bàn phím và focus. Dành cho lập trình viên muốn ứng dụng hoặc website dùng được với người có nhu cầu khác nhau.
Khi nào nên dùng
- ✓Khi lập trình viên xây dựng hoặc sửa màn hình website hoặc ứng dụng mà người dùng phải đọc và nhấn.
- ✓Khi lập trình viên cần kiểm tra màu chữ hoặc nút có đủ độ tương phản không.
- ✓Khi lập trình viên muốn hỗ trợ bàn phím và trạng thái focus rõ ràng trong giao diện.
Liên kết skill
https://github.com/miqdadbadjuber/anti-slop/blob/main/skills/antislop-human/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm tra màu sắc và hỗ trợ bàn phím trên form đăng ký của tôi để mọi người đều dùng được.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra giao diện xem có vấn đề loại trừ người dùng nào không, như tương phản thấp, thiếu focus hoặc trạng thái không rõ. Nó có một công cụ kiểm tra độ tương phản để kiểm tra các cặp màu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có công cụ kiểm tra độ tương phản không?
Có. Skill có công cụ kiểm tra độ tương phản cho các cặp màu mà bạn không thể kiểm tra bằng mắt.
Nó có bao phủ việc dùng điện thoại không?
Có. Nó bao phủ các chi tiết trên thiết bị di động có thể loại trừ người dùng, như phóng to và bàn phím trên màn hình.
Nó có cần file antislop cốt lõi không?
Có. Skill được dùng cùng file antislop chính, nơi chứa các quy tắc chung.
Chi tiết
Mô tả gốc của tác giả
Human and accessibility skill for antislop. Contrast, keyboard, focus, states, and interaction affordances for real people. Includes the contrast checker.
repo: miqdadbadjuber/anti-slop
Độ phổ biến
- Sao GitHub
- 8.0k
- Vị trí xếp hạng
- #12650
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
antislop-code
8.0kGiúp agent dọn các chú thích code nghe như do AI viết, bỏ những chú thích trang trí hoặc hiển nhiên, giữ lại chú thích hữu ích và không đụng đến code.
antislop-copywriting
8.0kGiúp agent viết và sửa nội dung tiếp thị, tiêu đề và lời kêu gọi hành động bằng ngôn ngữ đơn giản, tự nhiên, tránh các mẫu viết AI và thông tin bịa.
antislop-layoutmobile
8.0kGiúp agent làm bố cục tự sắp xếp lại tốt từ điện thoại đến máy tính, với lưới hợp lý, không tràn ngang và vùng chạm dễ nhấn.
antislop-ui
8.0kGiúp agent thiết kế giao diện trông được chăm chút thay vì chung chung, với bảng màu có suy nghĩ, bố cục thật và chuyển động có mục đích.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.