agentleFS
casooncasoon/ai-agent-config/skills/aria-usage-review/SKILL.md

aria-usage-review

Skill1 starsChanged 47 days agoMITView on GitHub

Findet falsche oder überflüssige ARIA-Nutzung (redundante Roles, kaputte id-Referenzen, ARIA statt nativem Element) und korrigiert sie. Nutzen beim Review von ARIA-Attributen.

The file

Files
SKILL.md

ARIA-Usage-Review

Prüft ARIA-Attribute auf Fehler und Redundanz. Erste ARIA-Regel: Kein ARIA ist besser als falsches ARIA.

Wann verwenden

  • Code enthält role, aria-*-Attribute, die geprüft/aufgeräumt werden sollen.
  • Custom-Widget mit ARIA soll validiert werden.

Input

  • Markup mit ARIA-Attributen (oder Pfad).

Prüf-Vorgehen

  1. ARIA statt nativem Element? role="button" auf <div> → durch <button> ersetzen.
  2. Redundante Rollen entfernen: role="navigation" auf <nav>, role="list" auf <ul>, role="button" auf <button>.
  3. Referenzen prüfen: jede aria-labelledby/aria-describedby/aria-controls-id muss existieren und eindeutig sein.
  4. Zustände prüfen: aria-expanded/aria-checked/aria-selected werden bei Interaktion aktualisiert, nicht nur initial gesetzt.
  5. Verbotene Kombinationen: aria-hidden="true" auf fokussierbaren Elementen; role widerspricht nativer Semantik.
  6. aria-label/aria-labelledby nicht auf Elemente ohne unterstützte Rolle (z.B. <div> ohne Rolle).

Output

Je Finding:

  • Problem: falsches/überflüssiges ARIA.
  • Ort: Element/Attribut.
  • Fix: Snippet (Attribut entfernen oder natives Element).
  • Priorität: hoch (kaputte Referenz/falsche Rolle) / mittel / niedrig (redundant).

Gotchas

  • Redundante Rollen sind nicht harmlos — sie können native Semantik verdecken.
  • aria-labelledby mit fehlender id → Element bleibt unbeschriftet (fällt still aus).
  • role="presentation"/aria-hidden entfernt Kinder aus dem Baum — nicht auf Container mit interaktivem Inhalt.
  • title ist kein zuverlässiger Ersatz für aria-label (auf Touch/Keyboard unsichtbar).

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.