android-kotlin-compose

Audit Jetpack Compose code for race conditions, battery drain, and UI jank.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI coding agents frequently generate Jetpack Compose code that compiles but contains critical, hard-to-detect bugs including race conditions from incorrect state updates, unnecessary battery drain from non-lifecycle-aware flow collection, broken localization from hardcoded strings, and janky UI from poorly optimized lazy lists.

Core Features & Use Cases

  • 6-Point Composables Audit: Run a silent checklist on existing Compose code to catch banned antipatterns, incorrect modifier ordering, missing state hoisting, unkeyed lazy lists, and accessibility gaps.
  • Authoring Best Practices: Enforce proven rules for edge-to-edge setup, recomposition stability, LazyColumn performance, and Material 3 theming when writing new Compose UI.
  • Reference Guides: Access detailed documentation for animations, Coil image loading, accessibility standards, and performance optimization for production Compose apps.
  • Real-World Use Case: A developer can use this skill to audit a slow, janky composable screen to identify the root cause of excessive recomposition, or request a new adaptive layout that meets all modern Compose and accessibility standards.

Quick Start

Ask your AI coding agent to review your existing Compose screen for performance issues and banned antipatterns, or request it to generate a new composable that follows Material 3, edge-to-edge, and accessibility best practices.

Frequently Asked Questions about android-kotlin-compose

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

FAQPage Schema
Why does my Jetpack Compose UI have janky scrolling and excessive recomposition?

Unkeyed lazy lists and incorrect modifier ordering frequently cause janky UI in Jetpack Compose. Auditing composable code identifies these specific performance bottlenecks and enforces stability rules to deliver smooth, production-ready UI.

How do I fix race conditions and battery drain in AI-generated Kotlin Compose code?

Race conditions and battery drain in Kotlin Compose code typically arise from incorrect state updates and non-lifecycle-aware flow collection. Enforcing strict best practices for state management and lifecycle-aware collection eliminates these critical bugs.

How do I audit existing Compose code for accessibility and Material 3 compliance?

Auditing existing Compose code for accessibility and Material 3 compliance involves running a silent checklist to catch banned antipatterns, missing state hoisting, and accessibility gaps, validating your UI against modern standards.

Does this Compose performance and code audit approach support Kotlin Multiplatform projects?

Yes, this Compose performance and code audit approach fully supports Android, Kotlin Multiplatform, and Compose Multiplatform projects. It effectively reviews composable code, enforces best practices, and validates accessibility across these environments.

What is the best way to ensure edge-to-edge setup and proper state hoisting in Jetpack Compose?

The best way to ensure edge-to-edge setup and proper state hoisting in Jetpack Compose is to enforce proven authoring rules when writing new UI, guaranteeing correct state management and modern, full-screen implementations.