xml-to-compose-migration-pro

xml-to-compose-migration-pro is a skill for Claude Code from kelvinkosbab/AppBootstrapAI. It costs 78 tokens per session (1,559 once invoked), scanned A, original, MIT.

A review aid for moving Android screens from XML layouts and Fragments to Jetpack Compose, Android’s newer way to build user interfaces. It supports gradually changing screens while old and new UI work together.

In plain words
What is it for?
Use it to translate layouts, RecyclerViews, Fragments, navigation graphs, and existing ViewModels into Compose equivalents.
Why use it?
It helps avoid a risky full rewrite and highlights real migration problems without requiring unnecessary changes to working XML.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to translate layouts, RecyclerViews, Fragments, navigation graphs, and existing ViewModels into Compose equivalents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kelvinkosbab/appbootstrapai/xml-to-compose-migration-pro
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kelvinkosbab/AppBootstrapAI --skill xml-to-compose-migration-pro
Clone the repo
git clone --depth 1 https://github.com/kelvinkosbab/AppBootstrapAI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xml-to-compose-migration-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/xml-to-compose-migration-pro/github.svg)](https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/xml-to-compose-migration-pro)
Your own site
<a href="https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/xml-to-compose-migration-pro"><img src="https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/xml-to-compose-migration-pro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xml-to-compose-migration-pro

Your own site · 80×15
<a href="https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/xml-to-compose-migration-pro"><img src="https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/xml-to-compose-migration-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01559
Opus 5.5 $0.00031 $0.00624
Sonnet 5.5 $0.00016 $0.00312
Haiku 4.5 $0.00008 $0.00156

Measured 2mo ago against content hash 2d0a6232c329, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xml-to-compose-migration-pro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/xml-to-compose-migration-pro/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Review and assist the migration from XML-based Android UI (Fragments + layouts + RecyclerViews) to Jetpack Compose. Migration is incremental by default — ComposeView / AndroidView make it possible to ship a hybrid screen-by-screen without a big-bang rewrite. Report only genuine migration issues; don't nitpick the existing XML where it doesn't need to change.

Review process:

  1. Frame the migration scope using references/interop-strategy.md — incremental vs all-at-once, where to put interop boundaries.
  2. Translate layouts using references/layout-migration.md — LinearLayout / ConstraintLayout / FrameLayout / RelativeLayout to Compose equivalents.
  3. Translate RecyclerViews using references/recyclerview-to-lazy.md — including stable keys, item-content separation, and DiffUtil → automatic recomposition.
  4. Translate Fragments using references/fragment-to-composable.md — lifecycle ownership, ViewBinding → parameters, animations.
  5. Translate Navigation Component using references/navigation-migration.md — NavGraph XML → NavHost Kotlin DSL.
  6. Bridge ViewModels using references/viewmodel-bridge.md — existing ViewModels stay; only the View layer changes.
  7. Translate themes using references/themes-styles.md — styles.xml → MaterialTheme(colorScheme, typography, shapes).

If doing a partial review, load only the relevant reference files.

Core Instructions

  • Migrate incrementally. A full XML-to-Compose rewrite of a non-trivial app is months of work; an incremental screen-by-screen migration ships value continuously. ComposeView in an XML layout (or AndroidView in a Composable) makes it possible.
  • Existing ViewModels stay. Compose works with ViewModel + StateFlow + LiveData without changes. The migration is a View-layer concern, not a state-layer one.
  • Don't preserve XML idioms in Compose. A LinearLayout(orientation = horizontal) becomes a Row — not a Column with Modifier.fillMaxWidth().wrapContentHeight(). A literal translation produces awkward Compose.
  • Test parity before deleting XML. Snapshot tests, manual QA, or feature-flag the new screen alongside the old. Don't delete the XML in the same PR that introduces the Composable.
  • Use semantic testTag for tests, not preserved android:id values. XML view IDs (R.id.submit_button) don't carry over; Compose uses Modifier.testTag(...) and Modifier.semantics { contentDescription = ... }.
  • AndroidView { factory: ... update: ... } is for one-way binding from Compose state to a View. Don't try to round-trip — if state needs to flow back, lift it.

Read the full file on GitHub · 98 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 98 lines · 78 tokens per session scan A 2d0a6232c329

Subscribe to this mod's changes

xml-to-compose-migration-pro is a skill published in the GitHub repository kelvinkosbab/AppBootstrapAI (8 stars, last pushed yesterday), licensed MIT. It adds 78 tokens to every session and 1,559 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

xml-to-compose-migration-pro compared with skills from other repositories

xml-to-compose-migration-pro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
xml-to-compose-migration-prokelvinkosbab/AppBootstrapAISkill8yesterdayMITA78Claude Code
kmp-glassmorphism-uiAks-4125/kmp-glassmorphism-skillSkill53mo agoMITA81Claude Code, Codex
argent-react-native-app-workflowsoftware-mansion/argentSkill3.2ktodayApache-2.0A46Claude Code, Codex
mobile-automationmobile-next/mobile-mcpSkill10ktodayApache-2.0A58Claude Code, Codex
argent-react-native-optimizationsoftware-mansion/argentSkill3.2ktodayApache-2.0A71Claude Code, Codex
sceneviewsceneview/sceneviewSkill1.4ktodayApache-2.0A156Codex
argent-settings-permissionssoftware-mansion/argentSkill3.2ktodayApache-2.0A140Claude Code, Codex