compose-ui

Guide Kotlin Android UI development with Jetpack Compose stateless components and unidirectional data flow.

1|Updated Sep 7, 2025
One-click install
npx skills add https://github.com/sahuadarsh0/Wallet --skill compose-ui-sahuadarsh0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compose-ui
Source: https://github.com/sahuadarsh0/Wallet/tree/main/.cursor/skills/compose-ui
Command: npx skills add https://github.com/sahuadarsh0/Wallet --skill compose-ui-sahuadarsh0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Jetpack Compose deserves clear patterns to keep UI code maintainable and testable. This guide promotes stateless Composables, a clean state flow, consistent modifiers, and a cohesive theming system to improve performance and reusability.

Core Features & Use Cases

  • Enforces unidirectional data flow by promoting stateless Composables and lifting state to callers.
  • Provides guidelines on applying Modifiers properly, remembering, and derivedStateOf for performance.
  • Recommends consistent theming with Material 3, design tokens, and previews for faster development.
  • Use Case: When refactoring a large Compose screen, apply these guidelines to simplify state management and improve testability.

Quick Start

Refactor a sample Composable to be stateless and drive state from a ViewModel.

Frequently Asked Questions about compose-ui

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

FAQPage Schema
How do I refactor a Jetpack Compose screen to use state hoisting?

State hoisting in Jetpack Compose involves building stateless Composables and lifting state to callers to enforce unidirectional data flow. This approach simplifies state management and improves UI testability.

What is the best way to manage state in Jetpack Compose for maintainable UI?

The best way to manage Jetpack Compose state is by applying unidirectional data flow with stateless components. Use clear patterns like remember, derivedStateOf, and state hoisting to ensure performance and maintainability.

Does this Compose UI guide support Material 3 theming and design tokens?

Yes, this Compose UI guide supports Material 3 theming and design tokens. It recommends applying a cohesive theming system and consistent modifiers to ensure visual consistency and faster UI development.

How do I improve Jetpack Compose performance with derivedStateOf?

Improve Jetpack Compose performance by using derivedStateOf to prevent unnecessary recompositions. This guide provides guidelines on applying derivedStateOf, remembering state properly, and using modifiers efficiently.

Can I use this guide for building reusable Composables across Android apps?

Yes, you can use this guide for building reusable Composables across Android apps. It is applicable to screen-level and reusable components, enforcing stateless patterns and consistent theming for better reusability.

Why does my Jetpack Compose UI have inconsistent modifiers and theming?

Jetpack Compose UI inconsistencies often arise from improper modifier usage and lacking a cohesive theming system. Applying consistent Material 3 design tokens and proper modifier guidelines resolves visual inconsistencies.