Android Kotlin Development

Android Kotlin Development

Guides an AI coding agent to build native Android apps in Kotlin using MVVM with Jetpack, Compose UI, Retrofit networking, Room storage and navigation.

Skill files6 files

references/

scripts/

templates/

SKILL.md101 lines
1
---
2
name: android-kotlin-development
3
description: >
4
Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for
5
modern UI, Retrofit for API calls, Room for local storage, and navigation
6
architecture.
7
---
8
9
# Android Kotlin Development
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Build robust native Android applications using Kotlin with modern architecture patterns, Jetpack libraries, and Compose for declarative UI.
22
23
## When to Use
24
25
- Creating native Android applications with best practices
26
- Using Kotlin for type-safe development
27
- Implementing MVVM architecture with Jetpack
28
- Building modern UIs with Jetpack Compose
29
- Integrating with Android platform APIs
30
31
## Quick Start
32
33
Minimal working example:
34
35
```kotlin
36
// Models
37
data class User(
38
val id: String,
39
val name: String,
40
val email: String,
41
val avatarUrl: String? = null
42
)
43
44
data class Item(
45
val id: String,
46
val title: String,
47
val description: String,
48
val imageUrl: String? = null,
49
val price: Double
50
)
51
52
// API Service with Retrofit
53
interface ApiService {
54
@GET("/users/{id}")
55
suspend fun getUser(@Path("id") userId: String): User
56
57
@PUT("/users/{id}")
58
suspend fun updateUser(
59
@Path("id") userId: String,
60
@Body user: User
61
// ... (see reference guides for full implementation)
62
```
63
64
## Reference Guides
65
66
Detailed implementations in the `references/` directory:
67
68
| Guide | Contents |
69
|---|---|
70
| [Models & API Service](references/models-api-service.md) | Models & API Service |
71
| [MVVM ViewModels with Jetpack](references/mvvm-viewmodels-with-jetpack.md) | MVVM ViewModels with Jetpack |
72
| [Jetpack Compose UI](references/jetpack-compose-ui.md) | Jetpack Compose UI |
73
74
## Best Practices
75
76
### ✅ DO
77
78
- Use Kotlin for all new Android code
79
- Implement MVVM with Jetpack libraries
80
- Use Jetpack Compose for UI development
81
- Leverage coroutines for async operations
82
- Use Room for local data persistence
83
- Implement proper error handling
84
- Use Hilt for dependency injection
85
- Use StateFlow for reactive state
86
- Test on multiple device types
87
- Follow Android design guidelines
88
89
### ❌ DON'T
90
91
- Store tokens in SharedPreferences
92
- Make network calls on main thread
93
- Ignore lifecycle management
94
- Skip null safety checks
95
- Hardcode strings and resources
96
- Ignore configuration changes
97
- Store passwords in code
98
- Deploy without device testing
99
- Use deprecated APIs
100
- Accumulate memory leaks
101

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,411 prompts

More by @OpenSourceBuffGuy

See all
Running Man Pulled Back by Semi Chibi Double prompt image

Running Man Pulled Back by Semi Chibi Double

Makes a bright studio editorial photo of a running person from a reference photo, with a 3D semi-chibi double tugging their clothes back and realistic fabric tension.

image-prompt, gpt-image, reference-image, face-reference, negative-prompt, photorealistic, editorial, chibi, 3d-render, studio-lighting, white-background, fashion, portrait, full-body, motion-blur, whimsical, vertical-format, character-consistency, action-figure, fashion-shoot, pixar-style, soft-lighting, for-photographers, for-artists, humorous

Cornflower meadow path to a misty sailboat prompt image

Cornflower meadow path to a misty sailboat

Draws a portrait-format colored-pencil scene of a cornflower meadow with a winding path leading to a misty sea, a distant sailboat and a sunset sky.

image-prompt, illustration, landscape, flowers, ocean, dreamy, pastel, golden-hour, vertical-format, nano-banana, sketch, summer, for-artists, wallpaper, soft-lighting, wide-shot, high-angle

Swordswoman faces colossal robed figure in industrial yard prompt image

Swordswoman faces colossal robed figure in industrial yard

Writes a two-scene, 20-second live-action video prompt in which a swordswoman freezes a colossal figure with realistic ice and shatters him with a finishing slash.

video-prompt, seedance, action, martial-arts, visual-effects, multi-shot, cinematic, character-consistency, timed-beats, negative-prompt, guardrails, structured-output, photorealistic, fantasy-world, japan, camera-movement, slow-motion, blue-hour, widescreen, advanced, long-form, for-filmmakers, sound-effects, creatures, warriors

Reviews

Loading reviews…

Discussion

Loading comments…