ui-design · pymodel — скилл для Claude Code: что делает и как установить
Свод правил фронтенд-дизайна из 42 пунктов в 8 категориях. Помогает настроить доступность по WCAG, вёрстку и показатели Core Web Vitals.
npx skills add PyModel/react-frontend-skills --skill ui-design -a claude-codeЧто делает ui-design
Скилл даёт ассистенту систему правил для вёрстки интерфейсов с фокусом на доступность и скорость загрузки. Правила разделены на 8 категорий по уровню влияния — от критических требований WCAG и оптимизации Core Web Vitals до анимаций.
Внутри находится 42 правила. Каждое снабжено префиксом вроде access-, cwv- или resp-. По каждому пункту ассистент обращается к файлам references/<rule-id>.md со сравнением ошибочного и корректного кода.
Для подробных инструкций обязательно нужны файлы в папке references. Без них агент получит лишь краткий перечень требований. Это повод проверить структуру репозитория перед запуском задач.
Какие задачи решает
- проверить разметку на соответствие требованиям доступности WCAG
- оптимизировать параметры Core Web Vitals под пороговые значения
- настроить адаптивную типографику через CSS clamp()
- спроектировать валидацию форм с показом ошибок после потери фокуса
Примеры запросов агенту
- Сверстай карточку товара по правилам из категории access- и проверь размер кликабельных зон
- Проверь форму регистрации по правилам form-error-messages и form-inline-validation
- Оптимизируй загрузку шрифтов и разметку баннера под требования Core Web Vitals
Как установить ui-design
1Через Skills CLI (Vercel)
npx skills add PyModel/react-frontend-skills --skill ui-design -a claude-code2Вручную: положить файлы
~/.claude/skills/ui-design/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ui-design/
1Через Skills CLI (Vercel)
npx skills add PyModel/react-frontend-skills --skill ui-design -a codex2Вручную: положить файлы
.agents/skills/ui-design/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add PyModel/react-frontend-skills --skill ui-design -a cursor2Вручную: положить файлы
.cursor/skills/ui-design/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install PyModel/react-frontend-skills ui-design2Вручную: положить файлы
.github/skills/ui-design/SKILL.md1Через Skills CLI (Vercel)
npx skills add PyModel/react-frontend-skills --skill ui-design -a gemini-cli2Командой платформы
gemini skills install https://github.com/PyModel/react-frontend-skills --path skills/ui-designВручную: положить файлы
.devin/skills/ui-design/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add PyModel/react-frontend-skills --skill ui-design -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ui-design
Как установить ui-design в Claude Code?
Выполните команду npx skills add PyModel/react-frontend-skills --skill ui-design -a claude-code. Файл навыка сохранится по пути ~/.claude/skills/ui-design/SKILL.md.
Что делает скилл ui-design?
Он задаёт 42 правила для фронтенд-разработки интерфейсов. Правила ранжированы по 8 категориям приоритетов: от доступности и Core Web Vitals до мобильной адаптивности и анимаций.
Как устроены подробные описания правил?
Каждое правило ссылается на отдельный файл references/<rule-id>.md. В нём приводится объяснение задачи и примеры неверного и правильного кода.
Исходный текст
SKILL.md · MIT
--- name: ui-design description: Accessible, responsive frontend UI and UX design. --- # UI/UX Best Practices Frontend Design Comprehensive UI/UX and frontend design best practices guide. Contains 42 rules across 8 categories, prioritized by impact to guide accessible, performant, and user-friendly interface development. ## When to Apply Reference these guidelines when: - Structuring HTML for accessibility and semantics - Writing CSS for responsive layouts and visual hierarchy - Optimizing images and fonts for Core Web Vitals - Designing forms with proper validation and error handling - Adding animations and interactive elements ## Rule Categories by Priority | Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Accessibility & WCAG Compliance | CRITICAL | `access-` | | 2 | Core Web Vitals Optimization | CRITICAL | `cwv-` | | 3 | Visual Hierarchy & Layout | HIGH | `layout-` | | 4 | Responsive & Mobile-First Design | HIGH | `resp-` | | 5 | Typography & Font Loading | MEDIUM-HIGH | `typo-` | | 6 | Color & Contrast | MEDIUM | `color-` | | 7 | Forms & Validation UX | MEDIUM | `form-` | | 8 | Animation & Performance | LOW-MEDIUM | `anim-` | ## Quick Reference ### 1. Accessibility & WCAG Compliance (CRITICAL) - `access-semantic-html` - Use semantic HTML elements for screen readers - `access-keyboard-navigation` - Ensure full keyboard navigation - `access-focus-indicators` - Provide visible focus indicators - `access-alt-text` - Provide meaningful alt text for images - `access-aria-labels` - Use ARIA labels for icon-only controls - `access-target-size` - Ensure minimum touch target size (24×24px) - `access-heading-hierarchy` - Maintain logical heading hierarchy ### 2. Core Web Vitals Optimization (CRITICAL) - `cwv-optimize-lcp` - Optimize Largest Contentful Paint under 2.5s - `cwv-minimize-cls` - Minimize Cumulative Layout Shift under 0.1 - `cwv-improve-inp` - Improve Interaction to Next Paint under 200ms - `cwv-responsive-images` - Serve responsive images with srcset - `cwv-lazy-load-offscreen` - Lazy load offscreen images and iframes - `cwv-critical-css` - Inline critical CSS and defer the rest ### 3. Visual Hierarchy & Layout (HIGH) - `layout-visual-hierarchy` - Establish clear visual hierarchy - `layout-whitespace` - Use whitespace to improve readability - `layout-f-pattern` - Design for F-pattern reading behavior - `layout-grid-system` - Use a consistent grid system - `layout-single-cta` - Establish a clear primary action per task context - `layout-proximity-grouping` - Group related elements with proximity ### 4. Responsive & Mobile-First Design (HIGH) - `resp-mobile-first` - Design mobile-first with min-width queries - `resp-fluid-typography` - Use fluid typography with clamp() - `resp-container-queries` - Use container queries for components - `resp-touch-targets` - Size touch targets for mobile (44×44px) - `resp-viewport-meta` - Configure viewport meta tag correctly ### 5. Typography & Font Loading (MEDIUM-HIGH) - `typo-font-display` - Use font-display to control loading behavior - `typo-preload-fonts` - Preload critical web fonts - `typo-readable-line-length` - Constrain line length (45-75ch) - `typo-line-height` - Set appropriate line height (1.5-1.7) - `typo-system-font-stack` - Use system font stack for UI elements ### 6. Color & Contrast (MEDIUM) - `color-contrast-ratio` - Meet WCAG contrast ratio requirements (4.5:1) - `color-not-only-indicator` - Never use color alone to convey information - `color-dark-mode` - Support dark mode with prefers-color-scheme - `color-semantic-palette` - Use semantic color names in design tokens ### 7. Forms & Validation UX (MEDIUM) - `form-inline-validation` - Use inline validation after field blur - `form-error-messages` - Write actionable error messages - `form-labels-above` - Place labels above input fields - `form-input-types` - Use correct HTML input types for mobile - `form-autocomplete` - Enable browser autocomplete with correct attributes ### 8. Animation & Performance (LOW-MEDIUM) - `anim-gpu-properties` - Animate only GPU-accelerated properties - `anim-will-change` - Use will-change sparingly for animation hints - `anim-reduced-motion` - Respect user motion preferences - `anim-duration-easing` - Use appropriate animation duration and easing ## How to Use Read `references/<rule-id>.md` for each rule above that matches the task: why it matters, then incorrect vs. correct code.
© PyModel · MIT · PyModel/react-frontend-skills
Похожие скиллы
Всё по теме «Фронтенд и UI» →Сначала — ui-design от других авторов.