agentleFS
HayoDevHayoDev/safari-devtools-mcp/skills/a11y-debugging/SKILL.md

a11y-debugging

Skill2 starsChanged 8 months agoMITView on GitHub

Use this skill when auditing a page for accessibility issues in Safari. Note: This fetches a script from a public CDN. Two things to be > aware of: (1) a strict Content Security Policy may block it — if the > audit returns no results, check the console for CSP errors; (2) on > internal or authenticated pages, prefer loading axe-core from a local > copy rather than a CDN to avoid sending page context to a third party. -…

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. ChromeDevTools/chrome-devtools-mcp★ 53ksame name
    2. MorningStar0709/trae-agent-enhancements★ 18same name
    3. JeffreyFerreiras/ai-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when auditing a page for accessibility issues in Safari.

    line 3
  2. Distinctive:

    Check specific element styles for contrast issues:

    line 53
  3. Very specific:

    Headings: Should follow a logical hierarchy (h1 → h2 → h3).

    line 60
  4. Very specific:

    Check that roles include heading with proper nesting.

    line 61
  5. Very specific:

    Links: Every link role should have a descriptive name, not just "click here" or the raw URL.

    line 62
  6. Very specific:

    Forms: Every textbox, combobox, checkbox should have a name (label).

    line 64
  7. Very specific:

    Landmarks: Look for navigation, main, banner, contentinfo roles.

    line 68
  8. Distinctive:

    Always test the snapshot output against expected roles.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Accessibility Debugging with Safari DevTools MCP

Use this skill when auditing a page for accessibility issues in Safari.

Quick audit workflow

  1. Navigate to the target page:

    navigate_page url="https://example.com"
  2. Take a verbose snapshot to see the full a11y tree:

    take_snapshot verbose=true
  3. Review the snapshot for common issues:
    • Elements with role="generic" that should have semantic roles
    • Interactive elements (buttons, links) with empty names ("")
    • Images without descriptive names (missing alt text)
    • Form inputs without associated labels
  4. For a more thorough automated audit, inject axe-core:

    Note: This fetches a script from a public CDN. Two things to be aware of: (1) a strict Content Security Policy may block it — if the audit returns no results, check the console for CSP errors; (2) on internal or authenticated pages, prefer loading axe-core from a local copy rather than a CDN to avoid sending page context to a third party.

    evaluate_script function="async () => {
      const script = document.createElement('script');
      script.src = 'https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.10.0/axe.min.js';
      document.head.appendChild(script);
      await new Promise(r => script.onload = r);
      const results = await window.axe.run();
      return {
        violations: results.violations.map(v => ({
          id: v.id,
          impact: v.impact,
          description: v.description,
          nodes: v.nodes.length
        })),
        passes: results.passes.length,
        incomplete: results.incomplete.length
      };
    }"
  5. Check specific element styles for contrast issues:
    get_computed_style uid="<element-uid>" properties=["color", "background-color", "font-size"]

What to look for in the snapshot

  • Headings: Should follow a logical hierarchy (h1 → h2 → h3). Check that roles include heading with proper nesting.
  • Links: Every link role should have a descriptive name, not just "click here" or the raw URL.
  • Forms: Every textbox, combobox, checkbox should have a name (label). Empty names mean missing labels.
  • Images: img roles should have a meaningful name unless decorative.
  • Buttons: button roles with empty names are keyboard-inaccessible.
  • Landmarks: Look for navigation, main, banner, contentinfo roles. Pages without landmarks are harder to navigate with screen readers.

Safari-specific a11y considerations

  • Safari's VoiceOver is the primary screen reader on macOS. The a11y tree from take_snapshot closely mirrors what VoiceOver sees.
  • Safari may map ARIA roles differently from Chrome in edge cases. Always test the snapshot output against expected roles.
  • role="generic" is Safari's default for <div> and <span> — this is correct behavior, not an issue.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.