Skip to content
Mobile
Skill

/design-from-app

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

From plugin
bama
1.9k21 skills

Claude Code

$ npx -y skills add daveebbelaar/bama --skill design-from-app --agent claude-code

SKILL.md

design-from-app.SKILL.md
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

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.

Read more
@daveebbelaar
Ships withbama

BAMA: Build Any Mac App. Agent skills to research, clone, design, build, optimize, and test native macOS apps with Swift and SwiftUI.

Stars on GitHub

Momentum

stars in total
1.9k
Star history of daveebbelaar/bama on GitHub, a chart by star-history.com

Other skills on bama.

agent-cli

agent-cli

Optional command line and MCP server for a macOS app, so Claude Code, Codex, and scripts can drive it (list, add, change, search,…

@daveebbelaar@daveebbelaarInstall Skill
improve-architecture

improve-architecture

Architecture check-in for a growing macOS Swift codebase. Finds hot spots, proposes deeper modules, and refactors one step per…

@daveebbelaar@daveebbelaarInstall Skill
os-integrations

os-integrations

Deep macOS integrations for a native app, such as global hotkeys, menu bar items, floating panels, window control with…

@daveebbelaar@daveebbelaarInstall Skill
performance

performance

Make a macOS app fast by measuring hangs, stutter, CPU, memory, and energy, then moving work off the main thread and onto the…

@daveebbelaar@daveebbelaarInstall Skill
swift-swiftui

swift-swiftui

Swift 6 and SwiftUI code rules for macOS apps, including concurrency, state, SwiftData, AppKit bridges, and fixes for common…

@daveebbelaar@daveebbelaarInstall Skill
app-icon

app-icon

Liquid Glass macOS app icon made as an Icon Composer file (Icon/AppIcon.icon, JSON plus SVG layers), compiled with actool, and…

@daveebbelaar@daveebbelaarInstall Skill

More skills from other plugins.

deep-code-review

deep-code-review

In-depth design-focused code review - understands codebase context before evaluating PR changes, posts structured feedback to…

expo11d53k
@expo@expoInstall Skill
modlens

modlens

Plug-in vision for text-only models. Hard rule: when a file path or URL with an image extension (.png, .jpg, .jpeg, .webp, .gif,…

modlens4w4.6k
@liustack@liustackInstall Skill
appllama-app-design-skill

appllama-app-design-sk…

Build native-feeling, benchmark-quality mobile app screens (Expo / React Native). Use when designing or implementing any mobile…

appllama2mo3.9k
@appllama@appllamaInstall Skill

Questions about design-from-app.

Which coding agents can use design-from-app?
design-from-app installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.