lang-kotlin-code-writing

Write, review, and refactor Kotlin Android app code with MVVM and Hilt.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Binh230199/ai --skill lang-kotlin-code-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lang-kotlin-code-writing
Source: https://github.com/Binh230199/ai/tree/main/.github/skills/lang-kotlin-code-writing
Command: npx skills add https://github.com/Binh230199/ai --skill lang-kotlin-code-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write, review, and refactor Kotlin code for Android app development with production-grade guidance, reducing bugs, style drift, and architecture mistakes in App-layer code.

Core Features & Use Cases

  • Kotlin Best Practices: Applies idiomatic Kotlin patterns for null safety, immutability, functions, and data modeling.
  • Android App Architecture: Guides MVVM or MVI structure, repository boundaries, Hilt dependency injection, and clean layering.
  • Coroutines and Flow: Helps design structured concurrency, StateFlow and SharedFlow usage, and safe lifecycle-aware collection.
  • Jetpack Compose and Documentation: Supports stateless composables, state hoisting, and KDoc for public APIs.
  • Use Case: Use it when creating a new ViewModel, reviewing a pull request that changes Kotlin files, or refactoring Java-style Kotlin into idiomatic Android app code.

Quick Start

Ask for a Kotlin Android app implementation, review, or refactor for the specified class or module.

Frequently Asked Questions about lang-kotlin-code-writing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write idiomatic Kotlin for Android ViewModels and repositories?

To write idiomatic Kotlin for Android ViewModels and repositories, apply null safety, immutability, structured concurrency, and Hilt dependency injection to enforce clean MVVM boundaries and reduce architecture mistakes in app-layer code.

What's the best way to refactor Java-style Kotlin into production Android code?

The best way to refactor Java-style Kotlin into production Android code involves enforcing idiomatic patterns like structured concurrency, MVVM layering, and state hoisting in Jetpack Compose to achieve null safety and pre-commit review standards.

How do I manage structured concurrency with coroutines and Flow in Android?

Managing structured concurrency with coroutines and Flow in Android requires designing proper StateFlow and SharedFlow usage alongside safe lifecycle-aware collection to ensure production-quality app-layer development and prevent scope leakage.

Does this Kotlin code review Skill work with Jetpack Compose and KDoc?

Yes, this Kotlin code review works with Jetpack Compose and KDoc by guiding stateless composables, state hoisting, and documenting public APIs to enforce null safety and immutability for production-quality Android Automotive and AOSP app modules.

When do I need to enforce MVVM boundaries and Hilt DI in Kotlin code?

You need to enforce MVVM boundaries and Hilt DI in Kotlin code when creating new ViewModels, reviewing pull requests, or refactoring repositories to prevent style drift and maintain clean architecture in production Android app development.