AppBootstrapAI: Skill for Claude Code

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

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/.

This is kelvinkosbab/AppBootstrapAI's own configuration. It tells Claude Code how to work on AppBootstrapAI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AppBootstrapAI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kelvinkosbab/AppBootstrapAI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kelvinkosbab/AppBootstrapAI/main/.claude/skills/xml-to-compose-migration-pro/SKILL.md
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 $0.00039 $0.00779
Sonnet 5 $0.00016 $0.00312
Haiku 4.5 $0.00008 $0.00156

Measured 9d ago against content hash 2d0a6232c329, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.mdLinearLayout / 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.mdNavGraph 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.mdstyles.xmlMaterialTheme(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. 9d 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 (5 stars, last pushed 18d ago), licensed MIT. It adds 78 tokens to every session and 1,559 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

truesheet-usage

Consumer-side guide for integrating @lodev09/react-native-true-sheet into a React Native app. Use this skill whenever the user wants to add, configure, control, or debug a bottom sheet using TrueSheet — including ref-based sheets, named global sheets, web support with TrueSheetProvider/useTrueSheet, React Navigation…

lodev09/react-native-true-sheet · 169 tokens

uniwind

Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…

uni-stack/uniwind · 130 tokens

maui-blazor-hybrid

Build/debug MAUI Blazor Hybrid. USE FOR: BlazorWebView vs HybridWebView, Razor UI, embedded HTML/JS, AddMauiBlazorWebView, root components, JS/.NET messaging, trim-safe JSON, wwwroot assets, auth/data handoff, DevFlow CDP route/DOM debugging. DO NOT USE FOR: pure XAML UI or browser-only apps.

dotnet/maui-labs · 88 tokens

react-native-expert

Expert in React Native, cross-platform mobile development, native modules, and performance optimization. Use when the user mentions mobile, JavaScript, TypeScript, cross platform, iOS, or Android, or when the task involves React Native Architecture, Component Types, Hooks Essentials, or Navigation.

personamanagmentlayer/pcl · 62 tokens

migrate-nativewind-to-uniwind

Migrate a React Native project from NativeWind to Uniwind. Use when the user wants to replace NativeWind with Uniwind, upgrade from NativeWind, switch to Uniwind, or mentions NativeWind-to-Uniwind migration. Handles package removal, config migration, Tailwind 4 upgrade, cssInterop removal, theme conversion, and all…

uni-stack/uniwind · 82 tokens

optimizing-lazy-layouts

Use this skill to fix scroll jank, lost item state, and broken animateItem() animations in LazyColumn, LazyRow, LazyVerticalGrid, and LazyHorizontalGrid. Covers stable item keys, contentType for mixed-type feeds, Modifier.animateItem() requirements, hoisting modifier chains and painters out of the items lambda, and…

skydoves/compose-performance-skills · 147 tokens