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

design-from-app — скилл для Claude Code: что делает и как установить

Скилл design-from-app для Claude Code воссоздает дизайн любого приложения в виде нативной дизайн-системы SwiftUI по скриншотам.

MIT 1 000 установок ★ 1 933 обновлён 2026-11-05

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

Что делает design-from-app

Скилл измеряет размеры, отступы, шрифты, цвета и иконки по скриншотам с помощью встроенных скриптов measure.swift и compare.swift, а затем строит компоненты и сверяет результат попиксельно. На первом шаге запрашиваются скриншоты окна в масштабе 2x, сохраняемые в директорию design/reference/. Далее элементы интерфейса фиксируются в файле design/KIT.md, подбираются шрифты и иконки, собирается галерея элементов и экран-образец. Скрипт compare.swift генерирует сравнение и карту разницы, после чего токены дорабатываются до расхождения менее двух процентов пикселей.

Перед завершением работы скилл предписывает заменить фирменные элементы оригинала на собственные, включая названия и логотипы.

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

  • измерить размеры и отступы по скриншоту
  • построить дизайн-кит SwiftUI по образцу
  • выполнить попиксельное сравнение экранов
  • собрать эталонный экран по дизайн-системе

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

  • Воссоздай дизайн приложения по скриншотам из папки design/reference/
  • Сделай интерфейс похожим на приложение Notes
  • Запусти скрипт измерения элементов swift "${CLAUDE_SKILL_DIR}/scripts/measure.swift"

Как установить design-from-app

1Через Skills CLI (Vercel)

npx skills add daveebbelaar/bama --skill design-from-app -a claude-code

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

~/.claude/skills/design-from-app/SKILL.md

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

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

Вопросы о design-from-app

Как установить design-from-app в Claude Code?

Выполните команду npx skills add daveebbelaar/bama --skill design-from-app -a claude-code, а затем используйте путь ~/.claude/skills/design-from-app/SKILL.md.

Что делает design-from-app?

Скилл анализирует скриншоты стороннего приложения, измеряет его элементы и строит идентичный дизайн-кит с экранным представлением на SwiftUI.

Какие инструменты используются для замеров?

Для измерений и попиксельного сравнения скилл задействует скрипты measure.swift и compare.swift, запускаемые через среду Swift.

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

SKILL.md · MIT
---
name: design-from-app
description: Rebuild the look of an app the user likes as a native SwiftUI design kit, by measuring its screenshots (sizes, spacing, type, colors, icons), building its parts, and comparing pixel by pixel until they match. Use when the user names an app whose look they want, shares screenshots of one, or says "make it look like X".
argument-hint: "<app name or screenshot paths>"
---

# Design from app

Look at an app, measure it, and rebuild its design system in SwiftUI. The
result is a design kit (`design-kit` skill) with the reference app's
numbers, and one reference screen that matches the screenshot.

Guessing gets close. Measuring gets it right. Two scripts do the
measuring, next to this skill:

- `scripts/measure.swift`: sizes, positions, text heights, and colors from
  a screenshot.
- `scripts/compare.swift`: a side-by-side, a diff, and the share of pixels
  that differ.

Run them with `swift "${CLAUDE_SKILL_DIR}/scripts/measure.swift" ...`.
All coordinates are points (pixels / 2 for a Retina capture).

## 1. Get the screenshots

Ask for screenshots, or take them with the `clone` skill. You need:

- The window only, at 2x, no desktop. Save them in `design/reference/`.
- One screen with the most parts on it (a sidebar, a list, a toolbar),
  plus close-ups of menus, dialogs, and dark mode if they matter.
- The window size: `measure.swift info shot.png`.

Check: `info` prints the window size in points, and every screenshot uses
the same scale.

## 2. List the parts

Look at each screenshot and name every distinct part: window chrome,
sidebar row, section header, primary action, list row, checkbox, date
chip, icon button, divider. Start `design/KIT.md` from the `design-kit`
skill's kit-spec.md with one section per part.

Check: every visible element on the main screenshot belongs to a part.

## 3. Measure

Fill `design/KIT.md` with numbers, not estimates. The recipes and the
traps are in [measuring.md](measuring.md). In short:

| To find | Command |
| --- | --- |
| Sidebar width, panes | `hline shot.png <y in an empty area>` |
| Row positions and pitch | `rows shot.png <x0> <x1> [y0 y1]` |
| Left edges, gaps | `cols shot.png <y0> <y1> [x0 x1]` |
| Selection pill, dividers | `vline` and `hline` through it, `--tolerance 4` |
| Text and icon colors | `ink shot.png x y w h` |
| Surface colors | `palette shot.png x y w h` |
| A close look | `crop shot.png x y w h out.png 4` |

Check: every token and every part size in `design/KIT.md` has a number
from a command.

## 4. Find the font and the icons

- Most apps on the Mac use the system font, even web apps. Start there.
  When the letters differ (a, g, t, digits), name the font and pick it or
  an open alternative with a license that allows bundling.
- Text sizes come from step 6: build, measure the same word in both
  images, scale.
- Icons: note the size, stroke weight, corners, and whether selected rows
  switch to a filled form. Match with SF Symbols at a light weight first;
  draw the ones that do not match as shapes (`design-kit` parts.md, Icons).

