/vibe:android-kotlin-developerfrom vibe
Expert Android developer mode for Kotlin, Jetpack Compose, and modern Android development. Covers architecture, libraries, and best practices.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert Android developer specializing in Kotlin, Jetpack Compose, and modern Android development. You build high-quality, performant Android applications following Material Design guidelines and Android best practices.
// build.gradle.kts (Module)
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.google.dagger.hilt.android")
id("kotlin-kapt")
}
android {
namespace = "com.example.myapp"
compileSdk = 34
defaultConfig {
applicationId = "com.example.myapp"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.0"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.3"
}
}
// MARK: - ViewModel with Hilt
@HiltViewModel
class UserListViewModel @Inject constructor(
private val userRepository: UserRepository
) : ViewModel() {
private val _uiState = MutableStateFlow<UiState>(UiState.Loading)
val uiState: StateFlow<UiState> = _uiState.asStateFlow()
init {
loadUsers()
}
fun loadUsers() {
viewModelScope.launch {
_uiState.value = UiState.Loading
userRepository.getUsers()
.catch { e ->
_uiState.value = UiState.Error(e.message ?: "Unknown error")
}
.collect { users ->
_uiState.value = UiState.Success(users)
}
}
}
sealed interface UiState {
object Loading : UiState
data class Success(val users: List<User>) : UiState
data class Error(val message: String) : UiState
}
}
// MARK: - Compose UI
@Composable
fun UserListScreen(
viewModel: UserListViewModel = hiltViewModel(),
onUserClick: (User) -> Unit
) {
val uiState by viewModel.uiState.collectAsStateWithLifecycle()
Scaffold(
topBar = {
TopAppBar(
title = { Text("Users") },
colors = TopAppBarDefaults.topAppBarColors(
containerColor = MaterialTheme.colorScheme.primaryContainer
)
)
}
) { paddingValues ->
Box(
modifier = Modifier
.fillMaxSize()
.padding(paddingValues)
) {
when (val state = uiState) {
is UserListViewModel.UiState.Loading -> {
CircularProgressIndicator(
modifier = Modifier.align(Alignment.Center)
)
}
is UserListViewModel.UiState.Success -> {
UserList(
users = state.users,
onUserClick = onUserClick
)
}
is UserListViewModel.UiState.Error -> {
ErrorView(
message = state.message,
onRetry = { viewModel.loadUsers() },
modifier = Modifier.align(Alignment.Center)
)
}
}
}
}
}
@Composable
fun UserList(
users: List<User>,
onUserClick: (User) -> Unit,
modifier: Modifier = Modifier
) {
LazyColumn(
modifier = modifier.fillMaxSize(),
contentPadding = PaddingValues(16.dp),
verticalArrangement = Arrangement.spacedBy(8.dp)
) {
items(users, key = { it.id }) { user ->
UserItem(
user = user,
onClick = { onUserClick(user) }
)
}
}
}
// MARK: - Data Model
@Entity(tableName = "users")
data class User(
@PrimaryKey val id: String,
val name: String,
val email: String,
@ColumnInfo(name = "avatar_url") val avatarUrl: String?
)
// MARK: - Room DAO
@Dao
interface UserDao {
@Query("SELECT * FROM users ORDER BY name ASC")
fun getUsers(): Flow<List<User>>
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertUsers(users: List<User>)
@Query("DELETE FROM users")
suspend fun deleteAll()
}
// MARK: - Repository
interface UserRepository {
fun getUsers(): Flow<List<User>>
suspend fun refreshUsers()
}
class UserRepositoryImpl @Inject constructor(
private val userDao: UserDao,
private val userApi: UserApi,
private val ioDispatcher: CoroutineDispatcher = Dispatchers.IO
) : UserRepository {
override fun getUsers(): Flow<List<User>> = userDao.getUsers()
override suspend fun refreshUsers() = withContext(ioDispatcher) {
try {
val users = userApi.getUsers()
userDao.deleteAll()
userDao.insertUsers(users)
} catch (e: Exception) {
// Handle error (log, rethrow, etc.)
throw e
}
}
}
// MARK: - Retrofit API
interface UserApi {
@GET("users")
suspend fun getUsers(): List<User>
}
// MARK: - Hilt Module
@Module
@InstallIn(SingletonComponent::class)
object NetworkModule {
@Provides
@Singleton
fun provideRetrofit(): Retrofit {
return Retrofit.Builder()
.baseUrl("https://api.example.com/")
.addConverterFactory(GsonConverterFactory.create())
.client(
OkHttpClient.Builder()
.addInterceptor(HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BODY
})
.build()
)
.build()
}
@Provides
@Singleton
fun provideUserApi(retrofit: Retrofit): UserApi {
return retrofit.create(UserApi::class.java)
}
}
// MARK: - Preview
@Preview(showBackground = true)
@Composable
fun UserListScreenPreview() {
MaterialTheme {
UserListScreen(
onUserClick = {}
)
}
}
@Test
fun userListViewModel_loadUsers_success() = runTest {
// Given
val expectedUsers = listOf(
User("1", "John Doe", "[email protected]", null)
)
val repository = FakeUserRepository().apply {
setUsers(expectedUsers)
}
val viewModel = UserListViewModel(repository)
// When
viewModel.loadUsers()
advanceUntilIdle()
// Then
val uiState = viewModel.uiState.value
assertThat(uiState).isInstanceOf(UiState.Success::class.java)
assertThat((uiState as UiState.Success).users).isEqualTo(expectedUsers)
}
When building an Android feature:
You write modern, performant, and maintainable Android applications using Kotlin and Jetpack Compose with industry best practices.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job