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.
npx skills add hanamizuki/solopreneur --skill xml-to-compose-migrationgit clone --depth 1 https://github.com/hanamizuki/solopreneurWrote 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.
[](https://agentmods.dev/skills/hanamizuki/solopreneur/xml-to-compose-migration)<a href="https://agentmods.dev/skills/hanamizuki/solopreneur/xml-to-compose-migration"><img src="https://agentmods.dev/badge/skills/hanamizuki/solopreneur/xml-to-compose-migration/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.
<a href="https://agentmods.dev/skills/hanamizuki/solopreneur/xml-to-compose-migration"><img src="https://agentmods.dev/badge/skills/hanamizuki/solopreneur/xml-to-compose-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00041 | $0.02481 |
| Opus 5.5 | $0.00016 | $0.00992 |
| Sonnet 5.5 | $0.00008 | $0.00496 |
| Haiku 4.5 | $0.00004 | $0.00248 |
Grade A, and why
xml-to-compose-migration 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.
This is a copy
100% identical to xml-to-compose-migration — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 339 lines — stays where its author put it; the contents beside it link to each section on GitHub.
XML to Compose Migration
Overview
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.
Workflow
1. Analyze the XML Layout
- Identify the root layout type (
ConstraintLayout,LinearLayout,FrameLayout, etc.). - List all View widgets and their key attributes.
- Map data binding expressions (
@{}) or view binding references. - Identify custom views that need special handling.
- Note any
include,merge, orViewStubusage.
2. Plan the Migration
- Decide: Full rewrite or incremental migration (using
ComposeView/AndroidView). - Identify state sources (ViewModel, LiveData, savedInstanceState).
- List reusable components to extract as separate Composables.
- Plan navigation integration if using Navigation component.
3. Convert Layouts
Apply the layout mapping table below to convert each View to its Compose equivalent.
4. Migrate State
- Convert
LiveDataobservation toStateFlowcollection orobserveAsState(). - Replace
findViewById/ ViewBinding with Compose state. - Convert click listeners to lambda parameters.
5. Test and Verify
- Compare visual output between XML and Compose versions.
- Test accessibility (content descriptions, touch targets).
- Verify state preservation across configuration changes.
Layout Mapping Reference
Container Layouts
| 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 |
What ships with it
1 file 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.
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.
- 2mo ago First seen · 339 lines · 41 tokens per session scan A e9f1eb49e59f
xml-to-compose-migration is a skill published in the GitHub repository hanamizuki/solopreneur (156 stars, last pushed 3d ago), licensed MIT. It adds 41 tokens to every session and 2,481 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to xml-to-compose-migration, differing in 0 lines, and is treated as a copy.
xml-to-compose-migration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| xml-to-compose-migrationhanamizuki/solopreneur | Skill | 156 | 3d ago | MIT | A | 41 | Claude Code |
| wear-compose-m3android/skills | Skill | 10k | yesterday | Apache-2.0 | A | 91 | Claude Code |
| ink-custom-brush-builderandroid/skills | Skill | 10k | yesterday | Apache-2.0 | A | 159 | Claude Code |
| kotlin-specialistJeffallan/claude-skills | Skill | 12k | 7d ago | MIT | A | 86 | Claude Code |
| swiftui-devOrkas-AI/Orkas | Skill | 9.0k | yesterday | MIT | A | 3 | Claude Code, Codex |
| build-android-binarymicrosoft/power-platform-skills | Skill | 1.1k | yesterday | MIT | A | 150 | Claude Code |
| kotlin-androidericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 78 | Claude Code, Codex |