Agent skill

Platform Design Android: Material Design 3 Rules for Agents

Platform Design Android is a SKILL.md that teaches an AI coding agent Material Design 3, from dynamic color and navigation bars to predictive back and foldable layouts.

Install
git clone https://github.com/ehmo/platform-design-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What the Android skill contains

Platform Design Android is the android folder of ehmo's platform-design-skills pack. Its SKILL.md gives an AI coding agent numbered Material Design 3 rules for Jetpack Compose and XML, covering dynamic color, color roles, navigation components, window size classes, edge-to-edge drawing and foldables.

The skill opens with one instruction: enable dynamic color derived from the user's wallpaper, and treat it as the primary theming strategy on Android 12 and later. A Compose theme example and an XML one follow.

Its frontmatter names the triggers: Android UI, Compose components, dynamic color and Material Design compliance. The sections are ranked, with theming and navigation marked CRITICAL and layout and typography marked HIGH.

Where the rules get specific

  • A color roles table maps primary, secondary, tertiary, surface, outline and error to their on-colors and the places they belong, such as the navigation bar indicator on secondaryContainer.
  • A selection table picks the navigation component from window width: bar, rail or drawer, with 3 to 5 destinations or more.
  • Window size classes give compact, medium and expanded widths with 4, 8 and 12 columns.
  • Edge-to-edge rules call enableEdgeToEdge before setContent and use WindowInsets for padding.

Compose and XML, side by side

Most rules ship with Kotlin Compose code, and the theming section adds an XML themes file that extends Theme.Material3.DayNight. Teams on older view-based screens get the same guidance as teams on Compose.

Foldables get their own rules: detect the hinge with WindowInfoTracker and keep critical content off the fold. The skill suggests ListDetailPaneScaffold or SupportingPaneScaffold from the Material3 adaptive library.

Who should install it

Good fit

  • Android developers whose agent keeps producing iOS-style tab bars or hardcoded colors.
  • Reviewers checking a Compose screen against Material Design before merge.
  • Teams planning phone, tablet and foldable layouts from one codebase.

Look elsewhere

Use it with UiChemy

This skill shapes native Android code and does not touch WordPress. If a mobile design also needs a marketing site, bring the Figma web layout into WordPress with UiChemy. Click Get Started on uichemy.com. Related: mobile design guidance and accessibility fixes.