/pf-a11y:pf-a11y-auditfrom pf-a11y
Audits PatternFly components and pages against WCAG 2.2 and ARIA best practices. Reviews markup, component usage, and ARIA attributes in PatternFly source or consumer codebases.
Ships in pf-a11y. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze PatternFly code for WCAG violations and PatternFly-specific accessibility pitfalls. This is code-level auditing — it reviews markup, component usage, and ARIA attributes in source files. It does not run automated testing tools like axe-core.
Works with PatternFly HTML/CSS, PatternFly React, downstream PatternFly org repos (Chatbot, component-groups, etc), and consumer codebases that import PatternFly.
WCAG reference: 2.2 (W3C Recommendation, October 2023). Use this reference version anytime WCAG is mentioned or used throughout this skill. Update this reference version and date when a new WCAG version becomes the W3C Recommendation.
If @patternfly/patternfly-mcp is available, use it for current component API details and accessibility guidance. This skill defines the audit rules; the MCP fills in API specifics.
Many PatternFly components have an "Accessibility" tab on their documentation pages with component-specific a11y notes and recommendations. When auditing a component, check for this documentation and surface relevant recommendations to the user — these are often more specific than general WCAG rules.
Determine which audience the codebase belongs to before auditing:
PatternFly developer — the codebase is a PatternFly org repo (core HTML/CSS library, React library, or a downstream PatternFly repo like Chatbot or component-groups). Signals: workspace root contains packages/ with PatternFly component source, package.json has @patternfly in its name field, or repo is under the patternfly GitHub org.
Focus on:
Consumer — the codebase is a non-PatternFly product that imports and uses PatternFly (React or HTML/CSS). Signals: @patternfly/* packages in dependencies, or PatternFly CSS classes (pf-v6-c-*, pf-v6-l-*) in markup.
Focus on:
Audit all code against WCAG Level A and Level AA success criteria (see version above). Report violations as ERROR. Report best-practice gaps that don't violate a specific criterion as WARN.
In addition to WCAG, check for the following PatternFly-specific issues:
references/aria-attributes.md. Check that PatternFly component props match their ARIA attribute intent and that required attributes are always present (e.g., aria-selected on listbox options must be true/false, never omitted).aria-live. For PatternFly: Alert uses isLiveRegion prop, AlertGroup wraps dynamic alerts with isLiveRegion, toast patterns use the correct politeness level.references/pf-gotchas.md. Flag patterns like duplicate default accessible names, conflicting ARIA attributes, and missing landmark labels.Do NOT flag:
alt="" or aria-hidden="true"Select manages aria-expanded — do not ask consumers to add it manually)role="presentation" or role="none"@patternfly/react-core, @patternfly/react-table, @patternfly/chatbot) or PatternFly CSS classes (pf-v6-c-*, pf-v6-l-*).references/aria-attributes.md for ARIA correctness checks and references/pf-gotchas.md for PatternFly-specific checks.Per finding:
[ERROR|WARN|INFO] file/path.tsx:42 — description (WCAG X.X.X)
Found: what was detected
Fix: recommended action
Use ERROR for WCAG Level A/AA violations and PatternFly checks marked ERROR. Use WARN for best-practice gaps. Use INFO for suggestions and component-specific doc recommendations. Include the WCAG success criterion number when applicable.
End with a summary:
## Accessibility Audit Summary
Scanned: N files
Errors: N (WCAG A/AA violations)
Warnings: N (best practice gaps)
Info: N (suggestions)
Group findings by file, then by severity within each file.
eval/cases/clean-with-exceptions/AccessiblePage.tsx (opens in a new tab)eval/cases/clean-with-exceptions/annotations.yaml (opens in a new tab)eval/cases/clean-with-exceptions/input.yaml (opens in a new tab)eval/cases/consumer-pf-gotchas/ClusterDashboard.tsx (opens in a new tab)eval/cases/consumer-pf-gotchas/annotations.yaml (opens in a new tab)eval/cases/consumer-pf-gotchas/input.yaml (opens in a new tab)eval/cases/form-pf-specific/SettingsForm.tsx (opens in a new tab)eval/cases/form-pf-specific/annotations.yaml (opens in a new tab)eval/cases/form-pf-specific/input.yaml (opens in a new tab)eval/cases/pf-developer-aria-wiring/ExpandableCard.tsx (opens in a new tab)eval/cases/pf-developer-aria-wiring/annotations.yaml (opens in a new tab)eval/cases/pf-developer-aria-wiring/input.yaml (opens in a new tab)eval/cases/pf-developer-aria-wiring/package.json (opens in a new tab)eval/eval.yaml (opens in a new tab)references/aria-attributes.md (opens in a new tab)references/pf-gotchas.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
React, CSS, HTML, TypeScript, JavaScript
patternfly, wcag, aria, accessibility-audit, component-review
3 skills in this plugin
/pf-a11y-keyboardTest keyboard accessibility of PatternFly UIs via live browser interaction. Use when validating keyboard navigation, focus management, or interaction patterns in a running application./pf-a11y-test-genGenerate accessibility test files for any frontend framework covering ARIA attributes, keyboard interaction, and focus management. Use when adding a11y test coverage or writing ARIA/keyboard/focus tests.npx claudepluginhub rh-uxd/ai-helpers --plugin pf-a11yOther plugins' skills for the same job