
Xml To Compose Migration
Converts Android XML layouts to Jetpack Compose with systematic mappings for every common widget and container. Handles the full workflow from analyzing ConstraintLayouts and LinearLayouts through state migration and testing. The comprehensive reference tables map XML attributes to Compose modifiers (layout_weight to weight(), visibility to conditional composition) and cover RecyclerView to LazyColumn, EditText to TextField with state hoisting, and interop patterns for incremental migration. Especially useful when you're staring at a complex ConstraintLayout or nested LinearLayouts and need the Compose equivalent without guessing. The attribute mapping alone saves time on every migration.
- skills.sh installs
- 451
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill xml-to-compose-migration --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/new-silvermoon/awesome-android-agent-skills
- Categories
- AI & Agent Building, Mobile Development
- First seen
- Jun 3, 2026
More from new-silvermoon/awesome-android-agent-skills
All 17- 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
- Coil Compose464