Навыки accessibility

accessibility

Низкий риск

Аудит и исправление проблем доступности согласно WCAG 2.2

Проблемы веб-доступности заставляют пользователей покидать сайты. Этот навык предоставляет руководящие принципы WCAG 2.2 и шаблоны кода для making content accessible to people with disabilities.

Поддерживает: Claude Codex Code(CC)
🥉 72 Бронза
1

Скачать ZIP навыка

2

Загрузить в Claude

Перейдите в Settings → Capabilities → Skills → Upload skill

3

Включите и начните использовать

Протестировать

Использование «accessibility». <button><svg>icon</svg></button>

Ожидаемый результат:

Issue: Button lacks accessible name for screen readers.

Fix: Add aria-label or visible text.
```html
<button aria-label="Close menu">
<svg aria-hidden="true">icon</svg>
</button>
```

Использование «accessibility». Navigation menu with keyboard trap

Ожидаемый результат:

Issue: Keyboard focus is trapped in the dropdown menu.

Fix: Add Escape key handler and proper focus management.
```javascript
dropdown.addEventListener('keydown', (e) => {
if (e.key === 'Escape') closeDropdown();
});
```

Использование «accessibility». Form without labels

Ожидаемый результат:

Issue: Input fields lack programmatic labels.

Fix: Add explicit label associations.
```html
<label for="email">Email address</label>
<input type="email" id="email" autocomplete="email">
```

Аудит безопасности

Низкий риск
v1 • 4/18/2026

Static analysis flagged 147 potential issues, but all findings are FALSE POSITIVES. The scanner misidentified markdown documentation patterns (code blocks, WCAG criterion numbers, relative paths) as security vulnerabilities. This is a pure documentation skill with no executable code, network calls, or credential handling.

3
Просканировано файлов
867
Проанализировано строк
2
находки
1
Всего аудитов
Проблемы среднего риска (1)
Static Analysis False Positives
88 'external_commands' detections are markdown inline code blocks using backtick syntax (JavaScript/HTML examples). 3 'filesystem' detections are legitimate relative paths between skill documentation files. 14 'sensitive' detections are attribute names like 'aria-labelledby' misinterpreted as file paths. 16 'weak_crypto' detections are WCAG criterion identifiers (e.g., 1.4.3, 1.4.6) misinterpreted as cryptographic algorithms.
Проблемы низкого риска (1)
Hardcoded Documentation URLs
13 references to external URLs (W3C, deque.com, nvaccess.org) are legitimate documentation links, not security concerns for a documentation-only skill.
Проверено: claude

Оценка качества

41
Архитектура
100
Сопровождаемость
87
Контент
50
Сообщество
83
Безопасность
91
Соответствие спецификации

Что вы можете построить

Accessibility code review

Review pull requests for accessibility issues and suggest fixes based on WCAG 2.2 guidelines

Accessibility audit report

Generate a prioritized report of accessibility issues with code examples for fixes

Accessible component implementation

Create accessible UI components with proper ARIA attributes, keyboard support, and focus management

Попробуйте эти промпты

Quick accessibility check
Check this HTML snippet for accessibility issues: [paste HTML here]
Full page accessibility audit
Audit the following page content for WCAG 2.2 AA compliance and list all issues with severity levels and fix suggestions: [paste HTML content]
Accessible component implementation
Implement an accessible [component type, e.g., modal/dropdown/tabs] following WCAG 2.2 guidelines. Include keyboard navigation, ARIA attributes, and focus management.
Fix specific accessibility issue
The following component has [specific issue]. Fix it to meet WCAG 2.2 AA requirements: [paste component code]

Лучшие практики

  • Use native HTML elements when possible (button, nav, main) before adding ARIA
  • Test keyboard navigation by pressing Tab from start to end of the page
  • Ensure all interactive elements have visible focus indicators

Избегать

  • Using role='button' on div instead of native <button> element
  • Removing outline:focus styles without providing alternative focus indication
  • Relying on color alone to convey information without text or icon alternatives

Часто задаваемые вопросы

What WCAG level should I target?
Target WCAG 2.2 Level AA as the minimum standard. Level AAA is ideal but may not be practical for all content types. Legal requirements in many jurisdictions mandate Level AA.
How do I test accessibility without expensive tools?
Use free browser extensions like axe DevTools or WAVE. Test keyboard navigation manually by pressing Tab through your page. Zoom to 200% to check reflow. Use the browser's built-in accessibility inspector.
When should I use ARIA attributes?
Use ARIA only when native HTML cannot achieve the needed functionality. Prefer semantic HTML first. When ARIA is needed, follow the First Rule of ARIA: if a native HTML element or attribute provides the same functionality, use it instead.
What is the minimum color contrast ratio?
WCAG AA requires 4.5:1 contrast ratio for normal text and 3:1 for large text (18px+ or 14px+ bold). Enhanced AAA compliance requires 7:1 for normal text and 4.5:1 for large text.
How do I make images accessible?
Add descriptive alt text for informative images. Use empty alt (alt='') for decorative images. Provide long descriptions via aria-describedby or figcaption for complex images like charts and infographics.
What is the minimum target size for interactive elements?
WCAG 2.2 AA requires interactive targets to be at least 24x24 CSS pixels. The recommended target size is 44x44 pixels for comfortable touch interaction on mobile devices.

Сведения для разработчиков

Автор

addyosmani

Лицензия

MIT

Ссылка

main

Структура файлов