/bawa:design-kitfrom bawa
Creates a custom WinUI 3 design system with custom parts, tokens, type scale, icons, and a parts gallery. Use when the app needs its own look and feel beyond stock Fluent controls.
Ships in bawa. 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 WinUI's own parts. A custom look comes from your own parts: your sidebar row, your button, your checkbox, your icons. XAML 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 WinUI'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 src/<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.xaml, merged in App.xaml after XamlControlsResources:
PaletteGray50,
PaletteBlue600). Only this file reads it.InkTextBrush, InkAccentBrush, InkSelectionBrush,
InkDividerBrush, in ThemeDictionaries with a Light, a Dark, and
a HighContrast value each. The HighContrast values are the person's
own system colors (SystemColorWindowTextColor and the rest). Parts
read only this layer, always with {ThemeResource}.KitRowHeight, KitRadius),
motion (named intents like KitMotionHover), and the text styles.A rebrand changes the palette. A dark mode fix changes the meaning layer.
Neither touches a part. tools/grid-lint.ps1 skips Tokens.xaml and
Tokens.cs, so the kit's own numbers live there.
Check: this finds nothing.
Get-ChildItem src -Recurse -Include *.xaml, *.cs | Where-Object Name -ne 'Tokens.xaml' |
Select-String 'Palette[A-Z]'
Name styles by role (KitTitleText, KitBodyText, KitLabelText,
KitSectionText, KitMetaText), never by size. Base them on WinUI's type
ramp styles (BodyTextBlockStyle), so they keep its line height and
trimming. Use the system font (Segoe UI Variable on Windows 11) unless the
brand needs its own; a bundled font goes in Assets/Fonts/ as Content and
is named with ms-appx:///Assets/Fonts/<file>.ttf#<Family>. Fractional
sizes are fine when a reference needs them.
Check: views set text only through Style="{StaticResource Kit...Text}",
with no FontSize outside DesignKit/.
Icons decide the feel more than color does. Views name a KitIcon
({kit:Icon Name=Inbox}), never a glyph code or a path, so the whole set
can change in one place.
PathIcon from its SVG path,
on a 16 x 16 box, filled. Convert strokes to outlines first: a
PathIcon fills its path and never strokes it.Check: no Glyph= and no 0xE... code point outside DesignKit/.
One file per family in DesignKit/Parts/: buttons, fields, rows. Each
part:
Button, CheckBox, TextBox, or
ListViewItem. Never a Border with a PointerPressed handler: it
loses the keyboard, focus, and Narrator.CheckBoxCheckBackgroundFillChecked), then
a Style with setters, then a full ControlTemplate.VisualStateManager: Normal, PointerOver, Pressed, Disabled in
CommonStates, and Focused, Unfocused, PointerFocused in
FocusStates.kit:KitState.Forced), so hover,
pressed, and focused show up in a snapshot.KitIcon.Check: the part matches its section in design/KIT.md in every state.
For a fully custom look, keep the TitleBar control and make it the
kit's: the kit background, a search box in Content, buttons in
RightHeader, and the caption buttons painted in kit colors. Build the
sidebar from kit rows (a ListView with KitSidebarItemStyle) instead of
NavigationView, or restyle NavigationView through its resource keys.
Keep the caption buttons, Snap layouts, menus (MenuFlyout), context
menus, ContentDialog, and the resize borders native: users depend on
them.
A custom sidebar matches Windows' own where people would notice: the arrow keys move the selection, Tab enters and leaves the list once, Narrator reads the selected row, and the selection shows by fill or by the accent pill, never by color alone (parts.md, Rows).
Check: the window opens at its default size, the title bar drags the window everywhere except its controls, the caption buttons read in light and dark, and the custom sidebar moves with the arrow keys.
DesignKit/KitGallery.xaml shows every part in every state, the way a
storybook does. The app shows it instead of its pages when
APP_KIT_GALLERY=1 is set in a snapshot run, so the normal snapshot
command captures it in light and dark:
$env:APP_KIT_GALLERY = '1'; tools/snap.ps1; Remove-Item Env:APP_KIT_GALLERY
# writes %TEMP%\<App>-shots\kit-light.png and kit-dark.png
Review a new part here before it goes into a screen. Check high contrast by hand once: turn on a contrast theme (Settings > Accessibility > Contrast themes) and open the gallery.
Check: the gallery snapshot shows every part from design/KIT.md, and the
user has seen it.
tools/grid-lint.ps1
Get-ChildItem src -Recurse -Include *.xaml, *.cs |
Where-Object { $_.FullName -notmatch '\\(DesignKit|UI|obj|bin)\\' } |
Select-String '="#[0-9A-Fa-f]{6,8}"|Color\.FromArgb|FontSize=|Glyph=|0xE[0-9A-F]{3}'
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, high
contrast has been checked by hand, and the checks above come back clean.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub daveebbelaar/bawa --plugin bawa22 skills in this plugin
/agent-cliOptional command line and MCP server for a Windows 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 Windows 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-iconWindows app icon drawn as an SVG (Icon/AppIcon.svg), rendered by tools/make-icon.ps1 into a multi-size AppIcon.ico and AppIcon.png, and reviewed on light and dark taskbar and Start backgrounds, with hand-tuned small sizes. Use when the user wants an app icon, a better icon, or a taskbar or Start icon.Other plugins' skills for the same job