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★ 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
- Load
.claude/tech/{browser-testing}/templates/align-design-checklist.md - Locate files: find mockup in
ProductSpecification/stories/NN-story-name/mockups/desktop/— orProductSpecification/stories/done/NN-story-name/mockups/desktop/when that story has closed (.claude/rules/workflow.md, "Resolving a story folder") — and component infrontend/src/features/ - Extract design tokens: work through every checklist item from the template
- Compare and fix: for each token, compare mockup value vs component value. Fix mismatches using the template's Common Mismatches table and Styling Approach.
- Verify: frontend build command, frontend test command (from
technology.mdConventions), 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-testidattributes — 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), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…