color-accessibility — скилл для Claude Code: обзор и установка
Помогает создавать палитры с учётом дальтонизма и требований WCAG AA и AAA. Пригодится при оформлении интерфейсов, графиков и валидации форм.
npx skills add aj-geddes/useful-ai-prompts --skill color-accessibility -a claude-codeЧто делает color-accessibility
Скилл задаёт инструкции для проектирования доступных интерфейсов и графиков. Он помогает рассчитывать контрастность по формуле относительной яркости WCAG и адаптировать палитру под людей с нарушениями цветового зрения. В репозитории скилла есть справочники по стандартам контраста и симуляции дальтонизма.
Руководство требует контрастности не менее 4.5:1 для обычного текста и 3:1 для элементов интерфейса по уровню WCAG AA. Для уровня AAA порог для обычного текста возрастает до 7:1. Скилл прямо запрещает совмещать чистые красный и зелёный цвета. Смешивать больше 8 оттенков нельзя.
Главное правило — никогда не передавать информацию только цветом. Без текстовых меток или значков интерфейс не пройдёт проверку доступности.
Какие задачи решает
- подобрать контрастность текста по стандартам WCAG
- оформить состояния форм и индикаторы без опоры на один лишь цвет
- настроить графики для пользователей с нарушениями цветового зрения
- собрать палитру интерфейса без конфликтующих пар красного и зелёного
Примеры запросов агенту
- Проверь цвета нашей формы на соответствие контрасту WCAG AA
- Помоги настроить цвета для диаграммы, чтобы они читались при дальтонизме
- Добавь текстовые метки к статусам заказа, чтобы не полагаться только на цвет
Как установить color-accessibility
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill color-accessibility -a claude-code2Вручную: положить файлы
~/.claude/skills/color-accessibility/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/color-accessibility/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill color-accessibility -a codex2Вручную: положить файлы
.agents/skills/color-accessibility/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill color-accessibility -a cursor2Вручную: положить файлы
.cursor/skills/color-accessibility/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts color-accessibility2Вручную: положить файлы
.github/skills/color-accessibility/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill color-accessibility -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/color-accessibilityВручную: положить файлы
.devin/skills/color-accessibility/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill color-accessibility -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о color-accessibility
Как установить color-accessibility в Claude Code?
Запустите команду npx skills add aj-geddes/useful-ai-prompts --skill color-accessibility -a claude-code. Также можно вручную поместить файл по пути ~/.claude/skills/color-accessibility/SKILL.md.
Что делает скилл color-accessibility?
Он передаёт агенту правила расчёта контраста WCAG и рекомендации по созданию доступных интерфейсов. Скилл помогает симулировать дальтонизм и подбирать различимые сочетания оттенков.
Какие минимальные требования контрастности задаёт скилл?
Для обычного текста по стандарту WCAG AA минимальный коэффициент контраста составляет 4.5:1, а для крупных шрифтов и графики — 3:1. Уровень WCAG AAA требует контрастности 7:1 для обычного текста.
Исходный текст
SKILL.md · MIT
--- name: color-accessibility description: > Design color palettes that are accessible to all users including those with color blindness. Ensure sufficient contrast, meaningful use of color, and inclusive design. --- # Color Accessibility ## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Quick Start](#quick-start) - [Reference Guides](#reference-guides) - [Best Practices](#best-practices) ## Overview Accessible color design ensures all users, including those with color vision deficiency, can access and understand information. ## When to Use - Creating color palettes - Designing data visualizations - Testing interface designs - Status indicators and alerts - Form validation states - Charts and graphs ## Quick Start Minimal working example: ```yaml WCAG Contrast Ratios: WCAG AA (Minimum): - Normal text: 4.5:1 - Large text (18pt+): 3:1 - UI components & graphical elements: 3:1 - Focus indicators: 3:1 WCAG AAA (Enhanced): - Normal text: 7:1 - Large text: 4.5:1 - Better for accessibility --- Testing Contrast: Tools: - WebAIM Contrast Checker - Color Contrast Analyzer - Figma plugins - Browser DevTools Formula (WCAG): Contrast = (L1 + 0.05) / (L2 + 0.05) Where L = relative luminance // ... (see reference guides for full implementation) ``` ## Reference Guides Detailed implementations in the `references/` directory: | Guide | Contents | |---|---| | [Color Contrast Standards](references/color-contrast-standards.md) | Color Contrast Standards | | [Color Vision Deficiency Simulation](references/color-vision-deficiency-simulation.md) | Color Vision Deficiency Simulation | | [Accessible Color Usage](references/accessible-color-usage.md) | Accessible Color Usage | | [Testing & Validation](references/testing-validation.md) | Testing & Validation | ## Best Practices ### ✅ DO - Ensure 4.5:1 contrast minimum (WCAG AA) - Test with color blindness simulator - Use patterns or icons with color - Label states with text, not color alone - Test with real users with color blindness - Document color usage in design system - Choose accessible color palettes - Use sequential colors for ordered data - Validate all color combinations - Include focus indicators ### ❌ DON'T - Use color alone to convey information - Create low-contrast text - Assume users see colors correctly - Use red-green combinations - Forget about focus states - Mix too many colors (>5-8) - Use pure red and pure green together - Skip contrast testing - Assume AA is sufficient (AAA better) - Ignore color blindness in testing
© aj-geddes · MIT · aj-geddes/useful-ai-prompts