ui-android

ui-android is a skill for Claude Code from rshzrh/ui-design-skills. It costs 95 tokens per session (2,482 once invoked), scanned A, original, MIT.

An Android interface design and development guide for Jetpack Compose, Android's Kotlin-based UI toolkit, using Material 3 Expressive on Android 14 and newer. It sets required design tokens such as colors, type, spacing, shapes, and interaction rules before building the interface.

In plain words
What is it for?
Use it to build or improve Compose screens, components, activities, fragments, navigation, touch targets, edge-to-edge layouts, dynamic color, and predictive-back behavior.
Why use it?
It prevents common generated-UI problems such as arbitrary values, repeated layouts, unsuitable icons, and missing Android interaction requirements. It also requires a theme setup and approval before the UI phase.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the ui-design-skills plugin — 3 skills shipped together

Good fit Use it to build or improve Compose screens, components, activities, fragments, navigation, touch targets, edge-to-edge layouts, dynamic color, and predictive-back behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rshzrh/ui-design-skills/ui-android
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rshzrh/ui-design-skills --skill ui-android
Clone the repo
git clone --depth 1 https://github.com/rshzrh/ui-design-skills

Made for: Claude Code.

Or install ui-design-skills, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-android

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshzrh/ui-design-skills/ui-android/github.svg)](https://agentmods.dev/skills/rshzrh/ui-design-skills/ui-android)
Your own site
<a href="https://agentmods.dev/skills/rshzrh/ui-design-skills/ui-android"><img src="https://agentmods.dev/badge/skills/rshzrh/ui-design-skills/ui-android/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-android

Your own site · 80×15
<a href="https://agentmods.dev/skills/rshzrh/ui-design-skills/ui-android"><img src="https://agentmods.dev/badge/skills/rshzrh/ui-design-skills/ui-android.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,482 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.02482
Opus 5 $0.00048 $0.01241
Sonnet 5 $0.00019 $0.00496
Haiku 4.5 $0.00010 $0.00248

Measured 9d ago against content hash cd523d108f1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ui-android scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ui-android/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ui-android — Slop-Free Compose UI Skill

You are generating production-grade Android UI in Jetpack Compose + Material 3 + Kotlin 2.0+. This skill exists because untouched LLMs produce AI slop: purple→pink Brush.linearGradient, hardcoded 16.dp everywhere, three-card LazyVerticalGrid "features" sections, "Beautiful and intuitive" copy, decorative rememberInfiniteTransition shimmers, Color(0xFF...) literals scattered through composables, and the median of every Compose tutorial scraped from GitHub. This skill replaces guesses with constraints.

The non-negotiable rule: NEVER use a buzzword in place of a token. Words like clean, modern, professional, sleek, premium are banned from your reasoning. Every aesthetic choice must trace back to a named anchor recipe in anchors.md and a token in Theme/Color.kt, Theme/Type.kt, Theme/Spacing.kt, Theme/Shape.kt.

This skill targets Material 3 Expressive on Android 14+ (API 34+) with Compose BOM 2026.x. Strict on Material mechanics: 48dp touch targets, edge-to-edge insets, predictive back, dynamic color opt-in, Material Symbols only. Brand has freedom over seed color, type personality (with Roboto Flex fallback declared), motion personality, shape family.


Workflow (follow in order)

Step 0 — Project scan (decides bootstrap vs extend mode)

Before any other action, check for:

DESIGN_RULES.md                                        # at repo root → if exists, you are in EXTEND mode
app/src/main/java/**/ui/theme/Theme.kt                 # Compose MaterialTheme wrapper
app/src/main/java/**/ui/theme/Color.kt                 # ColorScheme defs
app/src/main/java/**/ui/theme/Type.kt                  # Typography
app/src/main/java/**/ui/theme/Shape.kt                 # Shapes
app/src/main/java/**/ui/theme/Spacing.kt               # Custom spacing CompositionLocal
app/build.gradle.kts                                   # confirm BOM + material3 version
config/detekt/detekt.yml                               # detekt config

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 115 lines · 95 tokens per session scan A cd523d108f1d

Subscribe to this mod's changes

ui-android is a skill published in the GitHub repository rshzrh/ui-design-skills (4 stars, last pushed 5mo ago), licensed MIT. It adds 95 tokens to every session and 2,482 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cocos-creator-adaptation

A guide to making a Cocos Creator interface fit different phones, tablets, screen sizes, orientations, and notched displays. It covers the design resolution, layout anchoring, and safe areas where system UI does not cover the screen.

Wade-DevCode/awesome-coding-skills-cn · 30 tokens

ios-accessibility

Production-grade iOS accessibility skill covering VoiceOver, Dynamic Type, color contrast, motion, Switch Control, Voice Control, and WCAG 2.2 compliance for both SwiftUI and UIKit. This skill should be used when creating new iOS screens or views, reviewing existing iOS code for accessibility, adding VoiceOver…

rusel95/ios-agent-skills · 253 tokens

ios-localization

Production-grade iOS localization skill covering String Catalogs (.xcstrings), CLDR pluralization, SwiftUI/UIKit localization APIs, RTL layout, date/number/currency formatting, and enterprise patterns (modular apps, white-label, accessibility localization). This skill should be used when creating or editing localized…

rusel95/ios-agent-skills · 265 tokens

ios-logging

Enterprise skill for iOS production error observability and logging (iOS 15+, Swift 5.5+). The trigger is OBSERVABILITY intent — the user wants errors captured and visible in production, not just handled. Use when: adding os.Logger or replacing print() with structured logging; setting up or integrating a crash SDK…

rusel95/ios-agent-skills · 183 tokens

ios-security

Use for any iOS security question — whether you're asking about a specific vulnerability, checking if a pattern is secure, or running a full audit. Triggers on: Keychain vs UserDefaults decisions, ATS/NSAllowsArbitraryLoads configuration, certificate pinning implementation, WebView security (UIWebView, WKWebView)…

rusel95/ios-agent-skills · 149 tokens

ios-testing

Invoke any time a user is writing iOS/Swift tests or asking why tests behave a certain way — including XCTest versus Swift Testing (@Test/#expect) choices, async ViewModel tests with @Observable or @Published, snapshot testing across device sizes, mocking protocols for dependency injection, setUp/tearDown lifecycle…

rusel95/ios-agent-skills · 134 tokens