android
Skill78 starsChanged 7 months agoMITView on GitHub
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.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- lgzarturo/codeconductortheir own version, first seen Sep 30, 2026
- amit-nayar/android-adb-skilltheir own version, first seen Mar 20, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
- hyperb1iss/hyperdroid-skilltheir own version, first seen Jan 28, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- hyperb1iss/hyperdroid-skill★ 40same name
- amit-nayar/android-adb-skill★ 26same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- lgzarturo/codeconductor★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 80
Every spacing value is a multiple of 4dp, referenced via AppSpacing.* tokens.
- Distinctive: line 83
Test ViewModels against in-memory fake implementations.
- Distinctive: line 92
Every image has a content description.
- Distinctive: line 100
The Bar: Every screen passes three tests before it ships:
- Distinctive: line 106
The motion test: Do transitions communicate where content came from?
- Very specific: line 118
Anti-patterns to refuse: Default grey scaffold backgrounds.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
| Task | Reference |
| Color theming, 29 roles, token hierarchy, gradients | theming-and-color.md |
| Building a new screen | compose-ui-system.md |
| Navigation with shared element transitions | shared-element-transitions.md |
| Type-safe navigation, deep links, multi-module | navigation.md |
| Animation / motion (non-shared-element) | motion-and-animation.md |
| Adaptive layouts, large screens, foldables | adaptive-layouts.md |
| Coroutines, Flow, dispatchers, cancellation | coroutines-and-flow.md |
| Room, Retrofit, offline-first data layer | data-layer.md |
| ViewModel, state, DI, architecture | architecture.md |
| Baseline Profiles, R8, recomposition perf | performance.md |
| Encryption, biometrics, cert pinning | security.md |
| WorkManager, Foreground Services, Alarms | background-work.md |
| Coil3, SubcomposeAsyncImage, caching | image-loading.md |
| FCM, notification channels, deep links | notifications.md |
| TalkBack, semantics, focus, contrast | accessibility.md |
| Unit, screenshot, Roborazzi tests | testing.md |
| Convention plugins, version catalog, modules | build-and-modules.md |
| ADB / Android MCP debugging | android-mcp.md |
| Pre-ship quality review | assets/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:
- 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."
- 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.
- 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;
Brushgradients 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
Canvasfor 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
- Module — Create with
yourapp.android.library.composeplugin.build-and-modules.md - Routes —
@Serializabledata class in:core:navigation.navigation.md - UI State — Sealed interface:
Loading,Ready(data),Error(message, canRetry).architecture.md - Actions — Sealed interface for all user interactions.
- ViewModel —
StateFlow+SharedFlow(replay=0)+SavedStateHandle.toRoute().architecture.md - Domain — UseCase → Repository interface → impl in
:core:data.data-layer.md - Composables — Public screen + private sub-composables;
AppSpacing,colorScheme,typographyonly.compose-ui-system.md - Shared elements —
sharedElement()orsharedBounds()with stable ID keys.shared-element-transitions.md - Motion — Stagger entry, spring state changes, enter/exit transitions.
motion-and-animation.md - Skeleton loading — Mirror
Readygeometry withShimmerBox.compose-ui-system.md - Adaptive — Verify on 600dp+; apply
WindowSizeClass-aware layout.adaptive-layouts.md - Accessibility — Semantics, content descriptions, focus order, 48dp targets.
accessibility.md - Security — No secrets; input validated at all external boundaries.
security.md - MCP review — Screenshot in light/dark/large font/RTL; check insets + transitions.
android-mcp.md - Tests — ViewModel unit tests + Roborazzi screenshots.
testing.md - UI excellence — Every item in
assets/ui-excellence-checklist.mdmust 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

