compose

Guides writing correct, performant Jetpack Compose and Compose Multiplatform UI code.

1|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/chmonya-inc/dnd-manager --skill compose-chmonya-inc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: compose
Source: https://github.com/chmonya-inc/dnd-manager/tree/main/.agents/skills/compose
Command: npx skills add https://github.com/chmonya-inc/dnd-manager --skill compose-chmonya-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing Compose UI involves subtle pitfalls around state management, recomposition, modifier ordering, side effects, and platform differences that cause bugs and performance issues. This Skill provides source-verified guidance for Jetpack Compose and Compose Multiplatform development across Android, Desktop, iOS, and Web. ## Core Features & Use Cases - Topic-Specific References: Deep reference files covering state management, modifiers, side effects, navigation, animation, theming, accessibility, performance, focus navigation, and deprecated API migrations. - Design-to-Code Workflow: A 5-step methodology for decomposing Figma frames or screenshots into composable trees, mapping design tokens to MaterialTheme, spacing, shadows, and gradients. - Source Code Verification: Two-tier verification against live androidx/androidx and JetBrains/compose-multiplatform-core sources via MCP tools or raw GitHub URLs, plus Google's Android Knowledge Base for best practices. - Use Case: When a user says "my compose screen is slow" or asks to implement a design, the Skill consults the relevant reference (e.g., performance.md or design-to-compose.md), flags anti-patterns, and produces minimal correct code. ## Quick Start Ask the assistant to review or build a Compose UI, for example: implement this Figma card design as a Compose Multiplatform composable with proper theming and accessibility.

Frequently Asked Questions about compose

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

FAQPage Schema
How do I fix slow recomposition in Jetpack Compose?▼

Slow recomposition is addressed by using stable types, avoiding allocations in composable bodies, and deferring state reads to the latest phase with lambda-based modifiers like graphicsLayer. The performance reference covers stability, baseline profiles, and benchmarking.

How do I convert a Figma design to Compose code?▼

Use the 5-step decomposition methodology: identify the root layout, split into visual sections, pick layout types per section, extract visual properties, and map elements to Material 3 components. Design tokens map to MaterialTheme colorScheme, typography, and shapes.

Does Compose Multiplatform share UI code across Android, iOS, Desktop, and Web?▼

Compose Multiplatform shares the runtime but not platform APIs. UI code in commonMain is portable, while platform-specific APIs like LocalContext, BackHandler, and Window require expect/actual declarations or conditional source sets.

What is the difference between animate*AsState, AnimatedVisibility, and AnimatedContent?▼

animate*AsState animates a single property driven by state, AnimatedVisibility handles enter/exit transitions for showing or hiding content, and AnimatedContent swaps between different composables with transitions. updateTransition coordinates multiple properties from one state.

Why does modifier order matter in Compose?▼

Modifiers apply left-to-right, each wrapping what follows, so padding before background produces different visuals than background before padding. Placement of clickable relative to padding also changes the touch target size.

Which deprecated Compose APIs should I migrate away from?▼

Key migrations include string routes to type-safe @Serializable routes, accompanist pager to HorizontalPager, accompanist swiperefresh to PullToRefreshBox, animateItemPlacement to animateItem, and collectAsState to collectAsStateWithLifecycle.