Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)29k · #9470

a11y-audit

Skill này làm gì

Skill này khiến agent kiểm tra ứng dụng web của bạn theo các quy tắc truy cập WCAG 2.2. Skill dành cho lập trình viên và đội sản phẩm muốn người dùng khuyết tật có thể sử dụng trang web và sẵn sàng cho các báo cáo tuân thủ.

Khi nào nên dùng

  • ✓Khi bạn cần tìm vấn đề truy cập trên website hoặc ứng dụng web trước khi ra mắt.
  • ✓Khi bạn muốn kiểm tra độ tương phản màu hoặc sửa các vấn đề trong báo cáo truy cập.
  • ✓Khi bạn muốn kiểm tra truy cập chạy tự động trong quy trình build.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/a11y-audit/skills/a11y-audit/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/a11y-audit/skills/a11y-audit/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy quét website của tôi xem có vấn đề truy cập nào không, và chỉ cho tôi cách sửa từng lỗi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent quét mã nguồn của bạn để tìm các vấn đề WCAG 2.2 và sắp xếp chúng theo mức nghiêm trọng. Sau đó agent gợi ý cách sửa trước và sau cho framework của bạn, và kiểm tra các bản sửa không tạo thêm vấn đề mới.

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.

Accessibility Audit

WCAG 2.2 Accessibility Audit and Remediation Skill

Description

The a11y-audit skill provides a complete accessibility audit pipeline for modern web applications. It implements a three-phase workflow -- Scan, Fix, Verify -- that identifies WCAG 2.2 Level A and AA violations, generates exact fix code per framework, and produces stakeholder-ready compliance reports.

For every violation it finds, it provides the precise before/after code fix tailored to your framework (React, Next.js, Vue, Angular, Svelte, or plain HTML).

What this skill does:

  1. Scans your codebase for every WCAG 2.2 Level A and AA violation, categorized by severity (Critical, Major, Minor)
  2. Fixes each violation with framework-specific before/after code patterns
  3. Verifies that fixes resolve the original violations and introduces no regressions
  4. Reports findings in a structured format suitable for developers, PMs, and compliance stakeholders
  5. Integrates into CI/CD pipelines to prevent accessibility regressions

Features

Feature Description
Full WCAG 2.2 Scan Checks all Level A and AA success criteria across your codebase
Framework Detection Auto-detects React, Next.js, Vue, Angular, Svelte, or plain HTML
Severity Classification Categorizes each violation as Critical, Major, or Minor
Fix Code Generation Produces before/after code diffs for every issue
Color Contrast Checker Validates foreground/background pairs against AA and AAA ratios
Compliance Reporting Generates stakeholder reports with pass/fail summaries
CI/CD Integration GitHub Actions, GitLab CI, Azure DevOps pipeline configs
Keyboard Navigation Audit Detects missing focus management and tab order issues
ARIA Validation Checks for incorrect, redundant, or missing ARIA attributes

Severity Definitions

Severity Definition Example SLA
Critical Blocks access for entire user groups Missing alt text, no keyboard access to navigation Fix before release
Major Significant barrier that degrades experience Insufficient color contrast, missing form labels Fix within current sprint
Minor Usability issue that causes friction Redundant ARIA roles, suboptimal heading hierarchy Fix within next 2 sprints

Usage

Quick Start

# Scan entire project
python scripts/a11y_scanner.py /path/to/project

# Scan with JSON output for tooling
python scripts/a11y_scanner.py /path/to/project --json

# Check color contrast for specific values
python scripts/contrast_checker.py --fg "#777777" --bg "#ffffff"

# Check contrast across a CSS/Tailwind file
python scripts/contrast_checker.py --file /path/to/styles.css

Slash Command

/a11y-audit                    # Audit current project
/a11y-audit --scope src/       # Audit specific directory
/a11y-audit --fix              # Audit and auto-apply fixes
/a11y-audit --report           # Generate stakeholder report
/a11y-audit --ci               # Output CI-compatible results

Three-Phase Workflow

Phase 1: Scan -- Walk the source tree, detect framework, apply rule set.

python scripts/a11y_scanner.py /path/to/project --format table

Phase 2: Fix -- Apply framework-specific fixes for each violation.

See references/framework-a11y-patterns.md for the complete fix patterns catalog.

Phase 3: Verify -- Re-run the scanner to confirm fixes and check for regressions.

python scripts/a11y_scanner.py /path/to/project --baseline audit-baseline.json

Example: React Component Audit

// BEFORE: src/components/ProductCard.tsx
function ProductCard({ product }) {
  return (
    <div onClick={() => navigate(`/product/${product.id}`)}>
      <img src={product.image} />
      <div style={{ color: '#aaa', fontSize: '12px' }}>{product.name}</div>
      <span style={{ color: '#999' }}>${product.price}</span>
    </div>
  );
}
# WCAG Severity Issue
1 1.1.1 Critical <img> missing alt attribute
2 2.1.1 Critical <div onClick> not keyboard accessible
3 1.4.3 Major Color #aaa on white fails contrast (2.32:1, needs 4.5:1)
4 1.4.3 Major Color #999 on white fails contrast (2.85:1, needs 4.5:1)
5 4.1.2 Major Inte
Câu hỏi thường gặp

Skill hỗ trợ những framework nào?

Skill nêu React, Next.js, Vue, Angular, Svelte và HTML thuần. Skill tự nhận ra dự án của bạn đang dùng framework nào.

Vượt qua kiểm tra này có nghĩa là website hoàn toàn dễ truy cập không?

Không. Skill kiểm tra các quy tắc WCAG 2.2 mức A và AA mà nó bao quát, nên kiểm thử với người dùng thật vẫn có ích.

Cuối cùng skill tạo ra gì?

Một báo cáo có cấu trúc cho lập trình viên, quản lý sản phẩm và nhân viên tuân thủ, liệt kê các vi phạm theo mức nghiêm trọng.

Chi tiết

Mô tả gốc của tác giả

Use for any accessibility audit or a11y fix (WCAG 2.2 A/AA, color contrast, compliance report, CI check) in React, Next.js, Vue, Angular, Svelte or HTML. Scans with a11y_scanner.py and checks contrast with contrast_checker.py, then fixes and re-verifies.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9470
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự