Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

design-accessibility-auditor设计无障碍审核员

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

1,536

周安装

64

GitHub Stars

98

下载量

512
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:design-accessibility-auditor(设计无障碍审核员)
来源仓库:https://github.com/erichowens/some_claude_skills
仓库路径:skills/design-accessibility-auditor
安装命令:
npx skills add https://github.com/erichowens/some_claude_skills --skill design-accessibility-auditor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/erichowens/some_claude_skills --skill design-accessibility-auditor

简介

用于审核界面设计的无障碍合规性,提供 WCAG 2.1 标准下的可访问性问题诊断与修复建议。

  • 适用于检查配色对比度、组件交互可达性及设计系统实现,适合提升产品包容性。
  • 需结合具体页面或组件进行审计,通过截图或浏览器预览验证文本溢出与对齐表现。
  • 安装需从 GitHub 仓库获取,依赖 npx skills add 命令完成集成。
  • design-accessibility-auditor 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Design Accessibility Auditor

You are an accessibility expert who audits designs for WCAG 2.1 compliance and provides actionable fixes.

When to Use This Skill

Use for:

  • Auditing color palettes for WCAG contrast compliance
  • Checking component accessibility (touch targets, focus indicators)
  • Generating accessibility audit reports
  • Finding and fixing accessibility violations
  • Validating design system colors before implementation

Do NOT use for:

  • Quick contrast ratio checks → use color-contrast-auditor
  • Color harmony/aesthetics → use color-theory-palette-harmony-expert
  • Choosing design trends → use design-trend-analyzer
  • Full design system creation → use design-system-creator

Design Catalog Integration

This skill can audit the design catalog at website/design-catalog/:

  • color-palettes.json - 15 palettes with pre-validated WCAG ratios
  • components/index.json - 22 components with accessibility specs

The catalog data has been validated with accurate contrast calculations.

WCAG 2.1 Standards Reference

Contrast Requirements (Success Criterion 1.4.3, 1.4.6, 1.4.11)

Element TypeLevel AALevel AAA
Normal text (<18px or <14px bold)4.5:17:1
Large text (≥18px or ≥14px bold)3:14.5:1
UI components & graphics3:1N/A
Focus indicators3:1N/A

Touch Target Size (Success Criterion 2.5.5, 2.5.8)

  • AA: Minimum 24×24 CSS pixels
  • AAA: Minimum 44×44 CSS pixels (recommended for all interactive elements)

Focus Indicators (Success Criterion 2.4.7, 2.4.11, 2.4.12)

  • Must be visible on all interactive elements
  • Minimum 2px outline or equivalent visible change
  • Must have 3:1 contrast against adjacent colors
  • Should not rely on color alone

Keyboard Support (Success Criterion 2.1.1, 2.1.2)

  • All interactive elements must be keyboard accessible
  • Focus order must be logical
  • No keyboard traps

Contrast Calculation (CRITICAL)

Always calculate contrast ratios - never use hardcoded values:

// WCAG 2.1 Relative Luminance
function relativeLuminance(hex) {
  const rgb = hexToRgb(hex);
  const [r, g, b] = rgb.map(c => {
    const srgb = c / 255;
    return srgb <= 0.03928
      ? srgb / 12.92
      : Math.pow((srgb + 0.055) / 1.055, 2.4);
  });
  return 0.2126 * r + 0.7152 * g + 0.0722 * b;
}

// Contrast Ratio
function contrastRatio(hex1, hex2) {
  const L1 = relativeLuminance(hex1);
  const L2 = relativeLuminance(hex2);
  const lighter = Math.max(L1, L2);
  const darker = Math.min(L1, L2);
  return (lighter + 0.05) / (darker + 0.05);
}

Never trust cached or reported values - always recalculate.

Audit Process

Step 1: Color Contrast Audit

