Xml To Compose Migration
Converts Android XML layouts to idiomatic Jetpack Compose, with a layout and widget mapping reference.
- CCM score
- 54 of 100
- skills.sh installs
- 468
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the migration workflow: analyzing XML, planning, converting layouts, migrating state, and verifying output
- Includes container and widget mapping tables, an attribute-to-Modifier table, and worked examples for RecyclerView, ConstraintLayout, and include/merge
- Covers incremental adoption via
ComposeViewandAndroidViewinterop for mixed View and Compose screens - Designed for teams moving Views to Compose who need a reference for conversion patterns
Install
$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill xml-to-compose-migration -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
XML to Compose Migration
Overview
Systematically convert Android XML layouts to idiomatic Jetpack Compose, preserving functionality while embracing Compose patterns. This skill covers layout mapping, state migration, and incremental adoption strategies.
Workflow
1. Analyze the XML Layout
- Identify the root layout type (
ConstraintLayout,LinearLayout,FrameLayout, etc.). - List all View widgets and their key attributes.
- Map data binding expressions (
@{}) or view binding references. - Identify custom views that need special handling.
- Note any
include,merge, orViewStubusage.
2. Plan the Migration
- Decide: Full rewrite or incremental migration (using
ComposeView/AndroidView). - Identify state sources (ViewModel, LiveData, savedInstanceState).
- List reusable components to extract as separate Composables.
- Plan navigation integration if using Navigation component.
3. Convert Layouts
Apply the layout mapping table below to convert each View to its Compose equivalent.
4. Migrate State
Details
- Repository
- github.com/new-silvermoon/awesome-android-agent-skills
- Categories
- Mobile Apps, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the XML to Compose migration skill do for an Android project?
It converts Android XML layouts to idiomatic Jetpack Compose, mapping containers like LinearLayout, FrameLayout and ConstraintLayout and widgets like TextView and RecyclerView to their Compose equivalents. It also covers migrating state from LiveData and findViewById to Compose state.
How do I install the xml-to-compose-migration skill?
Run npx -y skills add new-silvermoon/awesome-android-agent-skills --skill xml-to-compose-migration -y in your project. Once installed, the agent can use the skill to plan and carry out a migration from Views to Compose.
When should an agent use this skill?
Use it when you ask to migrate Views to Compose, convert XML to Composables, or modernize UI from the View system to Compose. It also supports incremental migration using ComposeView and AndroidView interop.
Where does this skill sit in the Mobile Apps category?
It is listed under Mobile Apps on Claude Marketplaces, alongside skills such as vercel-react-native-skills, animate-expo and write-swift. Its focus is narrower than those, centering on converting Android XML layouts to Jetpack Compose.
More from new-silvermoon/awesome-android-agent-skills
All 17- Compose Navigation436
- Rxjava To Coroutines Migration364
- Android Testing898
- Gradle Build Performance835
- Compose Ui796
- Android Gradle Logic763
- Android Architecture732
- Kotlin Concurrency Expert709
- Compose Performance Audit624
- Android Accessibility607
- Android Emulator Skill606
- Android Viewmodel602
- Android Coroutines600
- Android Data Layer553
- Android Retrofit517
- Coil Compose488
Similar to Xml To Compose Migration
More Mobile Appsmigrate-xml-views-to-jetpack-composeandroid/skills2.9K installsStep-by-step workflow that migrates one Android XML layout to Jetpack Compose with visual parity checks.
android-jetpack-composethebushidocollective/han2.3K installsGuidance for building declarative Android UIs with Jetpack Compose and state management.
android-jetpack-compose-expertsickn33/agentic-awesome-skills163 installsExpert Compose guidance for state management, type-safe navigation, and recomposition performance on Android.
compose-navigationnew-silvermoon/awesome-android-agent-skills436 installsNavigation 3 skill for Jetpack Compose covering state-driven back stacks, ViewModel scoping, and Navigation Compose migration.
compose-uinew-silvermoon/awesome-android-agent-skills796 installsBest practices for Jetpack Compose UI covering state hoisting, recomposition performance, and theming.
mobile-android-designwshobson/agents27K installsPractical Material Design 3 and Jetpack Compose guidance for building adaptive, accessible native Android interfaces.