Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add ericthayer/agents-config --skill "accessibility-audit"
Install specific skill from multi-skill repository
# Description
Verify that a component or page meets the high accessibility standards defined in AGENTS.md.
# SKILL.md
name: accessibility-audit
description: Verify that a component or page meets the high accessibility standards defined in AGENTS.md.
accessibility-audit
Use this skill before marking any feature as "Done". It helps you catch common accessibility issues that are strictly forbidden by AGENTS.md.
Checklist
1. Semantic Structure
- [ ] Are buttons used for actions (
<button>) and links for navigation (<a>)? - [ ] Do headings (
h1-h6) follow a logical hierarchy? (Only oneh1per page). - [ ] Are lists (
ul,ol) used for grouped items?
2. Interactive Elements
- [ ] Focus: Can you tab to every interactive element?
- [ ] Visual Focus: Does every element have a visible focus ring? (No
outline: nonewithout replacement). - [ ] Labels: Do all icon-only buttons have
aria-label? - [ ] Forms: Do all inputs have a linked
<label>oraria-label?
3. Images & Media
- [ ] Do all images have
alttext (oralt=""if decorative)? - [ ] do user-uploaded or AI-generated images have proper error states?
- [ ] Are explicit
widthandheightattributes set to prevent layout shifts?
4. Dynamic Content
- [ ] Loading: Are loading states announced? (e.g.,
aria-busy="true"orrole="status"). - [ ] Streaming: Is the streaming text container using
aria-live="polite"? - [ ] Updates: Do dynamic updates trigger screen reader notifications?
5. Motion & Validation
- [ ] Reduced Motion: Is
prefers-reduced-motionrespected? - [ ] Validation: Are form errors linked to inputs via
aria-describedby? - [ ] Focus Management: Is focus moved to the error summary or first error on submit failure?
Failure Conditions
If any of the above are "No", the feature is NOT ready. Stop and fix it.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.