xamarin-forms-migration

xamarin-forms-migration is a skill for Claude Code, Codex from dotnet/maui-labs. It costs 75 tokens per session (1,586 once invoked), scanned A, original, MIT.

A migration planning guide for moving a Xamarin.Forms mobile app to .NET MAUI, Microsoft's newer framework for building apps across mobile and desktop platforms.

In plain words
What is it for?
Use it to audit an app, start a fresh MAUI project, update namespaces and dependencies, replace service and messaging patterns, classify custom renderers, and plan permission and feature checks.
Why use it?
It helps identify outdated Xamarin.Forms patterns and decide how each one should be replaced, rather than copying code that no longer fits .NET MAUI.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit an app, start a fresh MAUI project, update namespaces and dependencies, replace service and messaging patterns, classify custom renderers, and plan permission and feature checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dotnet/maui-labs/xamarin-forms-migration
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 dotnet/maui-labs --skill xamarin-forms-migration
Clone the repo
git clone --depth 1 https://github.com/dotnet/maui-labs

Made for: Claude Code, Codex.

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 xamarin-forms-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/dotnet/maui-labs/xamarin-forms-migration/github.svg)](https://agentmods.dev/skills/dotnet/maui-labs/xamarin-forms-migration)
Your own site
<a href="https://agentmods.dev/skills/dotnet/maui-labs/xamarin-forms-migration"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/xamarin-forms-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.

agentmods 80×15 button for xamarin-forms-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/dotnet/maui-labs/xamarin-forms-migration"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/xamarin-forms-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,586 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 126
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00075 $0.01586
Opus 5.5 $0.00030 $0.00634
Sonnet 5.5 $0.00015 $0.00317
Haiku 4.5 $0.00007 $0.00159

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

Security

Grade A, and why

xamarin-forms-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.

plugins/dotnet-maui/skills/xamarin-forms-migration/SKILL.md · 153 lines

How it starts

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

Xamarin.Forms Migration

Use this skill to move a Xamarin.Forms app to .NET MAUI without blindly copying obsolete patterns. Treat migration as an audit and phased rebuild on a fresh MAUI project unless the user explicitly needs a small tactical port.

Response Checklist

  • Call out the migration audit first (DependencyService, MessagingCenter, custom renderers/effects, permissions, and platform capabilities).
  • Prefer a fresh MAUI project workflow and MauiProgram.cs DI setup.
  • Explicitly classify renderer replacements into mapper customization, custom handler, platform service, or slim binding.

Migration Tooling

Before migrating manually, check whether the .NET Upgrade Assistant can cover the mechanical parts of the app:

dotnet tool install -g upgrade-assistant
upgrade-assistant upgrade <your-solution>.sln

Upgrade Assistant can help with project conversion and namespace/API rewrites. Use this skill for decisions tooling cannot safely automate: renderer classification, DependencyService lifetimes, MessagingCenter replacement, platform capability parity, and validation planning.

Migration Workflow

  1. Inventory the current app:
    • Xamarin.Forms version, target platforms, platform projects, NuGet packages, renderers, effects, DependencyService, MessagingCenter, and native SDKs.
    • App startup, navigation, resource dictionaries, images/fonts, and platform entitlements/permissions.
  2. Create a new .NET MAUI project or solution structure that matches the target app shape. Prefer this over editing the Xamarin.Forms project in place.
  3. Move shared code first: models, services, view models, converters, resources, and XAML. Keep platform code out until shared code builds.
  4. Update namespaces and APIs using maui-current-apis; do not introduce new Xamarin.Forms or Xamarin.Essentials references.
  5. Migrate app startup to MauiProgram.cs, CreateMauiApp, DI registration, fonts, handlers, lifecycle events, and platform services.
  6. Migrate UI and navigation incrementally. Keep Shell route names, modal flows, and deep-link behavior explicit.
  7. Plan custom renderer/effect replacements:
    • simple native property tweak -> handler mapper customization;
    • reusable custom control -> custom handler;
    • non-visual platform API -> platform service via DI;
    • third-party native SDK surface -> slim binding.
  8. Validate each migrated slice with build, platform launch, and accessibility or performance checks for changed UI.

Read the full file on GitHub · 153 lines

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 Changed · -27 tokens per session e6047e87b29e
  2. 3mo ago First seen · 153 lines · 102 tokens per session scan A b3fad97b3664

Subscribe to this mod's changes

xamarin-forms-migration is a skill published in the GitHub repository dotnet/maui-labs (244 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 1,586 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-30.

Related

xamarin-forms-migration compared with skills from other repositories

xamarin-forms-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
xamarin-forms-migrationdotnet/maui-labsSkill244todayMITA75Claude Code, Codex
argent-react-native-app-workflowsoftware-mansion/argentSkill3.3ktodayApache-2.0A41Claude Code, Codex
argent-react-native-optimizationsoftware-mansion/argentSkill3.3ktodayApache-2.0A46Claude Code, Codex
mobile-automationmobile-next/mobile-mcpSkill11k5d agoApache-2.0A58Claude Code, Codex
argent-metro-debuggersoftware-mansion/argentSkill3.3ktodayApache-2.0A50Claude Code, Codex
argent-native-profilersoftware-mansion/argentSkill3.3ktodayApache-2.0A41Claude Code, Codex
argent-screen-recordingsoftware-mansion/argentSkill3.3ktodayApache-2.0A38Claude Code, Codex