agentleFS
casooncasoon/ai-agent-config/skills/astro-component-a11y-review/SKILL.md

astro-component-a11y-review

Skill1 starsChanged 48 days agoMITView on GitHub

Prüft eine einzelne Astro-/React-/HTML-Komponente auf typische Barrierefreiheitsprobleme und liefert konkrete Fixes. Nutzen beim a11y-Review einer Komponente. Für WCAG-Patterns siehe accessibility-audit.

The file

Files
SKILL.md

Astro-Komponenten-a11y-Review

Prüft eine konkrete Komponente auf Barrierefreiheitsprobleme und liefert Findings mit Code-Fix. Die WCAG-Patterns selbst stehen im Skill accessibility-audit — hier geht es um das Prüf-Vorgehen und das Finding-Format.

Wann verwenden

  • Eine einzelne Komponente (.astro, .tsx, .svelte, HTML-Snippet) soll auf a11y geprüft werden.
  • Nicht für ganze Seiten oder Tool-Output — dafür content-clarity-a11y-check bzw. lighthouse-axe-result-explainer.

Input

  • Der Komponenten-Code (oder Pfad).
  • Optional: Kontext (wo eingesetzt, welche Props, interaktiv?).

Prüf-Vorgehen

Pro interaktivem/strukturellem Block prüfen:

  1. Semantisches Element genutzt? (<button>, <a>, <nav>, <label> statt <div>/<span>).
  2. Bedienbar per Tastatur? Kein div mit onclick ohne Rolle + Key-Handler + tabindex.
  3. Fokus sichtbar? :focus-visible-Style vorhanden, kein outline:none ohne Ersatz.
  4. Zugängliche Beschriftung? Icon-only-Buttons/Links haben aria-label; Inputs haben <label>.
  5. Kontrast plausibel? Text/Interaktion ≥ Schwellwert (Detail in accessibility-audit).
  6. ARIA nur wenn nötig und korrekt? Kein redundantes/kaputtes ARIA (siehe aria-usage-review).
  7. Touch-Target ≥ 44×44px bei klickbaren Elementen.
  8. Bilder mit sinnvollem alt bzw. alt="" wenn dekorativ (siehe alt-text-generator).

Output

Finding-Liste, je Finding:

  • Problem: kurze Beschreibung.
  • Ort: Zeile/Selektor/Element.
  • Fix: konkretes Code-Snippet (vorher → nachher).
  • Priorität: hoch (blockiert Nutzung) / mittel / niedrig.

Gotchas

  • Natives Element vor ARIA: <button> statt <div role="button"> — bringt Fokus, Enter/Space und Rolle gratis.
  • div mit onclick ist unsichtbar für Tastatur und Screenreader.
  • Icon-only ohne aria-label ist für Screenreader leer.
  • placeholder ersetzt kein <label>.
  • aria-label überschreibt sichtbaren Text — nicht bei Elementen mit lesbarem Inhalt setzen.

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.