Compose Multiplatform Patterns
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
Convert Android XML layouts to Jetpack Compose. An agent skill from Moustachauve/WLED-Android.
$ npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Moustachauve/WLED-Android xml-to-compose-migration --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/xml-to-compose-migration .claude/skills/xml-to-compose-migration && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "xml-to-compose-migration" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/xml-to-compose-migration into .claude/skills/xml-to-compose-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xml-to-compose-migration", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/xml-to-compose-migrationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Moustachauve/WLED-Android xml-to-compose-migration --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/xml-to-compose-migration .agents/skills/xml-to-compose-migration && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "xml-to-compose-migration" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/xml-to-compose-migration into .agents/skills/xml-to-compose-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xml-to-compose-migration", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Moustachauve/WLED-Android xml-to-compose-migration --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/xml-to-compose-migration .cursor/skills/xml-to-compose-migration && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "xml-to-compose-migration" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/xml-to-compose-migration into .cursor/skills/xml-to-compose-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xml-to-compose-migration", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Moustachauve/WLED-Android.git --path .github/skills/xml-to-compose-migration--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Moustachauve/WLED-Android xml-to-compose-migration --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/xml-to-compose-migration .gemini/skills/xml-to-compose-migration && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "xml-to-compose-migration" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/xml-to-compose-migration into .gemini/skills/xml-to-compose-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xml-to-compose-migration", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Moustachauve/WLED-Android xml-to-compose-migrationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/xml-to-compose-migration .github/skills/xml-to-compose-migration && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "xml-to-compose-migration" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/xml-to-compose-migration into .github/skills/xml-to-compose-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xml-to-compose-migration", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Moustachauve/WLED-Android xml-to-compose-migration --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/xml-to-compose-migration .opencode/skills/xml-to-compose-migration && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "xml-to-compose-migration" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/xml-to-compose-migration into .opencode/skills/xml-to-compose-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xml-to-compose-migration", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
xml-to-compose-migrationConvert Android XML layouts to Jetpack Compose. An agent skill from Moustachauve/WLED-Android.
XML To Compose Migration is an agent skill from Moustachauve/WLED-Android. Convert Android XML layouts to Jetpack Compose. Use when asked to migrate Views to Compose, convert XML to Composables, or modernize UI from View system to Compose.
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile, covering Android development. It works with Jetpack Compose and Android. The repository describes itself as: Native Android application for WLED. The licence is Apache-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 7e164a8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin and xml).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
developer.android.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
XML To Compose Migration loads about 2.6k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 522 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Moustachauve/WLED-Android at commit 7e164a8, republished under its Apache-2.0 licence (© Moustachauve). 522 words, ~2,553 tokens.
.claude/skills/xml-to-compose-migration/SKILL.md (or your agent's skills folder).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.
ConstraintLayout, LinearLayout, FrameLayout, etc.).@{}) or view binding references.include, merge, or ViewStub usage.ComposeView/AndroidView).Apply the layout mapping table below to convert each View to its Compose equivalent.
LiveData observation to StateFlow collection or observeAsState().findViewById / ViewBinding with Compose state.| XML Layout | Compose Equivalent | Notes |
|---|---|---|
LinearLayout (vertical) | Column | Use Arrangement and Alignment |
LinearLayout (horizontal) | Row | Use Arrangement and Alignment |
FrameLayout | Box | Children stack on top of each other |
ConstraintLayout | ConstraintLayout (Compose) | Use createRefs() and constrainAs |
RelativeLayout | Box or ConstraintLayout | Prefer Box for simple overlap |
ScrollView | Column + Modifier.verticalScroll() | Or use LazyColumn for lists |
HorizontalScrollView | Row + Modifier.horizontalScroll() | Or use LazyRow for lists |
RecyclerView | LazyColumn / LazyRow / LazyGrid | Most common migration |
ViewPager2 | HorizontalPager | From accompanist or Compose Foundation |
CoordinatorLayout | Custom + Scaffold | Use TopAppBar with scroll behavior |
NestedScrollView | Column + Modifier.verticalScroll() | Prefer Lazy variants |
| XML Widget | Compose Equivalent | Notes |
|---|---|---|
TextView | Text | Use style → TextStyle |
EditText | TextField / OutlinedTextField | Requires state hoisting |
Button | Button | Use onClick lambda |
ImageView | Image | Use painterResource() or Coil |
ImageButton | IconButton | Use Icon inside |
CheckBox | Checkbox | Requires checked + onCheckedChange |
RadioButton | RadioButton | Use with Row for groups |
Switch | Switch | Requires state hoisting |
ProgressBar (circular) | CircularProgressIndicator | |
ProgressBar (horizontal) | LinearProgressIndicator | |
SeekBar | Slider | Requires state hoisting |
Spinner | DropdownMenu + ExposedDropdownMenuBox | More complex pattern |
CardView | Card | From Material 3 |
Toolbar | TopAppBar | Use inside Scaffold |
BottomNavigationView | NavigationBar | Material 3 |
FloatingActionButton | FloatingActionButton | Use inside Scaffold |
Divider | HorizontalDivider / VerticalDivider | |
Space | Spacer | Use Modifier.size() |
| XML Attribute | Compose Modifier/Property |
|---|---|
android:layout_width="match_parent" | Modifier.fillMaxWidth() |
android:layout_height="match_parent" | Modifier.fillMaxHeight() |
android:layout_width="wrap_content" | Modifier.wrapContentWidth() (usually implicit) |
android:layout_weight | Modifier.weight(1f) |
android:padding | Modifier.padding() |
android:layout_margin | Modifier.padding() on parent, or use Arrangement.spacedBy() |
android:background | Modifier.background() |
android:visibility="gone" | Conditional composition (don't emit) |
android:visibility="invisible" | Modifier.alpha(0f) (keeps space) |
android:clickable | Modifier.clickable { } |
android:contentDescription | Modifier.semantics { contentDescription = "" } |
android:elevation | Modifier.shadow() or component's elevation param |
android:alpha | Modifier.alpha() |
android:rotation | Modifier.rotate() |
android:scaleX/Y | Modifier.scale() |
android:gravity | Alignment parameter or Arrangement |
android:layout_gravity | Modifier.align() |
<!-- XML -->
<LinearLayout android:orientation="horizontal">
<View android:layout_weight="1" />
<View android:layout_weight="2" />
</LinearLayout>// Compose
Row(modifier = Modifier.fillMaxWidth()) {
Box(modifier = Modifier.weight(1f))
Box(modifier = Modifier.weight(2f))
}<!-- XML -->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent" />// Compose
LazyColumn(modifier = Modifier.fillMaxSize()) {
items(items, key = { it.id }) { item ->
ItemRow(item = item, onClick = { onItemClick(item) })
}
}<!-- XML with Data Binding -->
<EditText
android:text="@={viewModel.username}"
android:hint="@string/username_hint" />// Compose
val username by viewModel.username.collectAsState()
OutlinedTextField(
value = username,
onValueChange = { viewModel.updateUsername(it) },
label = { Text(stringResource(R.string.username_hint)) },
modifier = Modifier.fillMaxWidth()
)<!-- XML -->
<androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/title"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/subtitle"
app:layout_constraintTop_toBottomOf="@id/title"
app:layout_constraintStart_toStartOf="@id/title" />
</androidx.constraintlayout.widget.ConstraintLayout>// Compose
ConstraintLayout(modifier = Modifier.fillMaxWidth()) {
val (title, subtitle) = createRefs()
Text(
text = "Title",
modifier = Modifier.constrainAs(title) {
top.linkTo(parent.top)
start.linkTo(parent.start)
}
)
Text(
text = "Subtitle",
modifier = Modifier.constrainAs(subtitle) {
top.linkTo(title.bottom)
start.linkTo(title.start)
}
)
}<!-- XML: layout_header.xml -->
<merge>
<ImageView android:id="@+id/avatar" />
<TextView android:id="@+id/name" />
</merge>
<!-- Usage -->
<include layout="@layout/layout_header" />// Compose: Extract as a reusable Composable
@Composable
fun HeaderSection(
avatarUrl: String,
name: String,
modifier: Modifier = Modifier
) {
Row(modifier = modifier) {
AsyncImage(model = avatarUrl, contentDescription = null)
Text(text = name)
}
}
// Usage
HeaderSection(avatarUrl = user.avatar, name = user.name)<!-- In your XML layout -->
<androidx.compose.ui.platform.ComposeView
android:id="@+id/compose_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />// In Fragment/Activity
binding.composeView.setContent {
MaterialTheme {
MyComposable()
}
}// Use AndroidView for Views that don't have Compose equivalents
@Composable
fun MapViewComposable(modifier: Modifier = Modifier) {
AndroidView(
factory = { context ->
MapView(context).apply {
// Initialize the view
}
},
update = { mapView ->
// Update the view when state changes
},
modifier = modifier
)
}// Before: Observing in Fragment
viewModel.uiState.observe(viewLifecycleOwner) { state ->
binding.title.text = state.title
}
// After: Collecting in Compose
@Composable
fun MyScreen(viewModel: MyViewModel = hiltViewModel()) {
val uiState by viewModel.uiState.collectAsStateWithLifecycle()
Text(text = uiState.title)
}// Before: XML + setOnClickListener
binding.submitButton.setOnClickListener {
viewModel.submit()
}
// After: Lambda in Compose
Button(onClick = { viewModel.submit() }) {
Text("Submit")
}include or merge left)© Moustachauve, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/xml-to-compose-migration of Moustachauve/WLED-Android.
Open the folder on GitHubat commit 7e164a8
We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in Moustachauve/WLED-Android, which our catalogue first saw on October 7, 2026.
XML To Compose Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| XML To Compose Migration this skillMoustachauve/WLED-Android | 169 | 2 repos | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Compose Multiplatform Patternsmonta-app/ocpp-emulator | 180 | 5 repos | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Android Developmentdpconde/claude-android-skill | 337 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Stylesarindamxd/camerax-android | 132 | 4 repos | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Benchmarkandroidx/androidx | 6.1k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Mobile Android Designopenvetta/open-vetta | 291 | 3 repos | ~950 | Automated safety check: Pass | Apache-2.0 |
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
dpconde/claude-android-skill
Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.
arindamxd/camerax-android
A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.
androidx/androidx
Benchmarking and improving the performance of Jetpack Compose.
openvetta/open-vetta
Master Material Design 3 and Jetpack Compose patterns for building native Android apps.
rosuH/EasyWatermark
A skill your agent uses to generate and measure Jetpack Compose Baseline Profiles end-to-end with the AGP 8.2+ Baseline Profile Generator module and the Macrobenchmark harness.
Moustachauve/WLED-Android
Audit and improve Jetpack Compose runtime performance from code review and architecture.
Moustachauve/WLED-Android
Best practices for building UI with Jetpack Compose, focusing on state hoisting, detailed performance optimizations, and theming.
Moustachauve/WLED-Android
Debug and optimize Android/Gradle build performance. An agent skill from Moustachauve/WLED-Android.
Moustachauve/WLED-Android
Kotlin Coroutines review and remediation for Android. An agent skill from Moustachauve/WLED-Android.
Moustachauve/WLED-Android
Expert guidance on using Coil for image loading in Jetpack Compose.
Moustachauve/WLED-Android
Production-ready scripts for Android app testing, building, and automation.
Works with
Categories
Convert Android XML layouts to Jetpack Compose. An agent skill from Moustachauve/WLED-Android. XML To Compose Migration is an agent skill from Moustachauve/WLED-Android. Convert Android XML layouts to Jetpack Compose.
XML To Compose Migration fits situations like: asked to migrate Views to Compose; convert XML to Composables; modernize UI from View system to Compose.
Run `npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a claude-code`. Or copy the skill folder (.github/skills/xml-to-compose-migration in Moustachauve/WLED-Android) into .claude/skills/xml-to-compose-migration in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a codex`. Or copy the skill folder (.github/skills/xml-to-compose-migration in Moustachauve/WLED-Android) into .agents/skills/xml-to-compose-migration in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Moustachauve/WLED-Android --skill xml-to-compose-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xml-to-compose-migration, .gemini/skills/xml-to-compose-migration, .github/skills/xml-to-compose-migration and .opencode/skills/xml-to-compose-migration in your project.
SKILL.md names no scripts, command-line tools or credentials: XML To Compose Migration is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: developer.android.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
XML To Compose Migration is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with XML To Compose Migration: Compose Multiplatform Patterns (monta-app/ocpp-emulator, 180 stars), Android Development (dpconde/claude-android-skill, 337 stars), Styles (arindamxd/camerax-android, 132 stars) and Benchmark (androidx/androidx, 6.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Moustachauve (a GitHub user) maintains it in Moustachauve/WLED-Android, which has 169 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 9, 2026.
Source: Moustachauve/WLED-Android on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.