Logo Android

Android

Cộng đồng
ayush016
android

Senior-level Android engineering expertise for Jetpack Compose, Material 3, shared element transitions, navigation, performance, security, background work, notifications, adaptive layouts, Coil image loading, WorkManager, FCM, Baseline Profiles, R8 optimization, accessibility, coroutines and Flow, and extraordinary UI quality. Load this skill for ANY Android or Kotlin task — building a screen, animating a transition, designing a data layer, scaffolding a multi-module project, optimising startup, adding biometric auth, writing WorkManager jobs, wiring FCM, handling foldables, writing Roborazzi screenshot tests, debugging on device with ADB or MCP. If it touches Android, this skill covers it. Non-negotiable aesthetic bar: every screen produced must look like it belongs in a design award showcase. Default grey scaffolds, missing animations, hardcoded colors, and spinners as sole loading states are bugs, not style choices. Trigger on: Kotlin, Jetpack Compose, ViewModel, Hilt, Room, Retrofit, Coroutines, Flow, Navigation, WorkManager, FCM, Coil, Roborazzi, Macrobenchmark, Baseline Profiles, R8, WindowSizeClass, foldables, shared element transitions, animation, ADB, MCP.

Tổng quan

Nhà phát hànhayush016
Kho mãandroid-lead-agent-skills
Tên kỹ năngandroid
Sao
65
Bản fork
8
Tệp đi kèm
20
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 20 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được ayush016 công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Android trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/ayush016/android-lead-agent-skills/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ayush016/android-lead-agent-skills.git \
  .claude/skills/android
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Android trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Android ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Android không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Android Development Skill

Production-grade Android engineering expertise from data layer to pixel, from startup milliseconds to biometric auth, from phone portrait to foldable landscape. UI quality, performance, security, and accessibility are first-class concerns equal to functional correctness.


⚡ Quick Decision Guide

TaskReference
Color theming, 29 roles, token hierarchy, gradientstheming-and-color.md
Building a new screencompose-ui-system.md
Navigation with shared element transitionsshared-element-transitions.md
Type-safe navigation, deep links, multi-modulenavigation.md
Animation / motion (non-shared-element)motion-and-animation.md
Adaptive layouts, large screens, foldablesadaptive-layouts.md
Coroutines, Flow, dispatchers, cancellationcoroutines-and-flow.md
Room, Retrofit, offline-first data layerdata-layer.md
ViewModel, state, DI, architecturearchitecture.md
Baseline Profiles, R8, recomposition perfperformance.md
Encryption, biometrics, cert pinningsecurity.md
WorkManager, Foreground Services, Alarmsbackground-work.md
Coil3, SubcomposeAsyncImage, cachingimage-loading.md
FCM, notification channels, deep linksnotifications.md
TalkBack, semantics, focus, contrastaccessibility.md
Unit, screenshot, Roborazzi teststesting.md
Convention plugins, version catalog, modulesbuild-and-modules.md
ADB / Android MCP debuggingandroid-mcp.md
Pre-ship quality reviewassets/ui-excellence-checklist.md

Core Engineering Principles

1. Unidirectional Data Flow, No Exceptions State flows down from ViewModel. Events flow up via lambdas or actions. No composable reads from a database. No ViewModel imports Compose. The boundary is sharp and testable.

2. Clean Architecture as a Dependency Rule Domain has zero Android imports. Data is invisible to UI. Features depend on core, never each other. Violations create debt that compounds faster than feature velocity.

3. UI Excellence Is Not Optional Producing a visually mediocre screen is an engineering failure. Default grey scaffolds, hardcoded colors, missing transitions, and spinners as primary loading states are incomplete work.

4. Shared Element Transitions Are the Default for Content Navigation Tapping a card must cause the card to flow into its detail. sharedBounds() or sharedElement() is the default. Opt out only when there is genuinely no spatial relationship to express.

5. Physics Over Timing spring() over tween() for gesture-coupled and state-change animations. Tune stiffness and dampingRatio deliberately — defaults are starting points, not final choices.

6. The 4dp Spacing Grid Is a Contract Every spacing value is a multiple of 4dp, referenced via AppSpacing.* tokens. Arbitrary values are bugs that accumulate into visual dissonance.

7. Fakes Over Mocks Test ViewModels against in-memory fake implementations. Fakes exercise real contracts, survive refactors. Mocks couple tests to implementation details and silently pass when production code breaks.

8. Performance Is a Feature Baseline Profiles are committed for every app shipped. Recomposition counts are checked with Layout Inspector before any UI work is done. Cold start is tracked in CI via Macrobenchmark.

9. Security from Day One Encrypted storage for all sensitive data. Certificate pinning for all network endpoints. No secrets in source code. Input validated at every external boundary. These are not features to add later.

10. Accessibility Is Not Optional Every image has a content description. Every custom component declares its semantic role. Every interactive element has a 48dp touch target. Colour contrast meets WCAG AA. TalkBack is tested before any screen is shipped.


★ THE EXTRAORDINARY UI MANDATE ★

Android users have seen a million apps. The ones they remember have something alive about them — a transition that makes content feel like a physical object moving through space, surfaces that catch light at different elevations, a loading state so well crafted it does not feel like waiting.

The Bar. Every screen passes three tests before it ships:

  1. The scroll-stop test. Would a designer pause on this if scrolling past it? Not because it is garish — because something is considered. A hierarchy that breathes. A transition that reveals spatial relationship. A surface treatment that says "we care."

  2. The feel test. Does it respond to touch like a physical object? Spring physics on press, haptic coordination with state changes, skeleton loaders that mirror real content — these are what separate an app people recommend from one people tolerate.

  3. The motion test. Do transitions communicate where content came from? Shared elements communicate spatial memory. Instant cuts communicate nothing. Slide transitions say you moved sideways. Shared elements say: this is that thing, grown.

