Skip to content
Back to skills

Android Compose Migration

ASecurity

Start with one small, leaf XML layout rather than migrating the whole app. 1. **Identify the candidate.** Prefer a shallow layout with few custom Views and no complex `RecyclerView` adapter. 2. **Analyze the XML.** Inventory every View, layout relationship, data binding, click listener, style/color, and custom View. Mark custom Views that will need `AndroidView`. 3. **Create a View-to-Compose checklist and get approval.** For example: `TextView` → `Text`, `ImageView` → `Image`, `Button` → `Bu...

  • 584 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
development

Works with

  • cli

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill android-compose-migration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Android Compose Migration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Android Compose Migration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-android-compose-migration-agent-skills-standard/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-android-compose-migration-agent-skills-standard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Starting an XML-to-Compose migration

Start with one small, leaf XML layout rather than migrating the whole app.

1. **Identify the candidate.** Prefer a shallow layout with few custom Views and no complex `RecyclerView` adapter.
2. **Analyze the XML.** Inventory every View, layout relationship, data binding, click listener, style/color, and custom View. Mark custom Views that will need `AndroidView`.
3. **Create a View-to-Compose checklist and get approval.** For example: `TextView` → `Text`, `ImageView` → `Image`, `Button` → `Button`, `LinearLayout` → `Column`/`Row`, and `RecyclerView` → `LazyColumn`/`LazyRow`.
4. **Capture a baseline screenshot** of the existing screen for later visual comparison.
5. **Check Compose setup.** Inspect `build.gradle.kts` or `libs.versions.toml` for the Compose BOM/compiler and add only missing dependencies.
6. **Map the required theme surface.** Recreate only the colors, typography, shapes, and dimensions used by this layout; do not migrate the entire app theme.
7. **Implement the composable.** Preserve spacing, constraints, accessibility, state, and events. Use `AndroidView` for an unavoidable legacy/custom View, and add a `@Preview` for each new Composable.
8. **Choose the integration boundary.** Host the new UI in the existing Fragment/Activity with `ComposeView`, or host remaining legacy Views inside Compose with `AndroidView`.
9. **Validate.** Compare the baseline with the Compose Preview/emulator, then run `./gradlew build` and check interactions, state, accessibility, and configuration changes.
10. **Clean up only after replacement is verified.** Delete the XML and legacy tests only when no references remain; confirm there are no broken resource references.

The first concrete deliverable should therefore be the candidate layout analysis plus the View→Composable mapping checklist, followed by baseline capture and an approved migration plan.

Files in this skill

  • eval-1.baseline.md1.8 KB
  • eval-1.with-skill.md1.9 KB
  • eval-2.baseline.md1.8 KB
  • eval-2.with-skill.md1.9 KB
  • eval-3.baseline.md1.5 KB
  • eval-3.with-skill.md1.5 KB
  • trigger-1.md82 B
  • trigger-2.md115 B
  • trigger-3.md111 B
  • trigger-4.md113 B
  • trigger-5.md100 B
  • trigger-6.md104 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.