npx skills add ...
npx skills add nvidia/elements --skill audit-accessibility
Unified accessibility auditing workflow across static analysis, runtime testing, ARIA patterns, keyboard navigation, and color contrast. Use this skill whenever the user mentions accessibility, a11y, WCAG, ARIA roles, axe tests, screen readers, focus management, keyboard navigation, color contrast, or wants to audit, verify, or fix accessibility on any component. Also use when writing or debugging .test.axe.ts files, checking tabindex management, or reviewing focus trapping behavior.
npx skills add nvidia/elements --skill audit-accessibility
You MUST read projects/site/src/docs/internal/guidelines/testing-accessibility.md before proceeding.
When the user invokes this skill for a component, perform the following layers of accessibility verification:
Run ESLint on the component source and check for lit-a11y rule violations:
Review the component template for common issues:
aria-label or aria-labelledby on interactive elementsrole attributes on custom interactive patternsalt textVerify <component>.test.axe.ts exists and covers all component variants:
Check that the test:
runAxe from @internals/testing/axedisabled state when the component supports itexpect(results.violations.length).toBe(0)Identify which WAI-ARIA Authoring Practices pattern the component implements. Verify:
role attribute on the host or internal elementsaria-expanded, aria-selected, aria-checked, etc.)tabindex managementCheck if the component uses the keynav reactive controller from @nvidia-elements/core/internal:
Verify keyboard interactions match the ARIA pattern:
Check that the component uses theme tokens rather than hardcoded colors:
Flag any hardcoded color values. Verify CSS custom properties map to theme tokens that meet WCAG 2.1 AA contrast ratios (4.5:1 for normal text, 3:1 for large text).
Present a structured report with: