Command Palette

Search for a command to run...

Назад к скиллам
скилл № 25923

align-design

Align frontend component styling to match HTML mockup pixel-for-pixel. Reads mockup CSS, compares with component, fixes all differences. Use when user wants…

БесплатноБез исполняемых скриптов
rakovi4от rakovi4★ 54 звезды на GitHub

Установить align-design в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/align-design - Align Component to Mockup

Update a frontend component's appearance to match its HTML mockup exactly.

Usage

/align-design "Registration"
/align-design 02                       # By story number
/align-design RegistrationPage.tsx     # By component file
/align-design                          # Interactive selection

Workflow

  1. Load .claude/tech/{browser-testing}/templates/align-design-checklist.md
  2. Locate files: find mockup in ProductSpecification/stories/NN-story-name/mockups/desktop/ — or ProductSpecification/stories/done/NN-story-name/mockups/desktop/ when that story has closed (.claude/rules/workflow.md, "Resolving a story folder") — and component in frontend/src/features/
  3. Extract design tokens: work through every checklist item from the template
  4. Compare and fix: for each token, compare mockup value vs component value. Fix mismatches using the template's Common Mismatches table and Styling Approach.
  5. Verify: frontend build command, frontend test command (from technology.md Conventions), Selenium test if exists, visual check

In a staged frontend design-alignment lane, perform only the alignment phase assigned by the coordinator. The coordinator dispatches design review, test review, coverage, refactor, and final verify-only alignment under .claude/templates/workflow/stage-2-quality-gates.md; the alignment worker never nests those skill dispatches or reports the whole lane complete. Work only inside the declared manifest. Stage 1 interfaces and other lane manifests are read-only; report a needed conflicting path with evidence. Never stage, commit, or edit progress.md.

Key Rules

  • NEVER remove data-testid attributes — Selenium tests depend on them
  • NEVER change component behavior — only styling
  • Match mockup exactly — use mockup's CSS values, not framework defaults (see template for specifics)
  • Divider, login link, and other elements outside <form> in mockup must be outside <form> in component

Story Mapping

Read ProductSpecification/stories.md for story number resolution.

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл align-design?

Align frontend component styling to match HTML mockup pixel-for-pixel. Reads mockup CSS, compares with component, fixes all differences. Use when user wants to match a component to its mockup or mentions /align-design command.

Как установить скилл align-design?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл align-design запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить align-design с