/bama:design-kitfrom bama
Builds a custom design system for a macOS SwiftUI app with its own tokens, type scale, icons, and component parts. Use when the app needs its own look and feel, brand, or custom buttons, rows, and sidebars.
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.
A native look comes from Apple's parts. A custom look comes from your own parts: your sidebar row, your button, your checkbox, your icons. SwiftUI draws all of them. A kit is those parts, the numbers behind them, and one page that shows every part in every state.
Most apps keep Apple's parts and only pick an accent color (design-system
skill). Build a kit when the parts themselves must change. To copy the look of an existing app,
call the Skill tool with design-from-app first: it measures the app and
then comes back here.
Everything lives in Sources/<App>/DesignKit/. Code for every step:
parts.md.
Write design/KIT.md from kit-spec.md: three words for the
feel, the tokens, the type scale, the icon rules, and one section per part
with its sizes and states. Agents build from this page and review against it.
Check: every part the app's screens need has a section with its sizes and its states.
DesignKit/Tokens.swift:
gray50, blue600).
Only this file reads it.Ink.text, Ink.accent, Ink.selection, Ink.divider,
with a light and a dark value each. Parts read only this layer.KitType (type roles), Metric (sizes), Motion
(named intents like hover and check).A rebrand changes the palette. A dark mode fix changes the meaning layer. Neither touches a part.
Check: grep -rn 'Palette\.' Sources/ | grep -v Tokens.swift finds nothing.
Name styles by role (title, body, label, section, meta), never
by size. Use the system font unless the brand needs its own; a bundled
font goes in Resources/Fonts/ with ATSApplicationFontsPath in
Info.plist.in. Half-point sizes are fine when a reference needs them.
Check: views set fonts only through .kitType(...).
Icons decide the feel more than color does. Views name a KitIcon, never
an SF Symbol or a file, so the whole set can change in one place.
Shape from its SVG
path, or make custom symbols in the SF Symbols app.Check: grep -rn 'systemName:' Sources/ | grep -v DesignKit/ finds nothing.
One file per family in DesignKit/Components/: sidebar, rows, buttons,
fields, menus. Each part:
Button with a ButtonStyle, a Toggle
with a ToggleStyle, a field with a TextFieldStyle. Never a shape with
a tap gesture: it loses the keyboard, focus, and VoiceOver.onHover, pressed uses
configuration.isPressed, disabled reads isEnabled.KitType, Metric, Motion, and KitIcon.Check: the part matches its section in design/KIT.md in every state.
For a fully custom look, hide the title bar and draw your own top bar,
and build the sidebar from kit rows instead of List. Keep the traffic
lights, menus, context menus, sheets, and alerts native: users depend on
them. SwiftUI cannot move the traffic lights; a small NSViewRepresentable
reaches the NSWindow (parts.md, Window chrome).
A custom sidebar matches the macOS 27 system one where people would
notice: the selected row's text turns semibold, the selection fill dims
when the window is inactive (@Environment(\.appearsActive)), and row
corners stay concentric with the sidebar (mac-design patterns.md, "Custom
chrome that follows the window"). Custom glass bounces on click only on
controls.
Check: the window opens at its default size, the traffic lights sit where the spec says, the custom sidebar moves with the arrow keys, and its selection dims when another window is in front.
DesignKit/KitGallery.swift shows every part in every state, in light and
dark, the way a storybook does. The app shows it instead of its pages when
APP_KIT_GALLERY=1 is set, so the normal snapshot command captures it.
Review a new part here before it goes into a screen.
Check: the gallery snapshot shows every part from design/KIT.md, and the
user has seen it.
tools/grid-lint.sh
grep -rnE 'Color\(hex|Color\(red|\.font\(\.system|systemName:' Sources/ | grep -v DesignKit/
Both come back clean. Then build, snapshot, and run the layout-grid
checks on the screens (build-and-verify skill).
Done when design/KIT.md covers every part, every part is a real control
with every state, the gallery shows them all in light and dark, and the
checks above come back clean.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
21 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".npx claudepluginhub daveebbelaar/bama --plugin bamaOther plugins' skills for the same job