Terminal
Terminal/Skill
Scans a webpage for WCAG accessibility issues, then suggests code fixes and re-scans to check them.
By BrowserStack
Works with
npx skills add browserstack/browserstack-cursor-plugin --skill scan-and-fix-accessibilitystartAccessibilityScan (Tool #17) - Scan webpage for accessibility issuesaccessibilityExpert (Tool #16) - Get WCAG guidelines and best practicesUse startAccessibilityScan to scan the webpage:
"Run accessibility scan for 'www.example.com'"
"Scan accessibility issues on localhost:3000"
"Run accessibility scan for 'https://mysite.com/checkout'"
What the tool does:
Review the scan results and categorize issues:
Use accessibilityExpert for specific guidance:
"What WCAG guidelines apply to form field error messages on mobile web?"
"How do I fix color contrast issues for WCAG 2.1 AA compliance?"
What the tool does:
For each issue, provide specific code fix:
Missing Alt Text:
<!-- Before -->
<img src="logo.png">
<!-- After -->
<img src="logo.png" alt="Company Logo">
Poor Color Contrast:
/* Before - Contrast 2.8:1 (fails) */
color: #999;
background: #fff;
/* After - Contrast 4.6:1 (passes) */
color: #666;
background: #fff;
Missing Form Label:
<!-- Before -->
<input type="email" placeholder="Email">
<!-- After -->
<label for="email">Email Address</label>
<input type="email" id="email" aria-required="true">
Keyboard Navigation:
<!-- Before -->
<div onclick="handleClick()">Click me</div>
<!-- After -->
<button onclick="handleClick()">Click me</button>
After user implements fixes, re-scan using startAccessibilityScan:
"Re-scan www.example.com to verify accessibility issues are fixed"
"Run accessibility scan again on localhost:3000 after fixes"
Confirm what was fixed and any remaining issues.
Scan and Fix Workflow:
"Scan accessibility issues on localhost:3000"
→ Returns scan results with violations
→ Provide code fixes for each issue
→ User implements fixes
"Re-scan localhost:3000 to verify fixes"
Get WCAG Guidance:
"What WCAG guidelines apply to form field error messages?"
"How do I ensure my color palette is WCAG 2.1 AA compliant?"
Common WCAG Requirements:
User: "Fix accessibility issues on my login page at localhost:3000/login"
Workflow:
startAccessibilityScan for "localhost:3000/login"startAccessibilityScan again to re-scan