home / skills / partme-ai / full-stack-skills / android-kotlin
This skill provides comprehensive guidance for Android development with Kotlin, covering activities, fragments, lifecycle, navigation, and UI components to
npx playbooks add skill partme-ai/full-stack-skills --skill android-kotlinReview the files below or copy the command above to add this skill to your agents.
---
name: android-kotlin
description: Provides comprehensive guidance for Android development with Kotlin including activities, fragments, views, lifecycle, navigation, and Android app development. Use when the user asks about Android Kotlin, needs to create Android applications, implement Android components, or work with Kotlin in Android.
license: Complete terms in LICENSE.txt
---
## When to use this skill
Use this skill whenever the user wants to:
- [待完善:根据具体工具添加使用场景]
## How to use this skill
[待完善:根据具体工具添加使用指南]
## Best Practices
[待完善:根据具体工具添加最佳实践]
## Keywords
[待完善:根据具体工具添加关键词]
This skill provides practical, hands-on guidance for Android app development using Kotlin. It covers core topics like activities, fragments, views, lifecycle management, navigation, and common app architecture patterns. The guidance focuses on clear examples, implementation patterns, and debugging tips to accelerate development. Use it to learn or solve real implementation problems in Kotlin-based Android projects.
The skill inspects the developer's intent and code context to offer targeted advice: API usage, lifecycle handling, UI composition, navigation, and architecture choices. It provides step-by-step implementation suggestions, sample code snippets, and common pitfalls to avoid. Where appropriate, it suggests modern libraries and patterns (Jetpack components, ViewModel, LiveData/Flow, Navigation, Hilt) and explains trade-offs. It adapts recommendations for app types such as single-activity + fragments or multi-activity approaches.
Should I use fragments or multiple activities?
Prefer a single-activity with fragments for most apps to centralize navigation and reduce lifecycle complexity; choose multiple activities when strict process isolation or separate tasks are required.
When to use LiveData vs StateFlow?
Use StateFlow for Kotlin-first, coroutine-based architectures and better interoperability with flows; LiveData is fine for simple ViewModel-to-UI bindings and legacy code.