
Coil Compose
This is a solid reference for implementing Coil image loading in Jetpack Compose apps. It covers the three main APIs (AsyncImage, rememberAsyncImagePainter, and SubcomposeAsyncImage) with clear guidance on when to use each. The warnings are genuinely useful, especially the note that rememberAsyncImagePainter loads images at original dimensions by default, which can wreck performance if you're not careful. The skill steers you toward AsyncImage for most cases and explicitly warns against using SubcomposeAsyncImage in lazy lists. If you're loading images from URLs in Compose, this gives you the patterns you need without having to dig through documentation.
- skills.sh installs
- 464
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill coil-compose --agent claude-codeInstalls into .claude/skills of the current project.
Files
Coil for Jetpack Compose
Instructions
When implementing image loading in Jetpack Compose, use Coil (Coroutines Image Loader). It is the recommended library for Compose due to its efficiency and seamless integration.
1. Primary Composable: AsyncImage
Use AsyncImage for most use cases. It handles size resolution automatically and supports standard Image parameters.
AsyncImage(
model = ImageRequest.Builder(LocalContext.current)
.data("https://example.com/image.jpg")
.crossfade(true)
.build(),
placeholder = painterResource(R.drawable.placeholder),
error = painterResource(R.drawable.error),
contentDescription = stringResource(R.string.description),
contentScale = ContentScale.Crop,
modifier = Modifier.clip(CircleShape)
)
2. Low-Level Control: rememberAsyncImagePainter
Use rememberAsyncImagePainter only when you need a Painter instead of a composable (e.g., for Canvas or Icon) or when you need to observe the loading state manually.
Sponsors
Details
- Repository
- github.com/new-silvermoon/awesome-android-agent-skills
- Categories
- AI & Agent Building, Debugging, Mobile Development
- First seen
- Jun 3, 2026
More from new-silvermoon/awesome-android-agent-skills
All 17- Xml To Compose Migration451
- Compose Navigation438
- Rxjava To Coroutines Migration347
- Android Testing869
- Gradle Build Performance809
- Compose Ui760
- Android Gradle Logic738
- Android Architecture701
- Kotlin Concurrency Expert684
- Compose Performance Audit596
- Android Emulator Skill578
- Android Viewmodel576
- Android Coroutines569
- Android Accessibility560
- Android Data Layer531
- Android Retrofit495