Experience accessibility validate

From forcedotcom/sf-skills · View interactive version

Experience accessibility validate is an AI agent skill from the GitHub repository forcedotcom/sf-skills. Use this skill to determine whether a Lightning Web Component (LWC) is accessible and meets WCAG accessibility guidelines. TRIGGER when the user asks \"is my component accessible?\", \"does my LWC meet accessibility guidelines?\", \"is this component WCAG compliant?\", \"find accessibility problems

How to use this skill

Skill file

<!-- a11y-expert-managed-skill -->

Web Component Accessibility

Accessibility (a11y) patterns and remediation guidance for web components.

Reference any time work involves the visible or interactive surface of a

component — generating, modifying, reviewing, or styling HTML, JS, or

CSS — to apply WCAG 2.2 standards.

Review Context

Conduct a review specifically focused on enhancing web accessibility, guided by the WCAG (Web Content Accessibility Guidelines).

In order to mark code as a violation, it must have a direct correlation to the WCAG rule cited such that it is a clear violation of the criteria.

Key Review Criteria:

  1. Focus Exclusively on Accessibility:
  1. Ensure Minimum and Sufficient Accessibility:
  1. WAI-ARIA Usage:
  1. Component Library Usage
  1. Source Interpretation

Focus: Provide actionable feedback to ensure the component meets the necessary WCAG accessibility requirements, avoiding extraneous feedback unrelated to the prompt's scope. Identify issues in code only if there is an immediate fix. You MUST conduct the review, and subsequently suggest the code fix that solves this issue.

Success Criteria Reviewers

Identify which Success Criteria apply to the code under review, then open the reference files relevant to that code. Each reference supplies criterion-specific analysis, examples, and remediation guidance; the review-wide rules above continue to apply.

Perceivable

Operable

Understandable

Robust

Vision-Assisted Review

When component screenshots or design mocks are available, augment the

source-code review with these vision-level reviewers. Each reference covers

image-based evaluation for the corresponding Success Criterion — contrast

ratios, color dependence, resize/reflow behavior, and non-text content

identification from pixels rather than from the DOM.

Review Output

For each Success Criterion you evaluated, report violations found. If no

violations exist for a criterion, return an empty list for that criterion.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.