normalize — скилл для Claude Code: что делает и как установить
Аудирует интерфейс и возвращает компоненты к дизайн-токенам, сетке и системным паттернам проекта. Помогает убрать хардкод и стилевой дрифт.
npx skills add aladicf/better-web-ui --skill normalize -a claude-codeЧто делает 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-code2Вручную: положить файлы
~/.claude/skills/normalize/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/normalize/
1Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill normalize -a codex2Вручную: положить файлы
.agents/skills/normalize/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill normalize -a cursor2Вручную: положить файлы
.cursor/skills/normalize/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aladicf/better-web-ui normalize2Вручную: положить файлы
.github/skills/normalize/SKILL.md1Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill normalize -a gemini-cli2Командой платформы
gemini skills install https://github.com/aladicf/better-web-ui --path skills/normalizeВручную: положить файлы
.devin/skills/normalize/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill normalize -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в 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