/bama:design-from-app <app name or screenshot paths>from bama
Rebuilds an app's visual design as a native SwiftUI design kit by measuring screenshots for sizes, spacing, type, colors, and icons, then comparing pixel-by-pixel until they match.
Ships in bama. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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).
Ask for screenshots, or take them with the clone skill. You need:
design/reference/.measure.swift info shot.png.Check: info prints the window size in points, and every screenshot uses
the same scale.
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.
Fill design/KIT.md with numbers, not estimates. The recipes and the
traps are in 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.
design-kit parts.md, Icons).Check: design/KIT.md names the font, the icon source, and the icon size
and weight.
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.
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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub daveebbelaar/bama --plugin bama21 skills in this plugin
/agent-cliOptional command line and MCP server for a macOS app, so Claude Code, Codex, and scripts can drive it (list, add, change, search, act) through the running app. Use when the user wants agents to work with their app or its data, asks for a CLI, an MCP server, or automation for the app, or says "Claude should be able to use my app"./app-briefOne-page brief (docs/BRIEF.md) for a new macOS app, written before any code. Use when the user has an app idea, wants to replace an app they pay for, or the research and clone skills are done./app-iconLiquid Glass macOS app icon made as an Icon Composer file (Icon/AppIcon.icon, JSON plus SVG layers), compiled with actool, and reviewed in every look with ictool. Use when the user wants an app icon, a better icon, or a Dock icon./bamaBuild any Mac app. Start here to pick the next skill for a native macOS app./build-and-verifyBuild a SwiftUI macOS app from the command line, install it, and check light and dark window snapshots of every page before calling a change done. Use after any UI code change, when a build fails, or when the user asks to run, screenshot, or check the app./cloneWalk through any existing app (native Mac app with computer use, web app with a browser), screenshot every screen, menu, and dialog, write a screen index, and turn it into user stories. Use when the user wants to clone, rebuild, replace, or copy the design of an app, or says "screenshot every screen".Other plugins' skills for the same job