Token导航 LogoToken导航

Agent Skill · 开发

wcag(WCAG 命令行)

wcag 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

wcag 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 13,958。

总安装 783周安装 32GitHub Stars 12下载 253核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill wcag

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

wcag 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,支持开发流程管理。适用于围绕仓库状态、代码变更或协作事项进行整理和分析的场景。通过 npx skills add 命令从 GitHub 仓库安装,具体用法可参考原始 README。

安装前需确认权限范围和维护状态,注意是否触发联网、命令执行或文件读写操作。wcag 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/wcag

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill wcag;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

wcag 怎么安装?

在终端执行 npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill wcag。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

wcag 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

wcag 需要什么权限?

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

wcag 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

wcag 用的人多吗?

公开数据是累计安装 783 次,近一周安装 32 次,下载 253 次,GitHub 12 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

wcag 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
wcag

WCAG 命令行 · 本页

78312操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

WCAG 2.2 Accessibility

Deep Knowledge: Use mcp__documentation__fetch_docs with technology: wcag for comprehensive WCAG guidelines, success criteria, and techniques.

When NOT to Use This Skill

  • Automated testing setup - Use the axe-core skill for integrating axe testing tools
  • Component library accessibility - Use framework-specific skills (e.g., React, Vue) for accessible component patterns
  • Design systems - Use UI library skills for pre-built accessible components
  • ARIA implementation only - This skill covers broader WCAG compliance, not just ARIA

Official References


Conformance Levels

LevelDescriptionLegal Requirement
AMinimum accessibilityRarely sufficient
AAStandard accessibilityMost regulations (ADA, EN 301 549)
AAAEnhanced accessibilitySpecialized contexts

WCAG 2.2 Success Criteria Count

LevelNew in 2.2Total
A030
AA624
AAA331

POUR Principles

1. Perceivable

GuidelineKey CriteriaLevel
1.1 Text AlternativesAll non-text content has text alternativeA
1.2 Time-based MediaCaptions, audio descriptionsA-AAA
1.3 AdaptableContent structure, meaningful sequenceA
1.4 DistinguishableColor contrast, resize text, spacingA-AAA
// Text alternatives
<img src="chart.png" alt="Q3 sales increased 25% compared to Q2" />

// Decorative images
<img src="divider.png" alt="" role="presentation" />

// Color contrast (4.5:1 for normal text, 3:1 for large text)
// Use tools: WebAIM Contrast Checker, axe DevTools

2. Operable

GuidelineKey CriteriaLevel
2.1 KeyboardAll functionality via keyboardA
2.2 Enough TimeAdjustable time limitsA-AAA
2.4 NavigableSkip links, focus order, focus visibleA-AAA
2.5 Input ModalitiesTarget size, motion alternativesA-AAA
// Skip link
<a href="#main-content" className="skip-link">
  Skip to main content
</a>

// Focus visible (2.4.7)
button:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

// Target size minimum (2.5.8) - 24x24 CSS pixels
.button {
  min-width: 44px;
  min-height: 44px;
  padding: 12px 16px;
}

3. Understandable

GuidelineKey CriteriaLevel
3.1 ReadableLanguage of page, unusual wordsA-AAA
3.2 PredictableConsistent navigation, identificationA-AA
3.3 Input AssistanceError identification, labelsA-AAA
// Language of page (3.1.1)
<html lang="en">

// Error identification (3.3.1)
<div role="alert" aria-live="assertive">
  Email is required and must be valid
</div>

// Labels (3.3.2)
<label htmlFor="email">Email Address</label>
<input id="email" type="email" aria-describedby="email-hint" />
<span id="email-hint">We'll never share your email</span>

4. Robust

GuidelineKey CriteriaLevel
4.1 CompatibleValid HTML, name/role/valueA
// Name, Role, Value (4.1.2)
<button aria-pressed="true" aria-label="Favorite this item">
  ★
</button>

// Custom controls
<div
  role="slider"
  aria-valuemin={0}
  aria-valuemax={100}
  aria-valuenow={50}
  aria-label="Volume"
  tabIndex={0}
