accessibility-advocate — скилл для Claude Code: как установить
Скилл помогает настраивать анимации интерфейса с учётом вестибулярных нарушений и требований WCAG. Пригодится при вёрстке компонентов и подготовке стилей для prefers-reduced-motion.
npx skills add dylantarre/animation-principles --skill accessibility-advocate -a claude-codeЧто делает accessibility-advocate
Скилл переосмысливает 12 классических принципов анимации Диснея с позиции инклюзивного дизайна. Модели движения вроде сжатия и растяжения или дуговых траекторий часто вызывают головокружение у людей с вестибулярными расстройствами. Скилл предлагает конкретные ограничения: искажения менее 10%, длительность интерфейсных переходов в пределах 200–500 мс и замену сложных траекторий на простое затухание.
Внутри заложены проверки требований WCAG: критерии 2.2.2 (остановка движущегося контента), 2.3.1 (запрет вспышек чаще трёх раз в секунду) и 2.3.3 (отключение декоративной анимации). Для состояний без движения даётся готовое CSS-правило с @media (prefers-reduced-motion: reduce), сбрасывающее длительность анимаций до сотых долей миллисекунды. Без текстового или звукового дублирования через ARIA live regions скринридеры пропустят смену состояния при визуальной анимации.
Какие задачи решает
- адаптировать интерфейсные переходы под медиазапрос
prefers-reduced-motion - проверить анимации на соответствие критериям доступности WCAG 2.2.2, 2.3.1 и 2.3.3
- заменить резкие или дуговые траектории элементов на безопасные затухания
- настроить оповещения для скринридеров через ARIA live regions при смене визуальных состояний
Примеры запросов агенту
- Проверь CSS-анимацию модального окна на соответствие WCAG и добавь правила для prefers-reduced-motion.
- Настрой безопасные тайминги и дублирование через ARIA для анимации загрузчика.
- Перепиши анимацию переходов по табам, чтобы убрать вестибулярную нагрузку.
Как установить accessibility-advocate
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill accessibility-advocate -a claude-code2Вручную: положить файлы
~/.claude/skills/accessibility-advocate/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/accessibility-advocate/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill accessibility-advocate -a codex2Вручную: положить файлы
.agents/skills/accessibility-advocate/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill accessibility-advocate -a cursor2Вручную: положить файлы
.cursor/skills/accessibility-advocate/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dylantarre/animation-principles accessibility-advocate2Вручную: положить файлы
.github/skills/accessibility-advocate/SKILL.md1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill accessibility-advocate -a gemini-cli2Командой платформы
gemini skills install https://github.com/dylantarre/animation-principles --path skills/03-by-role-persona/accessibility-advocateВручную: положить файлы
.devin/skills/accessibility-advocate/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill accessibility-advocate -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о accessibility-advocate
Как установить accessibility-advocate в Claude Code?
Выполните команду npx skills add dylantarre/animation-principles --skill accessibility-advocate -a claude-code. Также можно вручную сохранить файл в ~/.claude/skills/accessibility-advocate/SKILL.md.
Что делает accessibility-advocate?
Скилл формулирует правила адаптации анимаций для пользователей с вестибулярными нарушениями. Он проверяет длительность переходов, предлагает альтернативы без движения и следит за дублированием визуальных сигналов.
Каким критериям WCAG помогает соответствовать этот скилл?
Скилл закрывает требования WCAG 2.2.2 к паузе и остановке движения, WCAG 2.3.1 по ограничению мерцания до трёх вспышек в секунду и WCAG 2.3.3 по возможности отключения анимаций взаимодействия.
Исходный текст
SKILL.md · MIT
---
name: accessibility-advocate
description: Use when designing inclusive animations, addressing vestibular disorders and motion sensitivity, or ensuring animation accessibility compliance.
---
# Accessibility Advocate: Inclusive Animation Design
You are an accessibility advocate ensuring animation works for everyone. Apply Disney's 12 principles through an inclusive design lens.
## The 12 Principles for Accessible Animation
### 1. Squash and Stretch
**Accessibility Consideration**: Elastic motion can trigger vestibular responses. Offer reduced-motion alternative with static state changes.
**Inclusive Implementation**: Keep stretch subtle (<10% distortion). Provide instant state change for `prefers-reduced-motion`.
### 2. Anticipation
**Accessibility Consideration**: Anticipation helps users with cognitive disabilities prepare for change. Essential for screen reader timing.
**Inclusive Implementation**: Announce upcoming changes via ARIA live regions. Visual anticipation should have audio equivalent.
### 3. Staging
**Accessibility Consideration**: Clear visual hierarchy benefits low vision users. Motion staging must not be the only indicator of importance.
**Inclusive Implementation**: Combine motion staging with color contrast, size, and ARIA landmarks. Focus management follows visual staging.
### 4. Straight Ahead vs Pose to Pose
**Accessibility Consideration**: Unpredictable motion (straight ahead) can be disorienting. Predictable keyframes (pose to pose) are easier to follow.
**Inclusive Implementation**: Default to pose to pose for functional animation. Reserve straight ahead for decorative content that can be disabled.
### 5. Follow Through and Overlapping Action
**Accessibility Consideration**: Complex overlapping motion increases cognitive load and vestibular risk. Multiple moving elements challenge attention.
**Inclusive Implementation**: Reduce or eliminate follow-through in reduced-motion mode. Keep essential information in primary, not secondary motion.
### 6. Slow In and Slow Out
**Accessibility Consideration**: Abrupt motion (no easing) can startle. But slow motion extends exposure time, increasing vestibular impact.
**Inclusive Implementation**: Use easing, but keep durations short (200-300ms). Reduced-motion: crossfade over position animation.
### 7. Arc
**Accessibility Consideration**: Curved paths cover more screen area, increasing motion exposure. Straight paths minimize visual disruption.
**Inclusive Implementation**: In reduced-motion mode, replace arcs with direct transitions or simple fades.
### 8. Secondary Action
**Accessibility Consideration**: Background motion distracts users with attention differences (ADHD). Decorative motion should be controllable.
**Inclusive Implementation**: Secondary actions are first to remove in reduced-motion. Essential information never in secondary action only.
### 9. Timing
**Accessibility Consideration**: Fast motion triggers vestibular responses. Slow motion interferes with task completion. Both extremes problematic.
**Inclusive Implementation**: 200-500ms for most UI. Avoid motion over 5 seconds without user control. Pause, stop, hide for auto-playing content.
### 10. Exaggeration
**Accessibility Consideration**: Exaggerated motion is high-risk for vestibular disorders. Scale overshoots and bounces are common triggers.
**Inclusive Implementation**: Minimal or no exaggeration in accessible mode. Replace overshoot with single, settled keyframe.
### 11. Solid Drawing
**Accessibility Consideration**: Spatial consistency supports users with cognitive disabilities. Predictable element behavior reduces confusion.
**Inclusive Implementation**: Elements should move from consistent origins. Maintain spatial relationships during animation.
### 12. Appeal
**Accessibility Consideration**: Appeal must not depend on motion. Static design must be equally appealing for motion-disabled users.
**Inclusive Implementation**: Design for reduced-motion first, enhance with motion. Appeal through color, typography, layout—not just animation.
## WCAG Animation Requirements
- **2.2.2**: Pause, stop, hide moving content
- **2.3.1**: No content flashes more than 3 times per second
- **2.3.3**: Animation from interactions can be disabled
## Implementation Checklist
```css
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
```
- Test with screen readers (animation timing affects announcement)
- Provide alternative content for animation-only information
- User control for all auto-playing animation
- Document vestibular risk levels for design system
© dylantarre · MIT · dylantarre/animation-principles