mobile-android-kotlin
/mobile-android-kotlin
Pisze idiomatyczny kod Kotlin dla Androida w Jetpack Compose lub systemie View, z korutynami, Flow, StateFlow i bezpieczną obsługą kontekstu.
- Autor
- lookatitude ↗
- Repozytorium
- guild ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pisze idiomatyczny kod Kotlin dla Androida w Jetpack Compose lub systemie View, z korutynami, Flow, StateFlow i bezpieczną obsługą kontekstu.
Wyzwalacze z opisu
Oryginalny opis (EN)
Authors idiomatic Kotlin for Android (Jetpack Compose or View system, chosen by fit), with structured coroutines, Flow / StateFlow, and leak-safe context handling. Output: Kotlin source plus Gradle / manifest notes. Pulled by the `mobile` specialist. TRIGGER: "write the Android screen for X in Kotlin", "implement the Compose screen for X", "author the Android Fragment for X", "build the Android feature X", "Kotlin code for X", "add the Android-side implementation of X". DO NOT TRIGGER for: iOS Swift code (use `mobile-ios-swift`), React Native / cross-platform (use `mobile-react-native`), mobil
Jak działa
- What you do
- Output shape
- Anti-patterns
- Handoff
Podgląd SKILL.md
--- name: mobile-android-kotlin description: Authors idiomatic Kotlin for Android (Jetpack Compose or View system, chosen by fit), with structured coroutines, Flow / StateFlow, and leak-safe context handling. Output: Kotlin source plus Gradle / manifest notes. Pulled by the `mobile` specialist. TRIGGER: "write the Android screen for X in Kotlin", "implement the Compose screen for X", "author the Android Fragment for X", "build the Android feature X", "Kotlin code for X", "add the Android-side implementation of X". DO NOT TRIGGER for: iOS Swift code (use `mobile-ios-swift`), React Native / cross-platform (use `mobile-react-native`), mobile performance profiling (use `mobile-performance-tuning`), backend API shape (backend-api-contract), design system tokens (frontend-design), CI / Play Store release wiring (devops-ci-cd-pipeline). when_to_use: The parent `mobile` specialist pulls this skill when the task requires native Android implementation in Kotlin. Also fires on explicit user request. type: specialist --- # mobile-android-kotlin Idiomatic Kotlin, structured concurrency via scoped coroutines, lifecycle-aware flows. ## What you do Write Kotlin that respects Android lifecycles. Prefer Jetpack Compose for new UI; use the View system when interop, legacy screens, or custom drawing require it. Coroutines with proper scope (never `GlobalScope`) and Flow / StateFlow for reactive streams. - Scope coroutines to `viewModelScope`, `lifecycleScope`, or `CoroutineScope(SupervisorJob() + dispatcher)` — never leak. - Use `StateFlow` for UI state, `SharedFlow` for events; `LiveData` only when Java interop demands. - Hold application context in singletons; never capture activity context in long-lived objects. - Model UI state as a single immutable data class — one source of truth per screen. - Use `Result` / sealed error types over exceptions for expected failures. - Handle configuration changes correctly — ViewModel survives rotation. ## Output shape Kotlin source plus build notes: 1. **Source** — one file per logical unit; follow Kotlin coding conventions. 2. **Previews / tests** — `@Preview` for Compose, instrumentation / unit tests for logic. 3. **Gradle notes** — dependencies added, minSdk / targetSdk impact, ProGuard / R8 rules. 4. **Manifest** — any permissions, content providers, services added. 5. **Accessibility** — TalkBack content descriptions, touch target sizes, contrast checks. ## Anti-patterns - `GlobalScope.launch` — leaks coroutines beyond any lifecycle. - Misusing LiveData (`postValue` in tight loops) or exposing mutable StateFlow. - Capturing activity context in a singleton or static field — guaranteed leak. - Blocking the main thread with `runBlocking` or synchronous network calls. - `!!` non-null assertion on values that can legitimately be null. - Massive activities / fragments — extract ViewModels and repository layers. ## Handoff Return the Kotlin source paths and Gradle / manifest notes to the invoking `mobile` specialist. iOS parity chains into `mobile-ios-swift`; cross-platform into `mobile-react-native`. Performance work lives in `mobile-performance-tuning`. This skill does not dispatch.
Pliki w paczce (2)
- SKILL.md 3 KB
- evals.json 1 KB
Wersje
W bazie nie ma innych skilli o nazwie mobile-android-kotlin.
Migawka bazy z 28.10.2026 · wersja paczki b20dcae7be4a (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90mobile-ios-swift
Pisze idiomatyczny kod Swift dla iOS z Swift Concurrency i izolacją głównego aktora, bez wymuszonych rozpakowań. - 90mobile-react-native
Pisze komponenty React Native i Expo w TypeScript, z obsługą platform i minimalnym ruchem przez most JS. - 90native-mobile-developer
Buduje natywne aplikacje: iOS w Swift i SwiftUI oraz Android w Kotlin i Jetpack Compose, w tym API platformowe, widżety, wymagania App Store i Play Store, wydajność i cykl życia. - 100kotlin-android
Pomaga budować i naprawiać natywne aplikacje Android w Kotlinie i Jetpack Compose w warstwowej architekturze UDF: ViewModel, StateFlow, Hilt, Room, Retrofit, coroutines i Navigation. - 100senior-mobile
Wspiera tworzenie aplikacji mobilnych na iOS (Swift, SwiftUI), Android (Kotlin, Compose), React Native i Flutter: scaffolding, nawigacja Expo Router, offline-first, wydajność i publikacja w App Store. - 90android-kotlin-coroutines
Pomaga w operacjach asynchronicznych w aplikacjach na Androida z użyciem korutyn Kotlina, Flow i StateFlow oraz w zarządzaniu współbieżnością.