accessibility-design
npx skills add https://github.com/jllerenadesign/a11y-skills --skill accessibility-design
Agent 安装分布
Skill 文档
Accessibility Design Auditor
Audit and improve accessibility in design tools (Figma, Framer, Webflow) before code handoff or production. Produces a scored report with prioritized fixes.
Modes
Detect which mode applies from user context:
/auditâ Full accessibility audit of a screen, frame, or component/audit-componentâ Focused audit of a single component or pattern/annotateâ Generate handoff annotations for developers/check-contrastâ Color contrast check only/design-systemâ Audit tokens, color palette, and component library rules/audit-rtlâ RTL/bilingual audit for EN/AR designs (Figma, Framer, Webflow)
If the user doesn’t specify a mode, infer it from context and confirm. If bilingual or Arabic content is detected at any point, automatically apply RTL rules.
Phase 1: Understand the context
Before auditing, clarify:
- Tool â Figma, Framer, or Webflow? (affects annotation guidance)
- Scope â Single screen, component, or full flow?
- Target level â WCAG AA (default) or AAA?
- Bilingual? â Does the design support Arabic / RTL?
- If yes â read
references/rtl-design.mdand apply RTL checks alongside standard audit
- If yes â read
If a screenshot or design file is shared, start the audit immediately.
Phase 2: Run the audit
Check issues in priority order. Read references/wcag-design.md for detailed
rules per category.
Priority table
| Priority | Category | Examples |
|---|---|---|
| ð´ Critical | Color contrast | Text < 4.5:1, UI components < 3:1 |
| ð´ Critical | Missing labels | Unlabeled icons, images with no alt |
| ð´ Critical | Touch targets | Interactive elements < 24Ã24px |
| ð Serious | Focus indicators | No visible focus state on interactive elements |
| ð Serious | Typography | Font < 12px, no resize support, poor line-height |
| ð Serious | RTL mirroring | Icons/arrows not mirrored, layout not flipped for AR |
| ð¡ Moderate | Spacing & layout | Content too dense, no breathing room for zoom |
| ð¡ Moderate | Color only | Info conveyed by color alone, no secondary cue |
| ð¡ Moderate | Arabic typography | Wrong Arabic font, incorrect line-height or letter-spacing |
| ðµ Info | Heading hierarchy | Skipped heading levels, decorative text styled as heading |
| ðµ Info | Motion & animation | No reduced-motion consideration |
| ðµ Info | Bidi edge cases | Mixed EN/AR inline text, number direction |
Phase 3: Generate the report
Always use this exact format:
âââââââââââââââââââââââââââââââââââââââââââââââââââ
ACCESSIBILITY DESIGN AUDIT: [Screen / Component Name]
Tool: [Figma / Framer / Webflow] · Level: WCAG 2.2 AA
âââââââââââââââââââââââââââââââââââââââââââââââââââ
CRITICAL (X issues)
âââââââââââââââââââ
[A11Y-D] Color Contrast â Button label "Submit"
Issue: Text contrast 2.8:1 â fails AA (requires 4.5:1)
Current: #767676 on #FFFFFF
Fix: Change text to #595959 or darker
WCAG: 1.4.3 Contrast (Minimum)
SERIOUS (X issues)
ââââââââââââââââââ
[A11Y-D] Focus Indicator â Icon button "Search"
Issue: No visible focus state defined in design
Fix: Add 2px solid focus ring, min 3:1 contrast vs background
WCAG: 2.4.7 Focus Visible / 2.4.11 Focus Not Obscured
MODERATE (X issues)
âââââââââââââââââââ
[A11Y-D] Color Only â Error state on form field
Issue: Error indicated by red border only, no icon or text
Fix: Add error icon + inline error message below field
WCAG: 1.4.1 Use of Color
INFO (X notes)
ââââââââââââââ
[A11Y-D] Heading hierarchy â Dashboard layout
Note: "Card title" uses H3 styling but no H2 exists on screen
Suggestion: Define heading levels in design annotations
âââââââââââââââââââââââââââââââââââââââââââââââââââ
SCORE: XX / 100
âââââââââââââââââââââââââââââââââââââââââââââââââââ
Total issues: X
ð´ Critical: X (-10 pts each)
ð Serious: X (-5 pts each)
ð¡ Moderate: X (-2 pts each)
ðµ Info: X (no deduction)
Quick wins (easy + high impact):
⨠[Fix] â estimated effort: X min
⨠[Fix] â estimated effort: X min
âââââââââââââââââââââââââââââââââââââââââââââââââââ
Score calculation: start at 100, deduct per issue. Minimum 0.
Phase 4: Annotations for handoff (if /annotate mode)
Read references/figma-annotations.md for tool-specific annotation patterns.
Key annotations to include:
- Alt text â for every image, icon, illustration
- Focus order â numbered sequence for keyboard navigation
- ARIA roles â for custom components (tabs, modals, accordions)
- Error states â what to announce to screen readers
- Heading levels â H1 â H2 â H3 hierarchy map
Output behavior
- Be specific: quote the exact element and location
- Explain WHY each issue matters (1 sentence max)
- Give a concrete, actionable fix â not just “improve contrast”
- For design system audits, flag systemic issues separately from one-off issues
- Prefer minimal targeted fixes â don’t suggest redesigning whole screens
Reference files
references/wcag-design.mdâ Full WCAG 2.2 rules for visual designreferences/figma-annotations.mdâ Annotation patterns for Figma, Framer, Webflow handoffreferences/rtl-design.mdâ RTL/bilingual rules for EN/AR designs (Arabic typography, mirroring, bidi)