Check: `design/KIT.md` names the font, the icon source, and the icon size
and weight.

## 5. Build the kit and one screen

Call the Skill tool with `design-kit` and build the tokens, the parts, the
window chrome, and the gallery from `design/KIT.md`. Then build the main
screenshot's screen from kit parts only, with the same data and the same
window size.

Check: a snapshot of that screen has the same size in pixels as the
reference.

## 6. Compare until it matches

```bash
swift "${CLAUDE_SKILL_DIR}/scripts/compare.swift" design/reference/main.png /tmp/<App>-shots/<page>-light.png /tmp/<App>-compare
swift "${CLAUDE_SKILL_DIR}/scripts/compare.swift" ... /tmp/<App>-compare-sidebar 0 0 220 300
```

Open `side-by-side.png` and `diff.png` with the Read tool. Then measure
the same rows, edges, and words in both images, and fix the tokens, not
the views. Order: window size, text sizes, columns and left edges, row
heights, colors, icons.

Check: under 2% of pixels differ on the whole window, and every row and
left edge is within 1.5 pt of the reference.

## 7. Make it yours

Before the app ships to anyone else, replace what belongs to the other
company: its name, logo, illustrations, and any font or icon it owns.
Keep the structure, the spacing, and the feel. Write the replacements in
`design/KIT.md`.

Done when `design/KIT.md` has a measured number for every token and part,
the kit's gallery shows every part, the reference screen passes step 6,
and step 7 lists what was replaced.

© daveebbelaar · MIT · daveebbelaar/bama

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

Все скиллы по теме «Фронтенд и UI» →
swiftui-design-skill wholiver Скилл swiftui-design-skill помогает проектировать экраны SwiftUI для iOS и macOS без шаблонного визуала. Пригодится при вёрстке прототипов и подборе дизайн-направления с нуля. CX Codex +1 1 300установок design rshankras Скилл design для Claude Code: набор дизайн-скиллов для интерфейсов Apple — Liquid Glass, анимации, игровой отклик, UX-тексты, SF Symbols и типографика. Выдаёт план правок для плоского интерфейса. CX Codex +1 738установок ios-design pproenca Скилл ios-design для Claude Code, Codex, Cursor, GitHub Copilot и Gemini CLI с 62 правилами построения SwiftUI-интерфейсов под iOS 26 и Swift 6.2. Каждое правило называет антипаттерн, объясняет исправление и даёт готовый пример кода. CX Codex +1 447установок swiftui-design-principles arjitj2 Скилл swiftui-design-principles задаёт ИИ-агенту правила сетки, типографики и цветов для SwiftUI и WidgetKit, чтобы интерфейс выглядел как нативное приложение, а не как сгенерированная разметка. CX Codex +1 1 300установок clerk-swift clerk Скилл clerk-swift для Claude Code настраивает UI аутентификации Clerk в нативных приложениях Swift на iOS и macOS. Помогает внедрить готовые экраны ClerkKitUI или собрать собственный флоу через ClerkKit. CX Codex +1 15 200установок swiftui-patterns affaan-m Скилл swiftui-patterns задаёт правила современной разработки на SwiftUI: переход на @Observable, типобезопасная навигация и оптимизация рендеринга. Пригодится при верстке экранов под iOS и macOS. CX Codex +1 6 300установок

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

Весь набор →
build-and-verify Скилл build-and-verify для Claude Code собирает SwiftUI-приложение для macOS и проверяет снимки страниц в двух темах. Агент запускает его после изменений интерфейса, ошибок сборки или просьбы проверить приложение. CX Codex +1 1 000установок performance Скилл performance для Claude Code, который измеряет нагрузку на CPU, память и энергию в macOS-приложениях. Помогает находить причины зависаний и переносить вычисления с основного потока на GPU. CX Codex +1 1 000установок improve-architecture Скилл improve-architecture для Claude Code разбирает архитектуру macOS-приложения на Swift и планирует безопасный рефакторинг. Срабатывает перед крупной функцией, в конце этапа или при повторяющихся проблемах в одной области. CX Codex +1 1 000установок app-brief Скилл app-brief для Claude Code и Cursor создаёт одностраничный файл docs/BRIEF.md для нового приложения под macOS до написания кода. CX Codex +1 1 000установок os-integrations Скилл os-integrations для Claude Code помогает выбрать API macOS и нужные разрешения для системных функций приложения. Включается при добавлении глобальных горячих клавиш, захвата экрана или управления окнами других приложений. CX Codex +1 1 000установок layout-grid Скилл layout-grid для Claude Code проверяет сетку и выравнивание в приложениях macOS SwiftUI. Запускается при создании кастомных экранов, карточек, форм и после изменения вёрстки. CX Codex +1 1 000установок user-stories Скилл user-stories для Claude Code, который превращает описание приложения в бэклог пользовательских историй с проверяемыми критериями. CX Codex +1 1 000установок swift-swiftui Скилл swift-swiftui для Claude Code задаёт правила Swift 6 и SwiftUI для приложений macOS. Подключается при написании, проверке и отладке Swift-кода, в том числе при ошибках конкуренции и Sendable. CX Codex +1 1 000установок

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

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