replica-design — скилл для Claude Code: дизайн-система
Воссоздаёт дизайн-систему приложения по скриншотам для клона: токены, стили и спецификации компонентов. Нужен, когда интерфейс должен повторить структуру и поведение исходного.
npx skills add Jakeschincariol/replica-skill --skill replica-design -a claude-codeЧто делает replica-design
Скилл читает replica/recon.md и скриншоты из replica/screens/, затем готовит replica/design/tokens.json, tokens.css, сопоставление для Tailwind и replica/design/components.md. Он разбирает роли цветов, типографику, отступы, радиусы, тени, компоновку и состояния компонентов.
Для каждого компонента фиксируются варианты, размеры, состояния и требования доступности: фокус, отключённое состояние, загрузка, ошибки и пустые экраны. Брендовые логотипы, иконки, иллюстрации, шрифты и тексты исходного приложения не переносятся; вместо них нужны собственные или открытые варианты.
Скилл добавляет пары текста и фона в токены и запускает python3 contrast.py replica/design/tokens.json для проверки WCAG. Ошибка проверки завершается кодом 1, поэтому это повод исправлять контраст в токенах, а не точечно в компонентах.
Какие задачи решает
- собрать токены дизайна по скриншотам
- описать состояния кнопок, форм и модальных окон
- создать CSS-переменные и сопоставление Tailwind
- проверить контраст текста и фона по WCAG
- заменить чужие брендовые материалы собственными
Примеры запросов агенту
- Восстанови дизайн-систему по
replica/recon.mdи скриншотам изreplica/screens/. - Подготовь токены,
tokens.cssи спецификации компонентов для клона. - Проверь пары контраста в
replica/design/tokens.jsonи исправь проблемные токены.
Как установить replica-design
1Через Skills CLI (Vercel)
npx skills add Jakeschincariol/replica-skill --skill replica-design -a claude-code2Вручную: положить файлы
~/.claude/skills/replica-design/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/replica-design/
1Через Skills CLI (Vercel)
npx skills add Jakeschincariol/replica-skill --skill replica-design -a codex2Вручную: положить файлы
.agents/skills/replica-design/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Jakeschincariol/replica-skill --skill replica-design -a cursor2Вручную: положить файлы
.cursor/skills/replica-design/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Jakeschincariol/replica-skill replica-design2Вручную: положить файлы
.github/skills/replica-design/SKILL.md1Через Skills CLI (Vercel)
npx skills add Jakeschincariol/replica-skill --skill replica-design -a gemini-cli2Командой платформы
gemini skills install https://github.com/Jakeschincariol/replica-skill --path replica-designВручную: положить файлы
.devin/skills/replica-design/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Jakeschincariol/replica-skill --skill replica-design -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о replica-design
Как установить replica-design в Claude Code?
Выполните npx skills add Jakeschincariol/replica-skill --skill replica-design -a claude-code, затем повторите npx skills add Jakeschincariol/replica-skill --skill replica-design -a claude-code. Файл скилла находится в ~/.claude/skills/replica-design/SKILL.md.
Что делает replica-design?
Скилл извлекает из скриншотов правила интерфейса и оформляет их как токены, CSS-стили, настройки Tailwind и спецификации компонентов. Он также проверяет контраст текстовых пар.
Какие материалы replica-design не переносит в клон?
Скилл не берёт логотипы, иконки, иллюстрации, фото, звуки, лицензированные шрифты и тексты исходного приложения. Для интерфейса используются новые материалы или открытые наборы.
Исходный текст
SKILL.md · MIT
--- name: replica-design description: >- Rebuilds an app's design system for a clone: colour roles, type scale, spacing, radius, shadows and every component with its states, as design tokens plus component specs, with original assets instead of the target's logos, icons, illustrations or licensed fonts. Includes a WCAG contrast checker. Use when the user says "match the design", "rebuild the design system", "get the colours and fonts", "make it look like X", "design tokens for my clone", or after /replica-architect. --- # replica-design Reads `replica/recon.md` and the screenshots in `replica/screens/`. Writes `replica/design/tokens.json` (template in this folder), `tokens.css`, the Tailwind mapping, and `replica/design/components.md`. ```bash python3 contrast.py replica/design/tokens.json # every text pair, WCAG ratio ``` ## The rules What you rebuild is the **system**: the roles, the scale, the patterns, the way a form or a modal behaves. Those are not ownable, and users expect them. What you never take: - **Logos, icons, illustrations, photos, sounds.** Use an open icon set (Lucide, Phosphor, Heroicons, Tabler, all MIT or similar) and make or commission your own illustrations. Do not trace theirs. - **Licensed fonts.** If the original uses a paid or proprietary font, pick an open one with the same job: Inter, Geist, IBM Plex, Manrope, Source Serif. - **Their copy.** Every label and empty state gets written fresh. - **Their brand colour.** Record it as a role (`accent`), use a neutral placeholder now, and replica-brand gives you your own. The signature colour plus the signature layout is trade dress, and it changes before launch. ## Step 1: measure, do not guess From the screenshots (zoom in, use a colour picker on the user's machine): - **Colour roles**, not colours: bg, surface, border, border-input, text, text-muted, accent, on-accent, danger, success, warning. Count how many greys the app really uses. Usually 5 to 7. - **Type scale**: sizes, line heights, weights. Snap to a scale (12, 14, 16, 20, 28, 40 is common). Note the font category, not the font file. - **Spacing**: measure gaps between elements. It is almost always a 4 or 8 base. Write the scale. - **Radius, shadow, motion**: two or three of each. - **Layout**: max content width, grid, breakpoints, sidebar width, header height. ## Step 2: write the tokens Fill `tokens.json`. Keep the role names. replica-brand only changes values. Generate `tokens.css` as custom properties and map them into Tailwind's theme so components use `bg-surface text-muted`, never raw hex. Add a `pairs` list for every text and background combination the app uses, then: ```bash python3 contrast.py replica/design/tokens.json ``` AA is the floor: 4.5:1 for body text, 3:1 for large text and for input borders and focus rings. It exits 1 on a failure. Fix it in the tokens, not per component. ## Step 3: component specs For every component in the recon list, one block in `components.md`: ``` Button variants primary, secondary, ghost, danger sizes sm 32px, md 40px, lg 48px states default, hover, active, focus-visible (2px ring, accent), disabled, loading tokens bg accent, text on-accent, radius md, font sm/600 a11y real <button>, visible focus, loading keeps the label for screen readers used on S02, S07, S09 ``` Every state the recon saw, plus the ones it should have: focus, disabled, loading, error, empty. Keyboard and screen reader behaviour is part of the spec. ## Step 4: build the primitives Build the components in code once, in isolation (a `/design` route or Storybook), before any screen. Use an accessible base if the stack has one (Radix, shadcn/ui, React Aria). Screenshot the page. That is the design system check. ## Output `tokens.json`, `tokens.css`, the Tailwind config, `components.md`, the primitives built, and a contrast report with zero AA failures. Next: `/replica-build`.
© Jakeschincariol · MIT · Jakeschincariol/replica-skill