fixing-accessibility
修正無障礙問題
無障礙問題可能會讓身心障礙使用者無法使用您的產品。此技能針對 UI 元件中常見的無障礙問題,提供清楚的規則和實用的修正方法。
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "fixing-accessibility". /fixing-accessibility button.jsx
Resultado esperado:
- Violation: Icon button lacks accessible name (line 5)
- Why it matters: Screen reader users cannot identify the button action
- Fix: Add aria-label or use aria-labelledby to provide accessible name
Usando "fixing-accessibility". How do I make a modal dialog accessible?
Resultado esperado:
- Key requirements for accessible modals:
- 1. Trap focus inside the dialog while open
- 2. Restore focus to the trigger element on close
- 3. Set initial focus on the first interactive element
- 4. Close on Escape key press
- 5. Ensure proper aria-modal and role='dialog' attributes
Auditoría de seguridad
SeguroAll static findings are false positives. The skill is a benign accessibility guidelines document containing slash commands for invoking the skill and technical terms related to accessibility (aria-invalid, aria-describedby). No actual security risks detected.
Patrones detectados
Puntuación de calidad
Lo que puedes crear
將無障礙規則套用至新 UI
在建立新按鈕、表單或對話方塊時,呼叫此技能以確保所有工作從一開始就遵循無障礙最佳實踐。
審查現有程式碼的問題
對現有 UI 程式碼執行此技能,以識別無障礙違規事項、了解其影響,並獲得針對性的修正建議。
學習無障礙最佳實踐
使用此技能作為參考指南,學習鍵盤存取、焦點管理、ARIA 使用方式和語意 HTML。
Prueba estos prompts
/fixing-accessibility Apply these constraints to any UI work in this conversation.
/fixing-accessibility <file> Review the file against all rules below and report violations (quote the exact line or snippet), explain why it matters (one short sentence), and provide a concrete fix (code-level suggestion).
How do I make an icon-only button accessible?
How should I associate error messages with form fields for accessibility?
Mejores prácticas
- 偏好最小化、針對性的修正而非大規模重構,以降低風險
- ���新增 ARIA 屬性之前,優先使用原生 HTML 元素
- 套用修正後,手動測試鍵盤導覽
- 回報違規事項時引用確切的程式碼片段
Evitar
- 請勿將 div 或 span 作為按鈕使用,除非提供完整的鍵盤支援
- 當原生語意已能解決問題時,請勿新增 aria 屬性
- 請勿在未提供可見替代方案的情況下移除焦點外框
- 請勿僅依賴顏色來傳達狀態或意義