Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

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.

Repozytorium
guild ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

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

write the Android screen for X in Kotlinimplement the Compose screen for Xauthor the Android Fragment for Xbuild the Android feature XKotlin code for Xadd the Android-side implementation of X
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

  1. What you do
  2. Output shape
  3. Anti-patterns
  4. Handoff
Sekcje z nagłówków SKILL.md, w oryginale · 39 linii, 302 słów
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ą.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.