skills/wcag-audit-operable-keyboard-focus/SKILL.md
Validate logical keyboard navigation order for interface elements
npx skillsauth add jkense/agent-skills-wcag wcag-audit-operable-keyboard-focusInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this tool when designing keyboard navigation flows, testing tab order, or ensuring logical focus progression through interactive elements.
node scripts/validate.js --elements "header, nav, main, button, button, footer"
node scripts/validate.js --tab-order "1,2,3,4,5" --expected "1,2,3,4,5"
node scripts/validate.js --json '{"elements": ["header", "nav", "main", "button#submit"], "tabOrder": [1,2,3,4]}'
node scripts/validate.js --json '{
"elements": ["header", "nav", "button#menu", "main", "button#submit", "footer"],
"tabOrder": [1, 2, 3, 4, 5, 6],
"expectedOrder": [1, 2, 4, 5, 3, 6]
}'
--elements: Comma-separated list of element identifiers--tab-order: Comma-separated list of tab order indices--expected: Expected logical order (optional)--json: JSON input with elements and tab order propertiesReturns JSON with validation results and issues:
{
"elements": ["header", "nav", "main", "button", "footer"],
"tabOrder": [1, 2, 3, 4, 5],
"validation": {
"logical": true,
"complete": true,
"issues": []
},
"recommendations": [
"Consider moving primary action button before secondary navigation"
]
}
$ node scripts/validate.js --elements "header, nav, main, button, footer" --tab-order "1,2,3,4,5"
✅ Logical order: PASS
✅ Complete coverage: PASS
✅ No focus traps: PASS
Focus order follows logical reading sequence
$ node scripts/validate.js --elements "header, nav, button, main, footer" --tab-order "1,2,4,3,5"
❌ Logical order: FAIL
⚠️ Tab order issue: "main" (position 3) appears before "button" (position 4)
Recommendations:
- Move main content before secondary buttons
- Consider semantic HTML structure for better default tab order
For more information about Agent Skills and how they extend AI capabilities.
testing
Route form input and data collection accessibility requirements
testing
Form design accessibility rules for user input and data collection
testing
Route typography accessibility design decisions and requirements
testing
Convert between px, pt, em, rem units with accessibility context