/>

New in WCAG 2.2

Level AA (Required)

CriterionDescription
2.4.11 Focus Not Obscured (Minimum)Focused element at least partially visible
2.4.13 Focus AppearanceFocus indicator meets size/contrast requirements
2.5.7 Dragging MovementsSingle pointer alternative to drag
2.5.8 Target Size (Minimum)24x24 CSS pixels minimum
3.2.6 Consistent HelpHelp in consistent location
3.3.7 Redundant EntryDon't require re-entering info

Level AAA

CriterionDescription
2.4.12 Focus Not Obscured (Enhanced)Focused element fully visible
3.3.8 Accessible Authentication (Minimum)No cognitive function test
3.3.9 Accessible Authentication (Enhanced)No object/content recognition

Common Patterns

Modal Dialog

function Modal({ isOpen, onClose, title, children }) {
  const modalRef = useRef<HTMLDivElement>(null);

  useEffect(() => {
    if (isOpen) {
      // Trap focus inside modal
      modalRef.current?.focus();

      // Prevent body scroll
      document.body.style.overflow = 'hidden';
    }
    return () => {
      document.body.style.overflow = '';
    };
  }, [isOpen]);

  if (!isOpen) return null;

  return (
    <div
      role="dialog"
      aria-modal="true"
      aria-labelledby="modal-title"
      ref={modalRef}
      tabIndex={-1}
      onKeyDown={(e) => e.key === 'Escape' && onClose()}
    >
      <h2 id="modal-title">{title}</h2>
      {children}
      <button onClick={onClose}>Close</button>
    </div>
  );
}

Dropdown Menu

function Dropdown({ label, items }) {
  const [isOpen, setIsOpen] = useState(false);
  const [activeIndex, setActiveIndex] = useState(-1);

  const handleKeyDown = (e: KeyboardEvent) => {
    switch (e.key) {
      case 'ArrowDown':
        e.preventDefault();
        setActiveIndex(i => Math.min(i + 1, items.length - 1));
        break;
      case 'ArrowUp':
        e.preventDefault();
        setActiveIndex(i => Math.max(i - 1, 0));
        break;
      case 'Escape':
        setIsOpen(false);
        break;
      case 'Enter':
      case ' ':
        if (activeIndex >= 0) items[activeIndex].onClick();
        break;
    }
  };

  return (
    <div onKeyDown={handleKeyDown}>
      <button
        aria-haspopup="menu"
        aria-expanded={isOpen}
        onClick={() => setIsOpen(!isOpen)}
      >
        {label}
      </button>
      {isOpen && (
        <ul role="menu">
          {items.map((item, i) => (
            <li
              key={item.id}
              role="menuitem"
              tabIndex={activeIndex === i ? 0 : -1}
              aria-current={activeIndex === i}
            >
              {item.label}
            </li>
          ))}
        </ul>
      )}
    </div>
  );
}

Form with Validation

function Form() {
  const [errors, setErrors] = useState<Record<string, string>>({});

  return (
    <form aria-describedby="form-errors">
      {Object.keys(errors).length > 0 && (
        <div id="form-errors" role="alert" aria-live="polite">
          <h2>Please fix the following errors:</h2>
          <ul>
            {Object.entries(errors).map(([field, msg]) => (
              <li key={field}>
                <a href={`#${field}`}>{msg}</a>
              </li>
            ))}
          </ul>
        </div>
      )}

      <div>
        <label htmlFor="email">
          Email <span aria-hidden="true">*</span>
          <span className="sr-only">(required)</span>
        </label>
        <input
          id="email"
          type="email"
          aria-required="true"
          aria-invalid={!!errors.email}
          aria-describedby={errors.email ? 'email-error' : undefined}
        />
        {errors.email && (
          <span id="email-error" role="alert">{errors.email}</span>
        )}
      </div>
    </form>
  );
}

Testing

Automated Testing with axe-core

// Playwright + axe
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';

test('homepage has no accessibility violations', async ({ page }) => {
  await page.goto('/');

  const results = await new AxeBuilder({ page })
    .withTags(['wcag2a', 'wcag2aa', 'wcag22aa'])
    .analyze();

  expect(results.violations).toEqual([]);
});

// Vitest + axe
import { axe, toHaveNoViolations } from 'jest-axe';
import { render } from '@testing-library/react';

expect.extend(toHaveNoViolations);

test('Button is accessible', async () => {
  const { container } = render(<Button>Click me</Button>);
  const results = await axe(container);
  expect(results).toHaveNoViolations();
});

Manual Testing Checklist

## Keyboard Navigation
- [ ] Tab through all interactive elements
- [ ] Shift+Tab navigates backwards
- [ ] Enter/Space activates buttons and links
- [ ] Arrow keys work in menus, tabs, sliders
- [ ] Escape closes modals and dropdowns
- [ ] No keyboard traps

## Screen Reader
- [ ] All images have alt text
- [ ] Form fields have labels
- [ ] Headings are hierarchical (h1 > h2 > h3)
- [ ] Links are descriptive (not "click here")
- [ ] Dynamic content announced (aria-live)

## Visual
- [ ] Color contrast meets 4.5:1 (normal text)
- [ ] Color contrast meets 3:1 (large text, UI components)
- [ ] Focus indicators visible
- [ ] Content readable at 200% zoom
- [ ] No horizontal scrolling at 320px width

Tools

ToolPurpose
axe DevToolsBrowser extension for auditing
WAVEVisual accessibility evaluation
LighthousePerformance + accessibility audit
NVDA/VoiceOverScreen reader testing
Color Contrast AnalyzerContrast checking

CSS Utilities

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible only for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .button {
    border: 2px solid currentColor;
  }
}

Checklist

Design Phase

  • Color contrast meets requirements
  • Touch targets 44x44 minimum (recommended)
  • Focus states designed
  • Error states include text, not just color

Development

  • Semantic HTML used
  • ARIA only when HTML insufficient
  • Keyboard navigation works
  • Focus management for SPAs
  • Form errors accessible

Testing

  • axe-core in CI pipeline
  • Manual screen reader testing
  • Keyboard-only navigation tested
  • Zoom to 200% tested

Anti-Patterns

Anti-PatternWhy It's WrongCorrect Approach
Using aria-label on <div> without roleARIA on non-semantic elements without roles is ignoredUse semantic HTML first: <button> instead of <div role="button">
<div onclick=""> for buttonsNot keyboard accessible by defaultUse <button> with proper event handlers
Color-only indicatorsFails for colorblind usersAdd icons, text, or patterns alongside color
placeholder as label replacementDisappears on input, low contrastAlways use <label> with for attribute
tabindex > 0Disrupts natural tab orderUse tabindex="0" or rely on DOM order
alt="" on informative imagesScreen readers skip important contentProvide descriptive alt text
Missing focus indicatorsUsers can't see where they areAlways show :focus-visible styles
Auto-playing mediaDisorienting for screen reader usersRequire user action to start media

Quick Troubleshooting

IssueDiagnosisSolution
Screen reader not announcing buttonMissing accessible nameAdd aria-label or visible text inside button
Keyboard trap in modalFocus not properly managedImplement focus trap with first/last element logic
Form errors not announcedNo role="alert" or aria-liveAdd aria-live="assertive" to error container
Low contrast warningText doesn't meet 4.5:1 ratioUse contrast checker, adjust colors or increase font size
Tab order feels wrongDOM order doesn't match visual orderReorder DOM to match visual layout, avoid tabindex > 0
Custom dropdown not accessibleMissing ARIA roles and keyboard handlingUse role="combobox", aria-expanded, arrow key navigation
Dynamic content not announcedChanges happen silentlyUse aria-live="polite" or role="status"
Image button has no labelOnly icon, no text alternativeAdd aria-label with descriptive text

Related Skills

平台分布

Codex

35.6%
按下载量换算90

Claude

32.78%
按下载量换算83

Cursor

18.58%
按下载量换算47

Gemini CLI

9.92%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills