compose-migration
CommunityMigrate View screens to Jetpack Compose fast.
Software Engineering#android#kotlin#jetpack compose#stateflow#ui refactor#view migration#recyclerview to compose
Authoryoufengknight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you convert an Android UI built with the classic View system (XML layouts, RecyclerView, Adapter, and typical UI components) into Jetpack Compose, reducing manual refactor effort and keeping behavior consistent.
Core Features & Use Cases
- End-to-end Compose migration workflow: From planning and dependency checks to rewriting screens and validating the result.
- Practical code templates for key UI parts: Screen creation with
@Composable, replacingsetContentViewviasetContent, and migrating list UIs fromRecyclerViewtoLazyColumn. - Common UI migration mappings: Menu (
onCreateOptionsMenu→DropdownMenu), dialogs (AlertDialog.Builder→AlertDialog), and search (SearchView→OutlinedTextField), plus StateFlow-based state management. - Migration validation checklist: Verifies Compose usage patterns (e.g.,
@Composable,collectAsState,LazyColumn) and compile success using./gradlew compileDebugKotlin. - Use Case: You’re asked to “rewrite the XX screen with Compose,” and you need a repeatable checklist and ready-to-adapt implementation snippets for the Activity, ViewModel, list rendering, and interaction UI elements.
Quick Start
Ask the Compose-migration skill to provide a step-by-step refactor plan and code template to migrate your specific View screen into a Jetpack Compose XxxScreen with StateFlow, LazyColumn, and migrated menu/dialog/search.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: compose-migration Download link: https://github.com/youfengknight/Android-Code-Skills/archive/main.zip#compose-migration Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.