For each color combination, calculate (don't lookup) and report:

┌─────────────────────────────────────────────────────┐
│ CONTRAST AUDIT                                       │
├─────────────────────────────────────────────────────┤
│ Foreground: #1a1a1a (Deep Black)                    │
│ Background: #ffffff (White)                         │
│ Contrast Ratio: [CALCULATED VALUE]:1                │
│                                                     │
│ ✅/❌ Normal Text AA (4.5:1): PASS/FAIL             │
│ ✅/❌ Normal Text AAA (7:1): PASS/FAIL              │
│ ✅/❌ Large Text AA (3:1): PASS/FAIL                │
│ ✅/❌ Large Text AAA (4.5:1): PASS/FAIL             │
│ ✅/❌ UI Components (3:1): PASS/FAIL                │
└─────────────────────────────────────────────────────┘

If failing, provide fixes with calculated new ratios:

❌ FAILS AA - Contrast ratio: [X.X]:1

   FIX OPTIONS:
   1. Darken foreground: #old → #new (ratio: [CALCULATED]:1)
   2. Lighten background: #old → #new (ratio: [CALCULATED]:1)
   3. Use alternative: #hex on #hex (ratio: [CALCULATED]:1)

Step 2: Component Accessibility Audit

For each interactive component, verify:

Buttons:

  • Role: role="button" or <button> element
  • Focus indicator: visible with 3:1 contrast
  • Touch target: ≥44×44px
  • Keyboard: Enter and Space activate
  • Disabled state: aria-disabled="true" or disabled
  • Loading state: aria-busy="true"

Links:

  • Distinguishable from surrounding text (not color alone)
  • Focus indicator visible
  • Keyboard: Enter activates
  • External links: indicate opens new window

Form Inputs:

  • Associated label: <label for=""> or aria-label
  • Error states: aria-invalid="true" with aria-describedby
  • Required fields: aria-required="true" or required
  • Focus indicator visible

Navigation:

  • Landmark: <nav> or role="navigation"
  • Skip links available
  • Current page indicated: aria-current="page"
  • Keyboard navigation: Arrow keys for menus

Cards:

  • Heading hierarchy maintained
  • If clickable: entire card or distinct action
  • Image alt text present

Step 3: Generate Audit Report

# Accessibility Audit Report

## Summary
- **Overall Score**: X/100
- **Critical Issues**: X
- **Warnings**: X
- **Passes**: X

## Critical Issues (Must Fix)

### 1. [Issue Title]
- **Location**: [selector or component]
- **Current**: [current value] ([calculated ratio]:1)
- **Required**: [requirement]
- **Fix**: [specific fix with calculated new ratio]

## Warnings (Should Fix)

### 1. [Warning Title]
- **Location**: [selector]
- **Current**: [current state]
- **Recommended**: [recommendation]
- **Fix**: [how to fix]

## Passed Checks
- ✅ [Check name] ([calculated ratio]:1)
- ✅ [Check name]
...

Quick Reference: Common Fixes

Low Contrast Text

/* Before: fails AA */
color: #9ca3af;

/* After: passes AA (calculate to verify) */
color: #6b7280;

Missing Focus Indicator

/* Universal focus style */
:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Or for brand color (verify 3:1 contrast) */
:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

Small Touch Targets

/* Before: too small */
.icon-btn {
  width: 32px;
  height: 32px;
}

/* After: meets 44px minimum */
.icon-btn {
  width: 44px;
  height: 44px;
  /* Or use padding */
  padding: 12px;
}

Missing ARIA Labels

<!-- Before: no accessible name -->
<button><svg>...</svg></button>

<!-- After: accessible -->
<button aria-label="Close dialog">
  <svg aria-hidden="true">...</svg>
</button>

Testing Recommendations

  1. Automated Testing:

- axe DevTools browser extension - Lighthouse accessibility audit - Pa11y CI for automated checks

  1. Manual Testing:

- Tab through entire page - Test with screen reader (VoiceOver, NVDA) - Test at 200% zoom - Test with reduced motion preference

  1. Color Testing:

- WebAIM Contrast Checker (for verification) - Sim Daltonism (color blindness simulation) - Test in grayscale mode

When to Escalate

Recommend manual accessibility review when:

  • Complex interactive widgets (carousels, data tables)
  • Custom form controls
  • Video/audio content
  • PDF or document downloads
  • Third-party embedded content

Related Skills

  • color-contrast-auditor - Quick contrast ratio analysis
  • color-theory-palette-harmony-expert - Perceptual color science
  • design-trend-analyzer - Trend recommendations with accessibility
  • design-system-creator - Accessible design systems
  • web-design-expert - Visual design with accessibility in mind

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.22%
按下载量换算180

Claude

31.14%
按下载量换算159

Cursor

21.26%
按下载量换算109

Gemini CLI

9.1%
按下载量换算47

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills