/app-ui-slopless:app-ui-sloplessfrom App UI Slopless
Designs and audits native app UI for SwiftUI (iOS/macOS) and Jetpack Compose (Android/KMP). Grounded in Apple HIG, Material 3, WCAG 2.2, and UX research. Use for restyling, theming, UX critique, or accessibility audits of mobile or Mac screens.
Ships in App UI Slopless. 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.
None: SKILL.md is the whole skill.
Make native app UI (iPhone, Android, Mac) that people remember, on top of interaction design that holds up to the research.
Platform first. Decide which platform(s) the screen ships on before anything else, from the project (Package.swift platforms, the .xcodeproj's deployment targets, import AppKit) or the request, and state it in your reply. The study-backed bones and the directions' brand layer are shared; the mechanics and the window composition are not. On a Mac, deal with --platform macos (step 2), read references/platform-macos.md and apply the macOS variants of the rules marked that way below (pointer and keyboard instead of thumb, windows and sidebars instead of one screen, fixed 13 pt text instead of Dynamic Type). Never ship an iPhone layout in a bigger window.
Two failure modes to avoid, equally:
So the job is: studied bones, unmistakable skin.
Work out which mode the user wants. A request can combine several (e.g. audit → redesign). Accessibility mode stands alone: it applies to any iOS, Android or Mac app, whatever its style, and never deals a direction; when the user also wants a redesign, run it first and carry its findings into the brief.
| Mode | Trigger | Output |
|---|---|---|
| Build | "make me a … screen" | Intake → brief → code |
| Redesign | existing screen + "make it better/bolder" | Intake (read what exists, then ask) → brief → code + short "what changed and why" |
| Audit | "review / critique / what's wrong" | Findings report (see references/audit.md) |
| Spec | "design system", "tokens", "style guide" | Intake → brief expanded into a token file |
| Accessibility | "is this accessible", "VoiceOver / TalkBack", "WCAG", "VPAT", "ACR", "Nutrition Labels" | No intake, deal or direction: the app keeps its look. Follow references/accessibility.md §2 (lint --a11y, renders at the largest text size, code read for names and order), then findings, the Accessibility line and a draft ACR (scripts/acr.py) |
A direction that ignores the product, or throws away a brand people already recognise, is the most expensive mistake this skill can make, because everything after it is built on top. So look before you deal.
Before proposing anything, take stock of the current visual language from the theme/token files, font and drawable resources, and a screenshot if you can get one:
Write it in your reply in a few lines; the identity assets also go into the inventory below.
After 1a and before any style decision, write 8–12 things that belong to this product and to no competitor as a short bulleted list in your reply, not only in your head: the user should see what the design is built from, and can correct a wrong assumption before it shapes every screen. This list is where the owned idea comes from in step 3, and it's what you hold the dealt directions against in step 2. Look for:
If the request is thin, infer plausible items from the domain, mark them as assumptions, and carry on. "Clean", "modern" and "fun" are not inventory items.
Gate: don't run deal.py until the list is in your reply. It also opens the brief in step 3, so it can't get lost between steps.
The user chooses the style; never silently default to something safe.
Deal the directions; don't invent them. Asked to choose a look, a model picks the category default every time (every fintech app gets the same warm premium). So a script deals researched directions, each anchored in shipped apps, and you choose among them:
First name the screen's content shapes: what the user came to see or do, primary first. One of list (rows to scan: departures, spends, habits), number (one figure that answers the screen: a balance, a countdown), detail (one item in depth), collection (many items to browse), canvas (a map, calendar or chart as the screen), story (one moment per screen, in sequence), progression (a path or levels), action (one verb dominates); on a Mac also table (sortable columns of records: files, orders, cues) and document (text the user writes or edits at length). A ferry home is list,number; a room page detail,canvas; a habit home action,list.
python3 <skill>/scripts/deal.py --options 3 --content <primary>[,<secondary>] [--preset <name>] [--sector <e.g. finance, health, kids, hobby>] [--have photography] [--platform macos]
Every deal ends with a Deal: line: the command with its flags and seed that deals the same options again. Copy it, and each redeal's, into the report's Direction line, so a reader can replay what you were offered.
--content: only directions whose composition can show the primary shape are dealt, and within each preset the ones that also hold the secondary shapes come first. A poster of colour blocks can't show a timetable, so it isn't dealt for one.--preset: only when the user named one; the deal then stays inside it. Without it, the three options come from different presets. Retro is dealt only this way: when the user asks for a pixel, 8-bit, terminal, CRT or old-desktop look, pass --preset retro; the open deal never offers it.--sector: drops directions marked wrong for it (neo-brutalist for finance, for example). hobby covers collectors' and enthusiasts' apps. Some directions also drop out when a content shape anywhere in --content is one they don't suit (quiet native for collection).--platform macos: for a Mac app. Each direction is dealt in its Mac form: a window composition (sidebar, content, inspector, toolbar, menu bar extra) instead of the phone screen, pointer-and-keyboard signature moves, Mac-scale shape, Mac dial defaults (usually denser), and a window chrome line that says what stays system (translucent sidebar, the user's accent colour, the title bar) and what carries the palette. Directions with no Mac form (ed-story-cards) are not dealt. Three Mac-only presets (native craft, pro instrument, document first) join the deal, and two of the three options come from them whenever two can show the content (one when only one can), because Mac users reward Mac-native craft (research/macos-references.md). In the fit test, prefer a Mac-native option; pick a phone-first direction only when its owned idea is clearly stronger and its Mac form keeps Mac density, and say why. In round 18, pl-persona's Mac form became a stock grid of rounded cards and lost both pairs, while nc-owned-chrome swept both. Without the flag they are never dealt. Pass the same flag when printing the sheet. When the working directory's project or code says macOS (Package.swift, the .xcodeproj, AppKit APIs), deal.py deals for the Mac on its own and says so; a brief that only says "Mac app" still needs the flag. The fit test reads the Mac composition: "content at rest" means in a 1280×800 window, not a phone.--have photography: only when the product really has photographs: its own photos in the project, or photos it shows at runtime (listings, products, places, people's uploads). Without it, directions that depend on photographs are not dealt, so a screen never ends up built around grey placeholder boxes. Drawn art never needs --have: it is made in code.Fit test: reject options that don't fit. For each dealt option, answer four questions in one line each:
| Product category | Good fit | Poor fit (offer only with the warning) |
|---|---|---|
| Navigation, transit, mobility, maps, travel | Warm premium; Playful if the app already has a mascot or illustrations | Editorial (utility screens have little content to set), Neo-brutalist (reads unreliable when people depend on it) |
| Utilities (weather, scanners, calculators, settings-heavy tools) | Warm premium at low BOLDNESS; Neo-brutalist for indie or dev tools | Editorial |
| Finance, banking, insurance | Warm premium; Playful only for beginner/teen finance | Neo-brutalist (reads untrustworthy) |
| Health, medical | Warm premium, calm dials | Neo-brutalist, loud Playful |
| Wellbeing, habits, fitness, learning, kids, games | Playful | Editorial, Neo-brutalist (except indie games) |
| Social, messaging, dating | Playful; Neo-brutalist for Gen-Z or creator-led | Editorial for chat-heavy screens |
| Media, news, reading, music, podcasts, sports stats | Editorial | Playful on news (bad-news surfaces) |
| Commerce, marketplaces, food, hospitality | Warm premium; Editorial for drops and fashion | Neo-brutalist for mass-market retail |
| Creator tools, dev tools, events, portfolios | Neo-brutalist, Editorial | none strong |
| Productivity, enterprise, form-heavy flows | Warm premium at low BOLDNESS | Editorial, Playful |
On a Mac the three Mac presets join the table. Native craft fits every category except kids and games. Pro instrument fits creator, developer and pro tools, finance trading and monitoring, data and admin; it is a poor fit for casual consumer apps. Document first fits writing, notes, reading, translation and scripts; it is a poor fit wherever the content isn't text people make or read at length.
The table says which presets can belong; it doesn't pick the direction. Good fit is the floor, and the owned idea still decides among the survivors. Each preset file's "Fits / Doesn't fit" lines go into more detail.
Drop every option that fails any of the first three. A category misfit (question 4) is dropped in a non-interactive run; when you can ask, it may stay on the menu with its warning from the table. If none survives, redeal with a new seed (--seed any other number) and say so in the report. Then, among the survivors, recommend one: the option that carries an owned idea from the inventory and keeps the identity assets found in 1a. When 1a and the table point to the same preset, prefer its survivor; when they disagree, recommend the category fit and say which existing assets carry over into it, unless the user asked for a rethink. The app's own identity is not the "familiar default" this step guards against; the category's stock look is.
If the user named a preset, deal inside it (--preset), even a poor fit: warn them once, in one line, then commit to it.
Then print the full sheet and adopt it. Don't blend it with the layout you would have made anyway:
python3 <skill>/scripts/deal.py --direction <id> --seed <seed from the deal> [--platform macos]
The sheet gives the composition, the idea slot, a dealt type system and palette (light and dark, with measured contrast), shape, signature moves, motion and the way the direction goes wrong. If the brand already fixes colours or typefaces, pass --keep palette,type and map the brand onto the roles. Redeal only for a reason you can state (it contradicts the brand, or needs an asset that doesn't exist), and say so in the report. If the script can't run, read library/directions.json and pick by the same rules.
The presets behind the directions (native craft, pro instrument and document first are Mac-only; retro is dealt only when the user names it):
| Preset | One-liner | Real-world anchors | File |
|---|---|---|---|
| Warm premium | Photo-led, confident type, rich but controlled | Airbnb, Uber, Revolut, Flighty | references/presets/warm-premium.md |
| Neo-brutalist | Thick strokes, hard offset shadows, flat clashing colour, raw type | Gumroad, Figma, Nothing, Teenage Engineering | references/presets/neo-brutalist.md |
| Playful / toy | Chunky pressable shapes, springy motion, characters, rewards | Duolingo, Headspace, Finch | references/presets/playful.md |
| Editorial | Huge display type, magazine grids, stark contrast | Arc, Spotify Wrapped, Nike, NYT | references/presets/editorial.md |
| Native craft (Mac) | Mac-assed: Mac behaviour everywhere, identity concentrated in one control or owned chrome | Panic Nova/Transmit, NetNewsWire, Things 3, Ivory | references/presets/native-craft.md |
| Pro instrument (Mac) | Dense, keyboard-first, content centre and controls at the edges, exact readouts | Raycast, Linear app, Logic Pro, iStat Menus | references/presets/pro-instrument.md |
| Document first (Mac) | The document's typography is the design; chrome disappears while you work | iA Writer, Ulysses, Bear | references/presets/document-first.md |
| Retro (named only) | A past machine made usable: phosphor terminal, pixel sprites, 1-bit desktop; one grid, integer type sizes, effects off under Reduce Motion | Fallout's Pip-Boy, Balatro, Shovel Knight, Playdate, Obra Dinn | references/presets/retro.md |
Then read only the chosen direction's preset file. It holds the wider rules for that style: palette strategy, type, shape, depth, motion, more signature moves, real examples, and how cheap imitations go wrong. Where the sheet and the preset file differ, the sheet wins for this build.
Then set the dials (1–10). The sheet gives this direction's defaults; the user can override any of them.
| Dial | 1 | 10 |
|---|---|---|
BOLDNESS | quiet, mostly neutral | loud, saturated, oversized |
MOTION | instant, fades only | springy, choreographed, celebratory |
DENSITY | airy, one idea per screen | packed, dashboard-like (Flighty, Bloomberg) |
COLOR | near-monochrome + one accent | full multi-hue palette |
FIDELITY | fully native look (stock HIG/M3 components) | fully bespoke components |
FIDELITY controls the look of components. Platform mechanics (back behaviour, safe areas, text scaling, system gestures) stay native at every setting unless there's a written reason. See "Breaking conventions".
The owned idea is what makes the app belong to this product and no other. Look at what recent Apple Design Award winners share: not polish, but one strong idea carried through every surface. Flighty is an airport departure board. Tide Guide's palette follows the sky. Duolingo has its cast of characters. Halide is a film camera.
Write it as one sentence, and don't start the brief until both blanks are filled:
In this app, [an item from the inventory] becomes [the device the direction calls for].
For example: "In this app, the 21:00 last-ferry constraint becomes the departure-board countdown that every screen hangs from." Or: "In this app, the seed packet becomes the card shape of every habit, with the sowing date as its stamp."
The competitor test. Put the nearest real competitor's name into the sentence. If it still works, the idea belongs to the category, not the product: "a check mark becomes a celebration" fits every habit app, so it fails. Go back to the inventory and pick something only this product has.
One live thing. From the idea, make one interaction that is different every time or reacts to real state: the mascot that panics as the deadline nears (Duolingo's widget), the progress ring that keeps counting with no connection (Flighty), the budget jar that visibly empties as you spend. It uses the product's real data, works one-handed, has an accessible and reduce-motion fallback, and is one thing, not a playground. It is usually one of the signature moves.
Then write the brief. A short brief keeps the style coherent across every screen, and it's what turns "make it fun" into decisions. Keep it under ~30 lines, and put it in your reply (or in DESIGN.md for Spec mode or multi-screen work).
Inventory: <the 8–12 items from step 1b, comma-separated; mark assumptions with (assumed)>
Direction: <dealt id verbatim, e.g. pl-persona, then its name> (seed <n>, or "user-picked preset") Dials: B<n> M<n> D<n> C<n> F<n>
Kept from the current app: <identity assets carried over and the scope (reskin / restructure / rethink) for a Redesign, or "new app">
Owned idea: In this app, <one item from the Inventory line> becomes <device>. Competitor test: <competitor> → fails/passes
Live thing: <the one interaction made from the idea, and the real state it reacts to>
Persona: <one sentence: who the app is, as a character>
This, not that: <3 pairs, e.g. "confident, not shouty · warm, not cute · fast, not frantic">
Primary user + goal on this screen: <who, what they came to do, how often>
Type: display <face, use> / text <face> / scale <4–6 sizes>
Colour: <roles: surface, ink, primary, accent, success/warn/error; light + dark>
Shape & depth: <radius language, stroke, elevation/shadow model>
Icons: <which glyphs are custom-designed (the core verb, hero, categories) vs system family for utility chrome>
Motion: <spring/easing + the motion list for this MOTION level (see "Motion budget")>
Signature moves: <2–3 things someone would recognise in a screenshot>
The owned idea and signature moves are the antidote to slop. Carry the idea into every surface you build, including the empty state, settings, errors and the paywall: the commonest failure is a distinctive home screen followed by stock screens. Pick signature moves as concrete, transferable mechanics from the direction sheet or preset file (e.g. "every pressable has a 4dp bottom lip that compresses on press"), not adjectives.
Want more real examples than the preset file has? See research/real-ui-references.md: award winners, design-team case studies, font alternatives, all from shipped apps. For a Mac app, research/macos-references.md.
Commit to the direction. The dials are a promise to the user. A playful screen at BOLDNESS 8 should look unmistakably playful in a screenshot. If a principle seems to argue for toning it down, look for a way to satisfy the principle inside the style (e.g. make a signifier louder, not the style quieter). Restraint is a dial setting, not a default.
Stock icon sets are plumbing: fine for utility chrome (back, close, settings, share, search), and they make everything else look like every other app. Design these glyphs instead of importing them:
The core verb's icon: the check in a habit app, the heart in a dating app, the ticket in a transit app. It's the most-seen glyph in the product, so it gets the most care: a custom shape in the preset's language (chunky rounded stroke, thick square cap, fine serif-like detail…) and an animated state change (draw-on, morph, stamp, pop).
Hero and category icons: tab icons at BOLDNESS ≥7, categories, empty-state art, the mascot. Draw them as one family: same stroke weight, corner treatment and fill/duotone logic, all made in code (Canvas/ImageVector in Compose, Shape/Path in SwiftUI) or from one commissioned set.
System symbols done well count too. SF Symbols with .symbolEffect and variable colour, or Material Symbols with fill/weight axes animated, are legitimate when FIDELITY is low. Stock and static, with no styling, is the default look.
A mascot: the mascot kit is the required path, not an option. This applies whenever the screen has a character or creature: one the brief asks for, one implied by "Duolingo-level fun", or one you add as the live thing. Don't draw it freehand in Canvas, Path or CSS; a freehand mascot comes out as a different drawing on each platform and in the mock, and it can't pass the kit's checks. Instead:
references/mascot.md), and save it with the code (e.g. mascot/dot.svg).python3 <skill>/scripts/mascot.py svg2code mascot/dot.svg --compose|--swift -o <DotMascot.kt|.swift>. When the brief names one file for the code ("put the code in HabitHomeScreen.kt"), use --into HabitHomeScreen.kt instead of -o: the imports are merged, the code lands in a marked block at the end of that file, and rerunning replaces the block. Animate it by changing the generated pose (rememberDotPainter(pose) / DotMascot(pose:)), driven by the real state it reacts to.transform-origin at each data-pivot), so the mock shows the drawing that ships.mascot.py check (24 px silhouette, squint) and filmstrip its states (step 5). Use lottie when the project plays Lottie or the states are authored keyframes (an idle loop, a celebration).If the kit can't run here, say so under "Not verified" with the reason; never fall back to a freehand drawing without saying so. An animated hero glyph (the streak flame, the core verb's check) may use the kit the same way. Flat, geometric characters work; painterly or detailed ones don't, and Rive's .riv can't be generated, so say so instead of faking it.
The platform files show how to draw and animate custom glyphs.
Read references/platform-swiftui.md or references/platform-compose.md (Compose Multiplatform uses the Compose file plus its CMP section). For a Mac app, read references/platform-macos.md as well: it replaces the thumb-zone, 44 pt and Dynamic Type guidance with window anatomy (NavigationSplitView, toolbar, inspector), hover and cursor states, menu-bar commands and shortcuts, Mac type density, vibrancy and the accent colour, plus a macOS code baseline. They show how to implement tokens, custom fonts that still scale, press states, springs, haptics, reduce-motion, and insets idiomatically.
Each platform file ends with a code baseline (§8b): stable list identity, state that survives, animating transforms rather than layout, and so on. Follow it, because bold UI that janks reads as broken.
Put tokens first (one theme/token file or block), then components, then the screen. Hard-coded colours and sizes scattered through the screen are how a style decays into slop on screen three.
Apply the core rules below while building. references/principles.md has the full rule set with sources; read it for Audit mode or when a judgement call needs backing.
Real content at real density. A screen built on "Alex", "Lorem ipsum" and three tidy rows looks finished in code and thin on a phone. The design has to be judged with the content it will actually carry:
Pictures: where they come from. Photo-led directions (warm premium, story cards, type-as-image with photography) depend on imagery, and models skip finding it because it's work. Use this order and never stop at a grey box:
User-Agent: app-ui-slopless/1.0 (+https://github.com/massipetro/app-ui-slopless). If a service refuses requests without personal contact details, skip it and say so in the report.Canvas / Path / ImageVector): the product's objects in one consistent flat graphic language, in the palette's real colours. Better than a placeholder, an enlarged SF Symbol, or an abstract blob. For empty-state art, a character or a hero object, draw it once as SVG and convert it with scripts/mascot.py svg2code (references/mascot.md), so both platforms get the same drawing; run mascot.py check for the 24 px silhouette and squint tests.Never: stock photos of laughing people, AI images passed off as real, illustration from mixed packs, a decorative blob standing in for a picture.
The brief at rest. Before styling, list the brief's must-haves for this screen (for a ferry home: next departures, a countdown, buying a ticket) and design so every one is visible in the resting frame, or reachable from a visible control there. Two limits keep the hero honest:
list, at least three rows (or the whole list, if shorter) show at rest, and the hero takes no more than about 45% of the screen's height.dynamicTypeSize.isAccessibilitySize (Compose: fontScale >= 1.5f), move summaries below the action and collapse finished groups, rather than letting the header push the action off screen. In round 22 the only pair HEAD lost was a screen that at AX5 showed headers and counts, with the late dose and its buttons below the fold; all three judges marked it down for it.Ambient screens get one dominant readout. When the brief says the screen stays open and is glanced at from a distance (a kitchen counter, a desk, a wall, a shop floor), one live value answers the glance: sized to read from two or three metres (64–120 pt in a Mac window, the hero size on a phone) and at least three times the size of anything else live. Never two timers or figures of equal weight, and never a mascot competing with the readout. In round 18 the bake-day screens that lost split attention between two timers, or between a timer and a talking starter; the winners had one huge elapsed timer.
One moment in time. Sample data is a single moment. Define one now and one data set, and derive every live value from them: timers, countdowns, "since" and "until" times, progress bars, counters, totals. Do this in the preview data and in the mock's script; never type a derived number by hand. Then read the resting frame as the user would: does every number agree with every other (the elapsed time with its bar, "fed 6 h ago" with the clock, "1 of 5 watered" with the rows)? A pair was lost in round 18 to a progress bar, a countdown and a "since fed" that implied three different times of day, and round 17's counter disagreed with its own list.
Removing slop leaves space. Don't fill it with another ornament. Fill it with scale (make the main thing bigger, within the limits above), with the full content, or with the owned idea. One deliberate empty moment per screen at most.
Gate first: compile, then lint. Code that doesn't build is not a deliverable, however good the render looks.
SwiftUI (iOS or macOS): typecheck every Swift file you wrote, together, against the iOS simulator SDK, or the macOS SDK for a Mac app (the script detects which from the project and the code; --platform macos forces it):
python3 <skill>/scripts/typecheck.py <changed .swift files or folder>
Fix every error and run it again until it passes. Keep the deployment target. The script reads it from the project (Package.swift platforms, or IPHONEOS_DEPLOYMENT_TARGET / MACOSX_DEPLOYMENT_TARGET in the .xcodeproj) and uses iOS 17 (macOS 14 for a Mac app) when there's neither. An error like "'Tab' is only available in iOS 18.0 or newer" means the code is wrong for the target, not that the target is wrong: wrap the newer API in if #available(iOS 18, *) with an iOS 17 fallback, or use the older API (references/platform-swiftui.md rule 17). Never pass --ios / --macos to get past an availability error. Pass it only when the user or the project states a different target, and then name the target and where it came from on the report's Lint line. It needs no Xcode project, so there's no excuse to skip it on a Mac. If it can't run (exit 3: no Xcode, or files that import third-party packages), say so under "Not verified"; never report Swift as compiled when it wasn't.
Compose / CMP: if the project has a Gradle build, compile the module you changed there (./gradlew :<module>:compileKotlin, or compileKotlinIosSimulatorArm64 / compileDebugKotlinAndroid for a CMP target). Without one, compile in the skill's throwaway project:
python3 <skill>/scripts/compile_kotlin.py <changed .kt files or folder>
It compiles against Kotlin 2.2.21 and Compose Multiplatform 1.9.0 (Material 3 1.4) for JVM and Android; shared code must compile for both, so Android-only APIs in commonMain code fail as they would in a real CMP module. Compose Res and Android R resources are stubbed, and listed so you can check the real files exist. Fix every error and run it again until it passes. The first run downloads what isn't in ~/.gradle; if it can't run (exit 3: no JDK 17+, no Gradle, offline), say "Kotlin not compiled" under "Not verified".
Then lint the files you wrote:
python3 <skill>/scripts/lint.py <changed .swift / .kt files or folder> [--platform ios|macos] [--allow <rule>,<rule>]
It flags the slop tells and craft defects the code itself shows (violet accents, stock greys, 5%-black shadows, fixed font sizes, placeholder-only fields, sub-44/48 targets, unlabelled icon buttons, emoji, placeholder data, animation without Reduce Motion) and the code-baseline patterns from the platform files (index-based list identity, AnyView, DispatchQueue delays, ObservableObject, @MainActor models in default arguments, lazy items without keys, a LazyColumn inside verticalScroll, collectAsState(), typed text in plain remember). --list-rules shows them all. On macOS (detected, or --platform macos) it drops the Dynamic Type and 44 pt checks and adds Mac ones: custom controls with no hover state, an App with no .commands, a WindowGroup with no size limits, iPhone-sized fixed frames, iOS-only APIs and haptics. Fix every FAIL. Treat each WARN as wrong unless you can defend it in one sentence. --allow is for deliberate style choices only (e.g. blur-shadow for a warm premium floating sheet); list each one in the report. It's a regex heuristic, so a clean lint proves nothing about taste: that's what the passes below are for.
Render what you built and look at the image before handing over. Code that reads well often renders badly: a number clipped by a fixed-width box, a token stretched into a pill by its parent, a tick off-centre, a bar covering content. The user sees those first, and one of them makes a bold design look broken (Tuch et al. 2012: poor execution lowers perceived beauty). Use the best render path available:
@Preview screenshot tests (Roborazzi/Paparazzi), SwiftUI previews or snapshot tests, or the app on an emulator/simulator (adb exec-out screencap -p > s.png, xcrun simctl io booted screenshot s.png). A Mac app: render the real window from its #Preview, with no Xcode project: python3 <skill>/scripts/render_swiftui.py <files or folder> --out window.png [--size 1280x800] [--appearance dark]. It compiles your files with a small host, shows the view in a window behind the others for about two seconds, and captures it from the window server (title bar, toolbar, sidebar materials, real controls). Give the screen a #Preview that builds it with its sample data, so it can render. Put the font files the design uses next to the code (a Fonts folder works): the renderer registers them first, and names any face passed to Font.custom that it can't find, because the render then shows the system font in its place. When it and your HTML mock disagree, the render is the truth: in our evals it showed step text truncated with "…", locale-dependent numbers and a detail column pushed off-screen, all of which the mocks hid. Give the render, not the mock, to the blind judge. A built app works too: launch it and capture its window only (screencapture -o -l <windowID> s.png, with the id from osascript -e 'tell application "<App>" to get id of window 1'), which needs the Screen Recording permission for the terminal; if it is denied, say so under "Not verified". Render it at its minimum window size, at a typical size (about 1280×800), and at full screen, in light and dark; a Mac layout that is only good at one size is not done.--headless=new --force-prefers-reduced-motion --window-size=390,844 --screenshot=s.png file.html; --size 1280x800 for filmstrip.py).Render the largest text size too (iOS and Android; WCAG 1.4.4 and 1.4.10, Apple's Larger Text label). A screen that holds at the default size often clips, truncates into "…" or overlaps at the size many people actually use. At iOS AX5, body text is about three times its default size. Render the resting frame there and read it with critique pass 15:
python3 <skill>/scripts/render_swiftui.py <files> --platform ios --dynamic-type ax5 --clock 10:40 --out ax5.png. It builds the #Preview into a small app on an iPhone simulator; without --dynamic-type it gives the default frame, so the native render replaces the mock for iOS too. Give it the preview's now (one moment in time): name the preview with it (#Preview("Today, 10:40")) or pass --clock 10:40. Otherwise the status bar shows the wall clock, which contradicts the sample data, and judges mark that down.fontScale = 2f, or adb shell settings put system font_scale 2.0 on an emulator.python3 <skill>/scripts/fold.py mock.html --text-scale ax5 --shot ax5.png (Android: android2). It maps each font size through the platform's large-text table, reruns the fold check at that size, and writes the frame. Mark the mock's status bar and home indicator data-system so they keep their size.Fix what clips: a minHeight instead of a fixed height, a stack instead of a row at accessibility sizes, @ScaledMetric for sizes beside text. Then hand both frames, default and large, to the blind judge. If none of these can run, write "large text not rendered" under Not verified.
Render every scrolling screen twice: at rest and scrolled to the end (on a Mac, also check that the last row isn't hidden by a status bar or bottom toolbar, and that a resized window reflows rather than clips). The resting frame is what people and screenshots see first; the end frame proves the last row clears the pinned bar. On a simulator, swipe to the bottom and screenshot again; in a Compose screenshot test, render a second preview with the list state scrolled to the last item. In the HTML mock, give the scroll container an id and end the file with one line, <script>if (location.hash === '#end') { const s = document.getElementById('scroll'); s.scrollTop = s.scrollHeight; }</script>, then render mock.html and mock.html#end as two frames.
Record the motion whenever there is some to judge. Stills can't show motion: a stuck, janky or clipped animation passes every check above, and a good one earns nothing. When MOTION is 4 or more, or the core verb or the live thing animates, turn the motion into a filmstrip (frames over time in one image) and look at it:
requestAnimationFrame or timers can't be stepped), and start the motion under test on #play, the way #end scrolls: <script>if (location.hash === '#play') document.body.classList.add('play');</script>. Then run python3 <skill>/scripts/filmstrip.py mock.html. It pauses every animation at 0–800 ms (--times to change), crops the frames to the area that moves (--crop x,y,w,h to choose it yourself), renders them in light mode whatever the machine uses (--scheme dark for the dark frames), tiles them into one PNG, and prints how many animations run, the longest finite one in ms and how many loop forever. The two still frames above stay the Reduce Motion view.composeTestRule.mainClock.autoAdvance = false, trigger the action, and capture a frame after each mainClock.advanceTimeBy(40) (captureRoboImage with Roborazzi); then filmstrip.py frames/*.png.screencapture -v -V 3 -l <windowID> motion.mov (or QuickTime), then the same ffmpeg and filmstrip.py steps as below.xcrun simctl io booted recordVideo motion.mov, do the action, stop it with Ctrl-C, then ffmpeg -i motion.mov -vf fps=15 frames/f%03d.png and filmstrip.py on the frames around the action.mascot.py lottie rig.svg motion.json -o m.json, then mascot.py preview m.json and filmstrip.py m.preview.html --crop 0,0,240,240 once for the reaction (#play) and once with --hash state=idle for the loop. The preview drives lottie-web from a Web Animations clock, so the strip's numbers are real. Native mascot code animates like any other view: use the Compose or SwiftUI route above. references/mascot.md §7 says what to look for.Read the strip with references/critique.md pass 14, and put the numbers on the report's "Live thing" line.
Judge only the pictures, never the code: you wrote the code, so you'll read your intentions into it. If a problem is visible in the screenshot, it's real. The one exception is critique pass 15's names-and-order check, because what VoiceOver and TalkBack hear isn't in the pixels.
Craft pass. Read the image like a picky designer:
fillMaxSize in a Row).Structure, so the last row can scroll clear. SwiftUI: pin the bar with .safeAreaInset(edge: .bottom) { bar } on the ScrollView/List, not a ZStack(alignment: .bottom) or .overlay(alignment: .bottom) over it. Compose: put the bar in Scaffold(bottomBar = …) and pass the innerPadding bottom into the list's contentPadding, not a Box with Alignment.BottomCenter over it. lint.py warns (pinned-bottom-overlap) when it sees the overlay pattern.
The resting frame, which is what people and screenshots see first. Content that continues under the bar must read as scroll, not as cut: the bar is opaque with a visible top edge (a tone step, or the platform's scroll-edge effect), and the fold lands in a gap between rows: every row is either fully above the bar or fully under it. A row half-showing above the bar (a "peek"), even 1 pt of a card's top edge, reads as cut, with or without a fade. Our blind judges capped every one of them in four rounds, including a 38-of-72 pt peek with its title intact. A row whose text is cut mid-line at rest is a defect even when the code scrolls correctly; shorten or reorder what's above it.
Fold check: measured, not eyeballed. A few pixels of card above a tab bar are easy to miss in a screenshot, so for the HTML mock run the gate:
python3 <skill>/scripts/fold.py mock.html
It loads the mock at 390×844 with motion settled and fonts loaded, finds the pinned bar (a buy bar stacked on a tab bar counts as one) and the scrolling container. Every row that comes within 24 pt of the bar's top edge is either whole (fully above the bar, or fully under it) or cut (any part of it shows above the bar while the rest is under it: a sliver of card, a row sliced through its icon or text). A plain divider line peeking out is fine. It also scrolls to the end and checks that the last row clears the bar by 8 pt, and that the mock scrolls at all. Treat it like the compile gate: fix every CUT and FAIL and rerun until it says fold pass. To fix, move the fold into a gap by tightening or reordering what's above, or by changing a row height or the gap between rows; never grow the hero to push the list down. Pass --bar or --scroll if it picks the wrong element. On iOS, measure the native render too. Every render_swiftui.py --platform ios run checks its own bottom edge, at the default size and at AX5. It reads the screen's accessibility elements and prints each one that runs across the top of whatever is pinned over the content: the system tab bar, which iOS 26 floats over the list, or your .safeAreaInset bar. A mock can't show the floating tab bar, and in round 23 the only pair the skill lost was a row sliced by it that fold.py had passed on the mock. Fix every CUT it prints as you would fold.py's. It sees text and controls, not bare card edges, so still look at the bottom 150 pt yourself. Without an HTML mock or an iOS render, apply the same rule by eye, row by row, and say in the report that the fold was not measured.
Signature check: does the screen show the direction? A dealt direction can come out as the category's stock layout in the direction's colours, and nothing above catches that. Using the resting frame only:
Fix this before the taste pass, and put both results on the report's "Signature moves" line.
Blind pass first. Your own critique knows what you meant to build, so it reads intent into the pixels: in our evals the builds' own critiques passed a stock layout, an orphaned heading, a counter that disagreed with its list and live numbers implying three times of day, and blind judges capped every one. So before your own critique, hand the resting frame (and any other frames you rendered) to a judge that has never seen your code, brief notes or report:
python3 <skill>/scripts/blind_critique.py screenshot.png [more.png] --brief "<the user's brief in one or two sentences>" --platform ios|android|macos
It copies only the images, the brief and references/critique.md into an empty folder and runs a fresh headless claude judge on them (about a minute, about $0.30). Without a claude CLI it prints the hand-off instead: give exactly those files and that prompt to a fresh subagent with no other context. Never judge "blind" yourself; you can't unsee your intent. Treat its three fixes as the first items of your top three, unless one contradicts the brief (say which and why). Put its overall on the report's Critique line.
Taste pass. Passing the craft pass means nothing is broken. It doesn't mean the screen is good. Critique the same screenshots with references/critique.md: the one-second glance, the squint, the cover-the-logo test, idea reach, sameness, fullness, the thumb, the bottom edge, the motion. Score them, and write the critique in your reply in its format, including the scores line. The critique is part of the deliverable, not private working: a run that ends without it hasn't finished step 5. If you couldn't render at all, say so in the reply in place of the critique ("Critique: not run, the screen was never rendered") rather than leaving it out.
Then fix the top three problems across both passes, render again and look again. Two rounds at most; report what still falls short instead of looping.
Then run the checks at the end of this file. For each failed check, fix it or, if the style choice deliberately trades it off, keep it and warn the user (see Accessibility stance). End with the report block. Your final message ends with the block below, filled in. It is a fixed format, not a suggestion: copy the 16 labels exactly, in this order, one per line, inside the fenced block, starting with the app-ui-slopless report line. Don't rename, merge, reorder or drop a label, and don't restate it as prose or under your own headings. Fill every field; if one doesn't apply, write n/a and why. You may write anything you like before the block (what you built, notes for the user), but the block comes last and stands on its own: some hosts (headless runs, some models) show only the last message, so a step that only appeared mid-run is invisible to the reader. Don't claim a check you didn't run.
app-ui-slopless report
Inventory: <the 8–12 items from step 1b, comma-separated; (assumed) where inferred>
Direction: <dealt id, e.g. pl-persona> (seed <n>); deal: <deal.py's Deal line, verbatim>; redeals: <none, or each redeal's Deal line and why>
Owned idea: In this app, <inventory item> becomes <device>.
Competitor test: <competitor> → <why the idea fails for them>
Live thing: <the interaction and the real state it reacts to>; filmstrip: <n animations, longest n ms, n looping, and what the frames show; or "not recorded" and why>
Built: <files, screens, states; the brief's must-haves visible at rest>
Signature moves: <each move → where it shows at rest, or "not visible">; stock layout: <the default screen's blocks> → <what this screen does instead>
Lint: <compile: pass / FAIL / not run and why, at <iOS or macOS> <target> (<from the project / default>); lint n FAIL, n WARN; each --allow and each kept WARN with its reason>
Critique (final round): Idea n · Hierarchy n · Craft n · Substance n · Platform n · Access n → overall n (caps: <which, or none>); blind judge before fixes: overall n, Access n (or "not run" and why)
Bottom edge: <fold.py: pass / FAIL, or "not measured: no HTML mock">; native iOS render: <pass / CUT, at default and AX5, or n/a>; rest frame <each row at the fold: whole / cut>; end frame <last row clear by n pt>
Still short: <what the critique found and you didn't fix>
Sample content to replace: <names, prices, dates, photos>
Pictures: <each found picture: title, creator, licence, source; the mascot: its .svg and the mascot.py command that made the code; or "none, drawn in code">
Warnings: <accessibility trade-offs with criterion, value and fix>
Accessibility: <WCAG 2.2 AA, from code, lint and renders at <sizes rendered>, and whether any assistive technology was used; then per criterion, grouped as "Supports: 1.1.1 (reason), …; Partially supports: …; Does not support: …; Not applicable: …" (references/accessibility.md §4: the core set every screen answers, plus the ones its content adds)>
Not verified: <e.g. not compiled, not run on device, large text not checked>
These hold in every preset. Each one exists because ignoring it measurably hurts people. The sources are in references/principles.md.
Signifiers and feedback
Reach and targets
Structure and memory
Access (every preset, every dial setting; references/accessibility.md)
Button with a ButtonStyle, clickable(role =)). A tap gesture on a shape has no name, role, state or keyboard path for VoiceOver, TalkBack, Switch Control or Full Keyboard Access (WCAG 4.1.2, 2.1.1).Forms and errors
Type, colour, hierarchy
lint.py warns (caps-labels) when the code uppercases more than two labels, counting every call of a helper that does it.Motion (how much is set by the dial; see "Motion budget" below)
Delight
MOTION dial)Motion is how a static mock becomes an app people want to touch. A high MOTION setting is a request for more life, so deliver it.
MOTION | What to build |
|---|---|
| 1–3 | Pressed states, simple fades and slides, numbers that change without animation. Nothing loops. |
| 4–6 | Everything above, plus spring presses, shared-element / container transitions, numbers that roll when they change, a staggered entrance when a screen first loads (30–50 ms per item), and an animated state change on the core verb (check draws on, heart fills). |
| 7–10 | Everything above, plus: ambient life (a mascot that blinks and breathes, gently bobbing hero art, a flame that flickers, cycling 2–3 frames of "boil" on illustrations), press squish on every pressable (scale ~0.94 plus the lip/shadow collapse), animated icons (draw-on checks with overshoot, morphing tab icons, a bouncing selected tab), choreographed celebrations on milestones (particles, scale burst, sound and haptic), playful page transitions, and pull-to-refresh with character. |
At every level:
Shared across platforms (the brand layer): colour, display type, iconography style, illustration, shape language, motion personality.
Native per platform (the mechanics):
WindowInsets).sp up to 200% with nonlinear scaling.NavigationSplitView) for top-level navigation and a toolbar for window actions, not a bottom tab bar; hover, cursor and right-click states; a real menu bar with keyboard shortcuts; resizable windows with a declared minimum; fixed system text styles (body 13 pt) and an in-app zoom for content-heavy views instead of Dynamic Type; light, dark and the user's accent colour; translucent sidebars; Settings in ⌘,; undo instead of confirmation. Details: references/platform-macos.md.In Compose Multiplatform, one shared UI is fine. Branch with expect/actual (or a platform flag) for the mechanics above when they differ visibly: back affordance, haptics, sheet style, system font fallbacks.
The user is allowed to break platform conventions when the style calls for it, for example a custom bottom bar shaped like a ticket stub, or a bespoke toggle. When you break one:
Bold choices sometimes trade against accessibility, such as neon-on-black contrast, a 9 pt caption in an editorial layout, or non-stop motion. The user decides, but always with the information in front of them:
scripts/acr.py (references/accessibility.md §5) and hand it over as a draft: nothing in this skill tests with assistive technology.Models produce slop because they sample the statistical average of their training data, which is mostly templates and tutorials (Anthropic calls it "distributional convergence"). If the output shows any of these without a deliberate reason, it has drifted back to that average. Fix it. (Compiled from Anthropic, impeccable.style, taste-skill and designers' write-ups; see research/real-ui-references.md §6.) scripts/lint.py catches the ones visible in code.
This list is dated, on purpose. Tells move: each published "use this instead" becomes the next wave of defaults within months (Inter was replaced by Space Grotesk, Geist and Instrument Serif, which are now tells themselves; purple gradients were replaced by cream and terracotta). So the fix for a tell is a procedure, never a named replacement: deal a direction, take colour and type from the sheet or from the product's own material, and derive the idea from the inventory. Don't treat the font names in the preset files or the research notes as a new default list either; they're what the deal draws from. When you notice a new tell spreading, add it here with its date.
Colour
Type
Layout and components
Icons and imagery
Motion and feel
.heavy on everything.Craft
Color.gray / Color(0xFF888888) and stock .shadow(radius: 8).deal.py ran, and repeated as the brief's first line.deal.py --content (plus --platform macos for a Mac app); every dealt option put through the fit test (content at rest, owned idea, costume test, category fit), misfits dropped, redeal stated if none survived; direction id, seed and the Deal: line in the report.scripts/typecheck.py on the right platform at the project's deployment target (iOS 17 / macOS 14 when the project sets none), newer APIs behind if #available, --ios / --macos never raised to get a pass; Kotlin compiled with the project's Gradle build or scripts/compile_kotlin.py; both passing, or the report says why not.scripts/lint.py run on the changed files: no FAIL, every WARN and --allow defended in the report.scripts/fold.py passes on the mock (no cut row, no sliver behind a fade, no section heading orphaned above the bar, the last row clears the bar by 8 pt), and on iOS the native render's bottom edge prints no CUT at default or AX5; or the report says the fold was checked by eye and why.--clock, or the time in the #Preview's name), so the status bar agrees with the sample data.scripts/filmstrip.py, or test / simulator frames) when MOTION ≥ 4 or the core verb animates: it moves, settles on the rest state, clips nothing, and frequent paths finish within 300 ms.scripts/blind_critique.py (or a fresh subagent given only the images, the brief and critique.md) before your own critique; its fixes taken first.references/critique.md format (or "Critique: not run" with the reason), top three fixed, at most two rounds; final scores reported.now and one data set, and the resting frame read for numbers that disagree.list, three rows show and the hero stays under about 45% of the height. At the largest text size, the thing to act on now and its control are still in the first screen.references/platform-macos.md §2-3; menu commands and shortcuts exist for the daily actions; light, dark and a non-default accent colour checked; no iPhone layout stretched into a window.sp (macOS: the system text styles, body 13 pt, plus in-app zoom where content is dense).render_swiftui.py --platform ios --dynamic-type ax5, Android font scale 2.0, or fold.py --text-scale) and read with critique pass 15: nothing that carries meaning clips, truncates or overlaps.lint.py accessibility rules clean or defended).mascot.py svg2code (--into for a single-file brief), never freehand; it passed mascot.py check (24 px silhouette, squint) and its states were filmstripped and read with pass 14.MOTION dial's row in the motion budget (at 7+: ambient life, press squish everywhere, animated icons); frequent paths ≤300 ms; reduce-motion fallback present.app-ui-slopless report block from step 5: all 16 labels verbatim, in order, every field filled (or n/a with a reason), the Accessibility line in VPAT terms per criterion.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub massipetro/app-ui-slopless --plugin app-ui-sloplessOther plugins' skills for the same job