Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

android-ui-design-guide安卓用户界面设计指南

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

872

周安装

17

GitHub Stars

2

下载量

140
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:android-ui-design-guide(安卓用户界面设计指南)
来源仓库:https://github.com/muheun/claude-code-marketplace
仓库路径:skills/android-ui-design-guide
安装命令:
npx skills add https://github.com/muheun/claude-code-marketplace --skill android-ui-design-guide
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/muheun/claude-code-marketplace --skill android-ui-design-guide

简介

提供遵循 Material Design 3 规范的 Android UI 设计指导,覆盖 Jetpack Compose 动态色彩、排版、布局与组件实践。

  • 适用于构建原生 Android 界面,支持屏幕、布局和组件设计,强调视觉一致性与交互体验优化。
  • 根据产品场景生成页面结构、配色方案和组件层级,检查文本溢出、对齐与响应式表现。
  • 需结合品牌指南和设计系统使用,避免仅添加装饰性元素;真实页面改动应通过截图或预览验证效果。
  • 安装前请确认项目采用 Compose 或 XML 开发,并评估其对现有样式和构建流程的影响。

SKILL.md

Android UI Design Guide

Overview

Build native Android interfaces that follow Material Design 3 (Material You) by applying systematic design principles. This skill provides comprehensive guidelines for Jetpack Compose-first development with Dynamic Color, spacing, typography, and component-specific patterns optimized for Android.

When to Use This Skill

Activate this skill when:

  • Building Android UI with Jetpack Compose or XML
  • Creating Android app screens, layouts, or components
  • Working with Android development (Kotlin, Compose, Android Studio)
  • Receiving requests like:

- "Create a login screen in Compose" - "Design an Android settings view" - "Build a card layout for Android" - "Make this Android UI follow Material Design" - "Style this Compose screen"

Do NOT activate for:

  • Web development
  • iOS development
  • Backend/server code
  • Non-visual Android tasks

Core Design Philosophy

Follow Material Design 3 principles + Flexible extensions:

Material Design 3 Principles

  1. Expressive - Dynamic Color from user wallpaper, personalized theming
  2. Adaptive - Responsive layouts for phones, tablets, foldables
  3. Cohesive - Consistent Material components and interactions

Flexible Extensions

  1. Simplicity - Remove unnecessary elements, focus on core features
  2. Accessibility - 48x48dp touch targets, WCAG AA compliance, TalkBack support

Framework Priorities

  • Primary: Jetpack Compose (declarative, modern, recommended)
  • Secondary: XML Views (legacy support)

How to Use This Skill

Step 1: Load Relevant Reference

Read references/design-principles.md - Material Design 3 principles
Read references/color-system.md - Dynamic Color, Material Theme
Read references/spacing-system.md - 4dp grid, touch targets
Read references/typography.md - Roboto, Material Type Scale
Read references/component-patterns.md - Compose component best practices
Read references/anti-patterns.md - Common Android design mistakes

Step 2: Apply Component-Specific Patterns

  • Button: component-patterns.md → Button section
  • Card: component-patterns.md → Card section
  • List: component-patterns.md → LazyColumn section
  • TextField: component-patterns.md → TextField section
  • Navigation: component-patterns.md → Navigation section
  • Dialog: component-patterns.md → AlertDialog section

Step 3: Validate Against Anti-Patterns

  • ❌ Hardcoded colors (no Dark Mode)
  • ❌ Material Theme ignored
  • ❌ Touch targets smaller than 48x48dp
  • ❌ Fixed text sizes (no Type Scale)
  • ❌ 4dp grid violations
  • ❌ Nested scrolling

Step 4: Ensure System Consistency

4dp grid system:

  • Use only: 4dp, 8dp, 12dp, 16dp, 24dp, 32dp, 48dp, 64dp
  • Compose: 16.dp, .padding(16.dp)

Material Theme colors:

  • Labels: colorScheme.onSurface, colorScheme.onSurfaceVariant
  • Backgrounds: colorScheme.surface, colorScheme.surfaceVariant
  • Primary actions: colorScheme.primary
  • Dynamic Color support (Android 12+)

Material Type Scale (REQUIRED):

  • Display: displayLarge, displayMedium, displaySmall
  • Headline: headlineLarge, headlineMedium, headlineSmall
  • Title: titleLarge, titleMedium, titleSmall
  • Body: bodyLarge, bodyMedium, bodySmall
  • Label: labelLarge, labelMedium, labelSmall

Resources

references/

  • design-principles.md - Material Design 3 principles (Expressive, Adaptive, Cohesive)
  • color-system.md - Dynamic Color, Material Theme, dark mode
  • spacing-system.md - 4dp grid, touch targets, Compose modifiers
  • typography.md - Roboto, Material Type Scale, font weights
  • component-patterns.md - Compose patterns for Button, Card, List, TextField, Navigation, Dialog
  • anti-patterns.md - Common mistakes: hardcoded colors, touch targets, Material Theme neglect

Quick Decision Tree

Android UI Component Request
│
├─ What component? → Load component-patterns.md section
│
├─ What spacing? → Use 4dp grid (spacing-system.md)
│
├─ What colors? → Material Theme + Dynamic Color (color-system.md)
│
├─ What typography? → Material Type Scale (typography.md)
│
├─ Compose or XML? → Compose first
│
└─ Validation → Check anti-patterns.md

Examples

Good Request Flow:

User: "Create a login form in Compose"
→ Read references/component-patterns.md (TextField section)
→ Apply: OutlinedTextField, Material Type Scale, 4dp spacing
→ Validate against anti-patterns.md
→ Implement with Column { OutlinedTextField, Button }

Component Implementation Checklist:

  • ✅ Spacing uses 4dp multiples
  • ✅ Material Type Scale used (bodyMedium, titleLarge, etc.)
  • ✅ Material Theme colors (auto Dark Mode)
  • ✅ Touch targets minimum 48x48dp
  • ✅ Material components used
  • ✅ Dynamic Color support
  • ✅ Accessibility (TalkBack contentDescription)

Compose Code Examples

✅ Good: Material-Compliant Button

Button(onClick = { }) {
    Text("확인")
}

✅ Good: Material Theme Colors

Card {
    Column(modifier = Modifier.padding(16.dp)) {
        Text(
            text = "제목",
            style = MaterialTheme.typography.titleLarge,
            color = MaterialTheme.colorScheme.onSurface
        )
        Text(
            text = "내용",
            style = MaterialTheme.typography.bodyMedium,
            color = MaterialTheme.colorScheme.onSurfaceVariant
        )
    }
}

❌ Bad: Hardcoded Colors, No Type Scale

Text(
    text = "제목",
    fontSize = 24.sp,  // ❌ No Type Scale
    color = Color.Black  // ❌ No Dark Mode
)

Platform-Specific Considerations

Dynamic Color (Android 12+)

val colorScheme = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
    dynamicLightColorScheme(LocalContext.current)
} else {
    lightColorScheme()
}

Dark Mode (REQUIRED)

  • Test both light and dark themes
  • Use Material Theme colors
  • Never hardcode Color.Black, Color.White

Touch Targets

  • Minimum 48x48dp for all interactive elements

Reference Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.56%
按下载量换算53

Claude

29.7%
按下载量换算42

Cursor

19.87%
按下载量换算28

Gemini CLI

9.07%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills