compose-kotlin-agent-skills

Fix production bugs in AI-generated Kotlin and Jetpack Compose code.

34|8|Updated May 21, 2026
One-click install
npx skills add https://github.com/haidrrrry/compose-kotlin-agent-skills --skill compose-kotlin-agent-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compose-kotlin-agent-skills
Source: https://github.com/haidrrrry/compose-kotlin-agent-skills/tree/main
Command: npx skills add https://github.com/haidrrrry/compose-kotlin-agent-skills --skill compose-kotlin-agent-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

AI coding agents generate Kotlin and Jetpack Compose code that compiles but ships subtle production bugs: race conditions from naked state assignment, battery drain from incorrect Flow collection in composables, broken localization from hardcoded strings, and recomposition storms from missing list keys. This skill kit provides authoritative, CI-validated markdown instructions that agents read before writing code, enforcing 2026 Android toolchain standards and strict MVI guardrails.

Core Features & Use Cases

  • Strict MVI Guardrails: Enforces atomic state update patterns, sealed UiState/UiEvent/UiEffect classes, and explicitly bans GlobalScope, naked state assignment, and mutableStateListOf in ViewModels.
  • Banned Antipatterns Lookup: Master table of 25+ AI-hallucinated patterns with side-by-side WRONG/RIGHT fixes covering Compose, coroutines, Hilt, Room, Navigation 3, and performance.
  • Modular Sub-Skills: Three focused playbooks for architecture, Compose UI (with REVIEW MODE audits), and testing, loaded on demand based on task domain.
  • 20 Reference Modules: Deep dives on KMP/CMP, CameraX/ML Kit, Paging 3, DataStore, Gradle build logic, and release checklists with pinned 2026 dependency versions.
  • 27 Agent Install Guides: Setup instructions for Cursor, Claude Code, Codex, Copilot, Gemini, Windsurf, and 21 other coding agents.

Quick Start

Use compose-kotlin-agent-skills to structure a ViewModel with UiState for my Compose feature using atomic StateFlow updates and collectAsStateWithLifecycle.

Frequently Asked Questions about compose-kotlin-agent-skills

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

FAQPage Schema
Why does my AI-generated Jetpack Compose code cause recomposition storms and battery drain?

AI-generated Jetpack Compose code often causes battery drain and recomposition storms due to incorrect Flow collection in composables and missing list keys. This skill provides CI-validated markdown instructions enforcing strict MVI guardrails and banned antipatterns to prevent these production bugs.

How do I prevent race conditions in Kotlin ViewModel StateFlow updates from AI coding agents?

To prevent race conditions in Kotlin ViewModel StateFlow updates, you must enforce atomic state update patterns and ban naked state assignment. This skill provides AI agents with strict MVI guardrails and lookup tables of wrong versus right coroutine patterns to ensure safe state management.

Does this skill work with Kotlin Multiplatform and Compose Multiplatform development tasks?

Yes, this skill explicitly applies to Android, Kotlin Multiplatform, and Compose Multiplatform development tasks. It includes 20 reference modules with deep dives on KMP and CMP architecture, providing pinned 2026 dependency versions and CI-validated instructions for 27 supported AI coding agents.

What is the best way to fix AI-hallucinated Kotlin Hilt and Room dependency injection patterns?

The best way to fix AI-hallucinated Kotlin Hilt and Room patterns is using a banned antipatterns lookup table. This skill provides a master table of 25 plus side-by-side WRONG and RIGHT fixes covering Hilt, Room, Navigation 3, and performance optimization for AI coding agents.

How to set up Cursor or Claude Code for Android Kotlin MVI architecture generation?

To set up Cursor or Claude Code for Android Kotlin MVI architecture, use the provided 27 agent install guides. This skill gives AI coding agents strict MVI guardrails, sealed UiState classes, and modular sub-skills for ViewModel architecture and Compose UI implementation loaded on demand.

Can I use this skill to audit existing Compose UI code for hardcoded strings and broken localization?

Yes, you can audit existing Compose UI code using the Compose UI playbook with REVIEW MODE. This skill enforces strict MVI guardrails and provides antipattern lookups to identify hardcoded strings causing broken localization, recomposition storms, and incorrect Flow collection.