跳到正文
Skillpedia
界面(UI/UX)48k · #6035

ui-a11y

它能做什么

这个工具会检查网页组件或页面是否对所有人都可访问,尤其是残障人士,并尝试修复发现的问题。

适用场景

  • ✓当你想确保网站对视力障碍用户也好用时。
  • ✓当你在制作按钮或链接时,希望它们在触屏上也容易点按。
  • ✓当你想检查网站上的文字和颜色对比度是否足以让人轻松阅读时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-a11y/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-a11y/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“检查并修复此页面的无障碍问题:[页面 URL]”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会分析页面代码,查找常见的无障碍问题,比如颜色对比度过低、图片缺少描述,或按钮太小。它会尝试自动修复其中一部分问题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Accessibility Audit

When to Use

Use this skill when you need audit a component or page for accessibility issues and fix them.

When NOT to use

  • For general design system compliance review → use /ss-review
  • For Nielsen UX heuristics → use /ss-audit
  • For non-StyleSeed code (no data-slot, no semantic tokens) — assumes StyleSeed conventions
  • For runtime testing — this is a static code audit, not a screen-reader simulation

Target: $ARGUMENTS

Audit Criteria

WCAG 2.2 AA Compliance

1. Perceivable

  • Color contrast: Text must meet 4.5:1 (normal) or 3:1 (large/bold text)
    • Check text-muted-foreground (#717182) on bg-background (#FFFFFF) = 4.6:1 (passes)
    • Check text-brand on white (verify contrast with your skin's brand color)
    • Flag any custom colors that don't meet ratio
  • Non-text contrast: UI controls/graphics must meet 3:1
  • Text alternatives: All <img> need alt, icons need aria-label when meaningful
  • Color independence: Don't convey info by color alone (add icons/text)

2. Operable

  • Touch targets: Minimum 44x44px (min-h-11 min-w-11)
    • Common violation: h-9 (36px) buttons — should be h-11
    • Icon buttons need explicit size: w-11 h-11
  • Keyboard navigation: All interactive elements must be keyboard-accessible
    • Tab order should be logical
    • focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
  • Motion: Animations must respect prefers-reduced-motion
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }
    

3. Understandable

  • Labels: Form inputs must have visible labels or aria-label
  • Error messages: Form errors must be programmatically associated (aria-describedby)
  • Language: <html lang="en"> (or appropriate language code for your project)

4. Robust

  • Semantic HTML: Use appropriate elements (<button>, <nav>, <main>, <header>)
  • ARIA: Use Radix UI components (they handle ARIA automatically)
  • Roles: Custom interactive elements need proper role attributes

Design System Token Reference

Token Minimum Contrast Note
--foreground 7:1+ Body text — verify with your skin
--muted-foreground 4.5:1+ Secondary text — verify with your skin
--brand 4.5:1+ Accent — verify with your skin's brand color
--destructive 4.5:1+ Error — verify with your skin
--success 3:1+ Large text/icons only — verify with your skin
--warning 4.5:1+ Warning text — some skins need a darker variant

Output

  1. Issues found: List with severity (Critical/Major/Minor)
  2. Auto-fixes: Apply fixes directly where possible
  3. Manual review needed: Flag items that need human judgment

Example

User request:

Audit a component or page for accessibility issues and fix them.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
常见问题

什么是网页无障碍?

指确保网站和应用能被所有人使用,包括有视觉、听觉、运动或认知障碍的人。

WCAG 2.2 AA 标准是什么?

这是国际通用的网页内容无障碍指南。AA 级是常用的遵循标准。

这个工具能修复所有问题吗?

它会尝试自动修复常见问题,但有些问题仍需要人工检查和调整。

详情

作者的原始描述

Audit a component or page for accessibility issues and fix them

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6035
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能