In code, this means:

  • Shared element transitions for every navigation between related content — always
  • spring() physics tuned for each context; no unexamined defaults
  • Color exclusively from Material 3 roles; Brush gradients where flat color is visually weak
  • A display typeface for headlines paired with a humanist sans for body
  • Skeleton screens mirroring the exact geometry of real content — no centred spinners
  • Edge-to-edge always; status bar and nav bar are part of the design
  • Canvas for anything standard components cannot achieve
  • Haptic feedback coordinated with meaningful state transitions

Anti-patterns to refuse: Default grey scaffold backgrounds. Hardcoded hex colors in composables. Instant navigation between related content. LinearProgressIndicator as the sole loading state. Cards with identical elevation everywhere. Spacing not on the 4dp grid.


Shared Element Transitions — Overview

SharedTransitionLayout coordinates geometry between composable trees during navigation. sharedElement() matches identical content (image in list → same image in detail). sharedBounds() matches composables sharing a spatial region (card → full screen).

Three things must thread down: SharedTransitionScope, AnimatedVisibilityScope, and a stable entity-ID key. Missing any one silently breaks the transition.

Full guide, four complete Kotlin patterns, pitfalls: references/shared-element-transitions.md


Android MCP Integration

MCP = eyes on device. Code = hands in codebase. Build → install → screenshot → compare → refine. Catches what Roborazzi misses: real inset behaviour, animation timing, system bar styling, density quirks.

Full capability table, workflows, log filtering, hierarchy inspection: references/android-mcp.md


Feature Build Workflow

  1. Module — Create with yourapp.android.library.compose plugin. build-and-modules.md
  2. Routes — @Serializable data class in :core:navigation. navigation.md
  3. UI State — Sealed interface: Loading, Ready(data), Error(message, canRetry). architecture.md
  4. Actions — Sealed interface for all user interactions.
  5. ViewModel — StateFlow + SharedFlow(replay=0) + SavedStateHandle.toRoute(). architecture.md
  6. Domain — UseCase → Repository interface → impl in :core:data. data-layer.md
  7. Composables — Public screen + private sub-composables; AppSpacing, colorScheme, typography only. compose-ui-system.md
  8. Shared elements — sharedElement() or sharedBounds() with stable ID keys. shared-element-transitions.md
  9. Motion — Stagger entry, spring state changes, enter/exit transitions. motion-and-animation.md
  10. Skeleton loading — Mirror Ready geometry with ShimmerBox. compose-ui-system.md
  11. Adaptive — Verify on 600dp+; apply WindowSizeClass-aware layout. adaptive-layouts.md
  12. Accessibility — Semantics, content descriptions, focus order, 48dp targets. accessibility.md
  13. Security — No secrets; input validated at all external boundaries. security.md
  14. MCP review — Screenshot in light/dark/large font/RTL; check insets + transitions. android-mcp.md
  15. Tests — ViewModel unit tests + Roborazzi screenshots. testing.md
  16. UI excellence — Every item in assets/ui-excellence-checklist.md must pass.

Common Pitfalls

1. Hardcoded colors — Color.White in a composable. Fix: all colors via MaterialTheme.colorScheme.*.

2. Missing modifier parameter — Composable cannot be resized by caller. Fix: every public composable takes modifier: Modifier = Modifier on its outermost layout.

3. SharedFlow vs StateFlow for events — Toast fires again on rotation. Fix: events = MutableSharedFlow(replay=0). State = MutableStateFlow(initial).

4. Shared element key mismatch — Navigation works but no transition fires. Fix: build from stable entity ID. Log both sides and compare.

5. SharedTransitionLayout not wrapping NavHost — IllegalStateException: No SharedTransitionScope. Fix: SharedTransitionLayout { NavHost { } } — must contain both source and destination.

6. Missing renderInSharedTransitionScope — Back button blinks into existence at transition end. Fix: apply .renderInSharedTransitionScope(scope).animateEnterExit(...) to destination-only elements.

7. Blocking main thread — ANR or UI freeze. Fix: withContext(dispatchers.io) for all I/O; never runBlocking on the main dispatcher.

8. Spinner as only loading state — CircularProgressIndicator centred on a blank background. Fix: ShimmerBox composable mirroring Ready geometry.

9. Non-4dp spacing — Visual rhythm feels slightly off; design review flags it. Fix: AppSpacing.* for every spacing value.

10. collectAsState instead of collectAsStateWithLifecycle — Flow collects in background. Fix: always collectAsStateWithLifecycle() for UI-bound collection.

11. GlobalScope usage — Coroutine leaks, ignores cancellation. Fix: viewModelScope, lifecycleScope, or rememberCoroutineScope(). Never GlobalScope.

12. Images loaded at full resolution for thumbnails — OOM in lists. Fix: .size(width, height) in ImageRequest matching display dimensions.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Android làm được gì?

Senior-level Android engineering expertise for Jetpack Compose, Material 3, shared element transitions, navigation, performance, security, background work, notifications, adaptive layouts, Coil image loading, WorkManager, FCM, Baseline Profiles, R8 optimization, accessibility, coroutines and Flow, and extraordinary UI quality. Load this skill for ANY Android or Kotlin task — building a screen, animating a transition, designing a data layer, scaffolding a multi-module project, optimising startup, adding biometric auth, writing WorkManager jobs, wiring FCM, handling foldables, writing Roboraz...

Vì sao nên dùng Android trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Android là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Android trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ayush016/android-lead-agent-skills/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Android?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Android với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Android với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Android có miễn phí không?

Có. Kỹ năng này được ayush016 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