К основному содержанию
скилл CX Codex

normalize — скилл для Claude Code: что делает и как установить

Аудирует интерфейс и возвращает компоненты к дизайн-токенам, сетке и системным паттернам проекта. Помогает убрать хардкод и стилевой дрифт.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add aladicf/better-web-ui --skill normalize -a claude-code
Открыть на GitHub

Что делает normalize

Скилл проверяет страницу или компонент на расхождения с дизайн-системой. Он заменяет произвольные стили токенами цветов и отступов. Кастомные элементы заменяются стандартными компонентами из библиотеки.

Сначала агент исследует репозиторий. Он находит правила оформления и составляет план правок. Затем обновляет типографику, иерархию действий и доступность. В конце удаляется неиспользуемый код и запускаются тесты проекта.

Без подготовленного контекста скилл работать откажется. Инструкция прямо обязывает загрузить модуль $frontend-design, а если документации по стилям в репозитории нет — сначала выполнить команду $setup.

Какие задачи решает

  • заменить захардкоженные цвета и отступы на дизайн-токены
  • вернуть самодельные элементы к базовым компонентам библиотеки
  • исправить контрастность текста и размеры кликабельных зон
  • удалить неиспользуемые стили и дублирующийся код после рефакторинга

Примеры запросов агенту

  • /normalize src/components/UserProfile.tsx
  • /normalize страницу оформления заказа и верни цвета к токенам темы
  • /normalize окно настроек профиля с заменой кнопок на библиотечные

Как установить normalize

1Через Skills CLI (Vercel)

npx skills add aladicf/better-web-ui --skill normalize -a claude-code

2Вручную: положить файлы

~/.claude/skills/normalize/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/normalize/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о normalize

Как установить normalize в Claude Code?

Выполните команду npx skills add aladicf/better-web-ui --skill normalize -a claude-code. Также можно разместить файл вручную по пути ~/.claude/skills/normalize/SKILL.md.

Что делает скилл normalize?

Он проверяет вёрстку на стилевой дрифт и приводит интерфейс к дизайн-системе проекта. Скилл заменяет хардкод токенами, восстанавливает визуальную иерархию и убирает лишние стили.

Что требуется для запуска normalize?

Для работы нужен контекст дизайн-системы. Инструкция требует подключить модуль $frontend-design, а при отсутствии документации по интерфейсу в проекте — предварительно вызвать $setup.

Исходный текст

SKILL.md · MIT
---
name: normalize
description: Audit and realign UI to match design system standards, spacing, tokens, and patterns. Use when the user mentions consistency, design drift, mismatched styles, tokens, or wants to bring a feature back in line with the system.
metadata:
   argument-hint: "[feature (page, route, component...)]"
---

Analyze and redesign the feature to perfectly match our design system standards, aesthetics, and established patterns.

Normalization is not just visual cleanup. It is restoring the feature to the system so spacing, type, color, interaction, and hierarchy all speak the same language again.

Consult the [design-system alignment](../frontend-design/reference/design-system-alignment.md) reference for tokens vs components vs patterns, drift, and when to normalize locally versus escalate to system work.
Consult the [interaction design](../frontend-design/reference/interaction-design.md) reference when normalization includes restoring familiar patterns, improving target sizing, or removing bespoke interaction behavior from standard controls.
Consult the [legacy modernization](../frontend-design/reference/legacy-modernization.md) reference when the feature lives inside a legacy system, mixed old/new flow, or partial migration where low-risk upgrade strategy matters as much as visual alignment.

## MANDATORY PREPARATION

Users start this workflow with `/normalize`. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first.

---

## Plan

Before making changes, deeply understand the context:

1. **Discover the design system**: Search for design system documentation, UI guidelines, component libraries, or style guides (grep for "design system", "ui guide", "style guide", etc.). Study it thoroughly until you understand:
   - Core design principles and aesthetic direction
   - Target audience and personas
   - Component patterns and conventions
   - Design tokens (colors, typography, spacing)
   
   **CRITICAL**: If something isn't clear, ask. Don't guess at design system principles.

2. **Analyze the current feature**: Assess what works and what doesn't:
   - Where does it deviate from design system patterns?
   - Which inconsistencies are cosmetic vs. functional?
   - What's the root cause—missing tokens, one-off implementations, or conceptual misalignment?
   - If the feature is legacy or hybrid, which workflows and dependencies would make a "simple redesign" risky?
   - Which pain points can be improved safely now without breaking institutional workflow knowledge?

3. **Create a normalization plan**: Define specific changes that will align the feature with the design system:
   - Which components can be replaced with design system equivalents?
   - Which styles need to use design tokens instead of hard-coded values?
   - How can UX patterns match established user flows?
   - Where have standard interactions drifted away from familiar product conventions without a compelling reason?
   - Which areas feel off because hierarchy is weak, actions are flattened, or spacing is arbitrary rather than systematic?
   
   **IMPORTANT**: Great design is effective design. Prioritize UX consistency and usability over visual polish alone. Think through the best possible experience for your use case and personas first.

   When the surface is legacy, normalization often means making the current experience safer, clearer, and more consistent while a larger migration is still in progress. Do not mistake every legacy problem for a mandate to rewrite the workflow wholesale.

## Execute

