typeui-fundamentals — скилл для Claude Code: что делает
Скилл задаёт агенту базовые правила UI/UX: визуальную иерархию, 4-пиксельную сетку, типографику и требования доступности WCAG. Выручает, когда в дизайн-системе нет готового ответа.
npx skills add bergside/typeui --skill typeui-fundamentals -a claude-code
npx skills add bergside/typeui --skill fundamentals -a claude-codeЧто делает typeui-fundamentals
Скилл передаёт агенту пять модулей с фундаментальными законами интерфейсов. Файл ui-principles.md отвечает за контраст и ритм макета, spacing-principles.md настраивает отступы по 4-точечной сетке, ux-principles.md описывает 30 законов UX и девять состояний элементов, а typography-principles.md задаёт модульные шкалы. За требования WCAG 2.1 и 2.2 отвечает accessibility.md, где прописаны контраст, навигация с клавиатуры и размеры кликабельных зон.
Этот набор не заменяет токены дизайн-системы. Конкретные значения цветов и размеров берутся из вашего файла DESIGN.md, а скилл объясняет агенту логику их применения. Доступность здесь имеет высший приоритет: требования WCAG отменяют любые эстетические компромиссы. Если же общее правило скилла прямо противоречит правилу дизайн-системы, побеждает дизайн-система.
Какие задачи решает
- выбрать правильный отступ между заголовком и текстом по 4-точечной сетке
- проверить контрастность текста и видимость фокуса по стандарту WCAG
- разрешить спор между требованиями доступности и визуальным оформлением
- задать контракты для девяти состояний кнопок и элементов управления
Примеры запросов агенту
- Проверь карточку товара на соответствие правилам WCAG 2.2 и видимость фокуса.
- Настрой вертикальный ритм и отступы в форме входа по 4-точечной сетке.
- Опиши состояния кнопки для hover и active согласно ux-principles.
Как установить typeui-fundamentals
1Через Skills CLI (Vercel)
npx skills add bergside/typeui --skill typeui-fundamentals -a claude-codenpx skills add bergside/typeui --skill fundamentals -a claude-code2Вручную: положить файлы
~/.claude/skills/fundamentals/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/fundamentals/
1Через Skills CLI (Vercel)
npx skills add bergside/typeui --skill fundamentals -a codex2Вручную: положить файлы
.agents/skills/fundamentals/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add bergside/typeui --skill fundamentals -a cursor2Вручную: положить файлы
.cursor/skills/fundamentals/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install bergside/typeui fundamentals2Вручную: положить файлы
.github/skills/fundamentals/SKILL.md1Через Skills CLI (Vercel)
npx skills add bergside/typeui --skill fundamentals -a gemini-cli2Командой платформы
gemini skills install https://github.com/bergside/typeui --path skills/fundamentalsВручную: положить файлы
.devin/skills/fundamentals/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add bergside/typeui --skill fundamentals -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о typeui-fundamentals
Как установить typeui-fundamentals в Claude Code?
Выполните команду npx skills add bergside/typeui --skill typeui-fundamentals -a claude-code в терминале. Также можно сохранить файл напрямую в ~/.claude/skills/fundamentals/SKILL.md.
Что делать, если скилл противоречит дизайн-системе?
Дизайн-система имеет приоритет для конкретных значений токенов, цветов и размеров компонентов. Однако правила доступности WCAG обязательны всегда и отменяют эстетические пожелания.
Что входит в состав typeui-fundamentals?
Внутри пять инструкций: общие принципы интерфейсов, отступы по 4-точечной сетке, 30 законов UX, модульная типографика и правила доступности WCAG 2.1/2.2.
Исходный текст
SKILL.md · MIT
--- name: typeui-fundamentals description: Universal UI/UX design principles covering visual hierarchy, interaction laws, typography foundations, and WCAG accessibility requirements. Use when making design decisions not covered by a specific design system, validating principle compliance, or resolving conflicts between aesthetics and accessibility. Design-system-agnostic and applies to every surface. license: MIT metadata: author: typeui.sh --- # Design Fundamentals — Agent Instructions Universal design principles that define **why** patterns work, **how** to apply them correctly, and **what** accessibility requirements are non-negotiable. These are timeless, design-system-agnostic foundations that apply to every surface regardless of vertical or workflow phase. ## Load order Read these files **after** loading the design system (`SKILL.md` / `DESIGN.md` + token modules). The design system tells you *what* token to use; these files explain *why* that decision is correct and *how* to avoid common principle violations. ## Module index | File | Purpose | |---|---| | [ui-principles.md](ui-principles.md) | Universal visual design principles — hierarchy, layout rhythm, typography placement, color theory, depth & layering, interaction design, responsive adaptation, component behavior | | [spacing-principles.md](spacing-principles.md) | Spacing-specific principles — 4-point grid, proximity grouping, inner vs outer gaps, vertical and horizontal rhythm, heading→paragraph spacing, section and component spacing tiers | | [ux-principles.md](ux-principles.md) | Interaction & control principles — 30 UX laws, button/control state contracts (9 states), hover/active technique palettes, touch targets, cognitive load, feedback loops | | [typography-principles.md](typography-principles.md) | Typography-specific principles — type system foundations, scale & modular ratios, readability & measure, accessibility, responsive type, brand tone expression through type | | [accessibility.md](accessibility.md) | WCAG 2.1/2.2 compliance — contrast ratios, color-as-information rules, focus visibility, keyboard navigation, motion safety, target sizes, text spacing, semantic structure, ARIA | ## What these files are NOT These files do not define: - **Workflow phases** (think → build → check → ship) — see `skills/vertical/SKILL.md` - **Quality gates or audits** — see `skills/vertical/inspect.md`, `review.md`, `preflight.md` - **Anti-pattern catalogs** — see `skills/vertical/anti-patterns.md` - **Industry-specific content** — see `skills/vertical/team-social-saas.md` - **Design tokens or component specs** — see `skills/design-system/SKILL.md` ## Conflict resolution When sources disagree: 1. **Design system** wins for concrete values (colors, sizes, spacing tokens, component specs). 2. **Fundamentals** (this layer) win for structural principles (hierarchy, accessibility, motion logic). 3. **Vertical** wins for process decisions AND content architecture (section order, required sections, industry tone). Accessibility is non-negotiable at every level — it overrides aesthetic preferences everywhere. ## When the design system is silent, these principles decide Any design decision not covered by the system's tokens or component rules falls back to the principles here. Never contradict the design system — if a principle and a design-system rule conflict, the design system wins. Flag the conflict for review.
© typeui.sh · MIT · bergside/typeui