Follow the android-design skill for every design decision: its design questions, components, theming, layout, and visual criteria. This skill owns the exploration workflow. Each run writes a live Jetpack Compose exploration board, verifies it headlessly through android_design_preview, shows renders and the interactive browser board link, then waits for feedback. Phone, foldable, tablet, desktop, and Wear OS app screens are in scope; Wear tiles, watch faces, and widgets are not. Where Wear differs, the Wear OS section below says how.
Requirements
Requires the android_design_preview MCP server (check_design and get_tree), which runs on macOS, Linux, and Windows with Node.js 18+ and Java 17+. Call check_design when your first draft is ready. If its tools are unavailable or report missing Java/Node prerequisites, stop, give the user references/setup.md, and wait.
Brief
When there is an app, read its relevant screens, theme, assets, and any existing DESIGN.md and design/*.explore.kt files first. Answer android-design's design questions in your reply before writing code:
- Pick one seed: the brand color, or a content color from the subject (a dish, an album, a trip), never the default
#6750A4. - When the screen is a hero moment, layer three or more tactics and name them.
- Keep app code and dependencies unchanged.
- Use representative, non-sensitive data and assets. Use image generation only for assets inside
design/assets/, never as a substitute for a Compose board.
When the user asks for alternatives, declare multiple direction("...") blocks inside the same <slug>.explore.kt file so they compare side by side on the browser board, each a genuinely distinct composition with clear visual differentiation rather than a recoloring.
Files
Work in the app's repository root, or the folder the user names. Never write into this skill's own repository.
DESIGN.mdat the repo root holds the shared design system (colors.primaryseed,material.scheme.variant, bundled typography roles). Create it when missing; update it only when every exploration should share a change.design/<slug>.explore.ktholds the Compose exploration board (design/<slug>-wear.explore.ktfor Wear OS).
Report the file's absolute path and the boardUrl returned by check_design.
Write
- Read references/compose-signatures.md for the exact pinned Material 3 Expressive, Wear M3, and Exploration Kit signatures. Do not read
references/porting.mduntil the user approves a direction and requests implementation. - Write
DESIGN.md(if needed) anddesign/<slug>.explore.ktusingdesignBoard(...)orwearBoard(...).
Follow these exploration rules:
- Mark the screen's single primary CTA with
Modifier.testTag("ad:primary")(AD_PRIMARY_TAG). - Never place raw
Color(...)hex literals in screen code (passseed = 0xFF...ondesignBoard/wearBoardinstead) and never call.copy(alpha = ...). UseMaterialTheme.colorSchemeandMaterialTheme.typographyroles in intended pairs (onSurfaceVariantfor subdued text). - Draw bundled Material Symbols with
SymbolIcon(...)and local images beneath the exploration folder withdesignPainter("assets/..."). - Adapt at 600 and 840 dp: switch
ShortNavigationBartoWideNavigationRail(or uselistDetail/supportingPanefor dual-pane layouts) so wider views reveal more structure rather than stretching phone content. - Keep labels concise so button, chip, and navigation items fit on one line without truncation.
Writing it compactly
Keep each single-direction .explore.kt file concise (around 150 to 300 lines):
- Author ONE adaptive screen (or shared subcomposables parameterized by
BoxWithConstraintsmaxWidth,listDetail, orsupportingPane) instead of duplicating separatePhoneScreen,FoldableScreen,TabletScreen, andDesktopScreencopies of the same UI. - Store sample entries in a compact list of 3 to 5 items and render rows in a loop rather than repeating card blocks inline.
- Make small targeted edits when fixing findings instead of rewriting the file.
Check
check_design compiles in memory inside a sandboxed worker, enforces token rules, checks every direction, screen, overlay, and view (light, dark, foldable, tablet, desktop, or watch and watch-large on Wear), and when error findings reach zero, returns [TextContent(checkJson), ImageContent(lightPng), ImageContent(desktopPng)] (watch and watch-large on Wear) plus boardUrl.
- Call
check_designwith the absolutepathof your.explore.ktfile (leaveviewsunset so every view checks in one call). - Fix every compile diagnostic, token rule violation, or error finding (
overflow,corner-clipped,touch-target, contrast, typography,round-edge-clipped). Readnotes(info findings) andcolors(judge strong fills from rendered hex roles, keeping one strong fill on the hero or coherent action group). A view equal to an earlier one on the same screen collapses to{"same": "<view>"}. - Confirm adaptation from the
layoutsummaries: each larger view (tablet,desktop) must show what your adaptation answer promised. - Call
get_treeonly when a failing finding needs exact node bounds or<file>:<line>locations. - Once checks pass and
check_designreturns images (light+desktop, orwatch+watch-large), visually inspect the PNGs for hierarchy, icon fit, asset legibility, and spacing balance. Fix any visual flaw, re-runcheck_designonce to confirm, and never exceed two fix rounds without reporting unresolved findings.
Show
State in one line what the exploration covers, name the tactics layered for hero moments, note any remaining unresolved findings, share the absolute .explore.kt path and clickable boardUrl, and report "visual quality checked from layout metrics and native-resolution renders". Stop and wait for the user's reply.
Revise
Edit the same design/<slug>.explore.kt file (the browser board watches saves and pushes SSE updates automatically). Re-run check_design on changed directions/screens, keeping a single clean file with no stale copies.
Approve and port
Approval is the user saying so in chat. An explore-only request ends here: do not touch app source code. A build request (sent here by android-design's Route step) continues to wiring: now read references/porting.md and follow the host project's planning, branch, verification, and review workflow.
Wear OS
Wear explorations follow the same loop using wearBoard(...) and design/<slug>-wear.explore.kt:
- Views:
watch(204 dp round, dark) andwatch-large(227 dp round, dark). - Scrolling and scaffold: wrap in
AppScaffoldandScreenScaffold; scrolling screens useTransformingLazyColumnand optionalEdgeButton. The previewer scrolls from top to end and merges bounds automatically. - Findings: fix
round-edge-clippedwith percentage margins (PaddingDefaults) or tighter content.
Delete
Remove design/<slug>.explore.kt (or -wear.explore.kt) when asked. Keep DESIGN.md unless the user asks to remove it too.