Systematically address all inconsistencies across these dimensions:

- **Typography**: Use design system fonts, sizes, weights, and line heights. Replace hard-coded values with typographic tokens or classes.
- **Color & Theme**: Apply design system color tokens. Remove one-off color choices that break the palette.
- **Spacing & Layout**: Use spacing tokens (margins, padding, gaps). Align with grid systems and layout patterns used elsewhere.
- **Hierarchy**: Restore primary, secondary, and tertiary emphasis. A normalized feature should make it obvious what matters first.
- **Components**: Replace custom implementations with design system components. Ensure props and variants match established patterns.
- **Motion & Interaction**: Match animation timing, easing, and interaction patterns to other features.
- **Conventional UX patterns**: Realign forms, tables, filters, dialogs, menus, tabs, and settings to recognizable platform/category conventions unless the custom behavior clearly improves the workflow.
- **Responsive Behavior**: Ensure breakpoints and responsive patterns align with design system standards.
- **Accessibility**: Verify contrast ratios, focus states, ARIA labels match design system requirements.
- **Target sizing & placement**: Restore generous hit areas, whole-row labels where appropriate, and action placement that reduces precision work for common tasks.
- **Progressive Disclosure**: Match information hierarchy and complexity management to established patterns.

**NEVER**:
- Create new one-off components when design system equivalents exist
- Hard-code values that should use design tokens
- Introduce new patterns that diverge from the design system
- Compromise accessibility for visual consistency
- Normalize by making everything visually similar while leaving hierarchy unclear

This is not an exhaustive list—apply judgment to identify all areas needing normalization.

## Clean Up

After normalization, ensure code quality:

- **Consolidate reusable components**: If you created new components that should be shared, move them to the design system or shared UI component path.
- **Remove orphaned code**: Delete unused implementations, styles, or files made obsolete by normalization.
- **Verify quality**: Lint, type-check, and test according to repository guidelines. Ensure normalization didn't introduce regressions.
- **Ensure DRYness**: Look for duplication introduced during refactoring and consolidate.

Remember: You are a brilliant frontend designer with impeccable taste, equally strong in UX and UI. Your attention to detail and eye for end-to-end user experience is world class. Execute with precision and thoroughness.

© aladicf · MIT · aladicf/better-web-ui

Похожие скиллы

Все скиллы по теме «Фронтенд и UI» →
course-style rohitg00 Задаёт правила оформления, токены цветов, шрифты и нормы понятного технического текста для проекта AI Engineering from Scratch. CX Codex +1 550установок professional typeui.sh Задаёт агенту правила дизайн-системы: токены, типографику, состояния компонентов и критерии доступности. Пригодится, когда нужен аккуратный интерфейс без ручных правок. CX Codex +1 2 500установок storytelling typeui.sh Скилл задаёт агенту рамки дизайн-системы: токены, состояния компонентов, доступность и структуру вывода. Пригодится, когда интерфейсу нужна связная логика, а не набор разрозненных экранов. CX Codex +1 2 400установок redesign plugin87 Скилл проверяет существующий интерфейс и поэтапно обновляет его, сохраняя работающие функции. Подходит, когда нужно освежить дизайн сайта или приложения. CX Codex +1 535установок component-family-consistency dembrandt Скилл следит, чтобы кнопки, поля ввода, бейджи и пилюли делили радиус, цвета, тени, границы и отступы. Пригодится при сборке или ревизии библиотеки компонентов. CX Codex +1 874установок tailwind-design-system sickn33 Скилл задаёт агенту рамки работы с Tailwind: токены, варианты компонентов, адаптивные паттерны и доступность. Пригодится, когда UI в проекте разъезжается. CX Codex +1 1 600установок

Из того же набора32

forms Помогает проектировать формы и многошаговые сценарии ввода. Настраивает валидацию, доступность разметки и клавиатуры для мобильных устройств. CX Codex +1 555установок empty-state Скилл для проектирования пустых состояний: нулевые данные, пустая выдача поиска, отказы в доступе и ошибки. Пригодится, когда экран встречает пользователя надписью «Нет элементов». CX Codex +1 552установок a11y Разбирает интерфейс по клавиатуре, скринридеру, контрасту и семантике, а потом правит найденное. Пригодится, когда компонент не работает без мыши. CX Codex +1 561установок colorize Скилл для ИИ-кодинга, который добавляет цвет в слишком серые интерфейсы: семантику состояний, акценты и цветовую иерархию. Пригодится, когда макет выглядит безжизненно. CX Codex +1 551установок harden Прогоняет интерфейс через крайние случаи: длинный текст, ошибки сети, RTL, пустые состояния. Полезен перед выкаткой в прод. CX Codex +1 539установок distill Скилл убирает из UI лишние элементы, опции и функции, оставляя главное. Пригодится, когда экран перегружен контролами и непонятно, что важнее. CX Codex +1 548установок depth Настраивает систему высот, двухкомпонентные тени и вдавленные поверхности интерфейса. Пригодится, когда карточки кажутся плоскими или перегруженными эффектами. CX Codex +1 537установок imagery Оценивает и правит оформление картинок, иконок и скриншотов в интерфейсе, чтобы улучшить читаемость текста и удержать сетку. CX Codex +1 533установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой