migrate-xamarin

migrate-xamarin is a skill for Claude Code, Codex from Phaedra-Solutions/cursor-rules. It costs 134 tokens per session (1,211 once invoked), scanned A, original, MIT.

A migration workflow for moving Xamarin.Forms, Xamarin.iOS, or Xamarin.Android apps to .NET MAUI, Microsoft's cross-platform framework for building mobile apps.

In plain words
What is it for?
Use it to inventory a Xamarin app, replace incompatible packages, move shared code, convert renderers and services, and create a MAUI single-project structure.
Why use it?
It helps account for platform code, packages, stored data, and UI differences so the move does not overlook compatibility or release concerns.

Skill for Claude CodeCodex

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

Good fit Use it to inventory a Xamarin app, replace incompatible packages, move shared code, convert renderers and services, and create a MAUI single-project structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phaedra-solutions/cursor-rules/migrate-xamarin
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 Phaedra-Solutions/cursor-rules --skill migrate-xamarin
Clone the repo
git clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rules

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 migrate-xamarin

README.md
[![agentmods](https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-xamarin/github.svg)](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-xamarin)
Your own site
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-xamarin"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-xamarin/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 migrate-xamarin

Your own site · 80×15
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-xamarin"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-xamarin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,211 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.00134 $0.01211
Opus 5.5 $0.00054 $0.00484
Sonnet 5.5 $0.00027 $0.00242
Haiku 4.5 $0.00013 $0.00121

Measured 3d ago against content hash 0dcdbdd6eb49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

migrate-xamarin 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 3d 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.

skills/migrate-xamarin/SKILL.md · 65 lines

How it starts

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

Migrate Xamarin to .NET MAUI

When to use

  • The app uses Xamarin.Forms, Xamarin.iOS or Xamarin.Android (see legacy/xamarin) and needs store releases again.
  • The user asks to move to .NET MAUI or .NET for iOS/Android.

Before you start

  • Inventory and write it to the PR or docs/xamarin-inventory.md:
    • projects and TFMs, packages.config vs PackageReference;
    • every NuGet package and its MAUI-compatible replacement (or "none");
    • custom renderers, effects, behaviors, DependencyService registrations, platform-specific code;
    • stored data: SecureStorage/Keychain keys, Preferences, SQLite file paths, push registration, app groups and entitlements.
  • Ask the user:
    • target (default .NET MAUI 10 on .NET 10; MAUI 10 is supported to 11 May 2027, MAUI 11 ships with .NET 11);
    • whether third-party UI vendors (Syncfusion, Telerik, DevExpress) have MAUI licenses;
    • whether package installs are approved (core/supply-chain);
    • whether GitHub Copilot upgrade may assist (needs a Copilot subscription and sends code to Copilot models). The steps below work without it.
  • Tooling: Visual Studio 2026 or VS Code with the .NET MAUI extension, Xcode 26 on a Mac for iOS, Android SDK API 36.
  • Working tree clean; new branch; record screenshots or UI tests of the main flows on the current app.

Steps

  1. Shared code first: convert shared projects to SDK-style net10.0 class libraries (or keep netstandard2.0 during the transition); fix APIs that don't exist on .NET.
  2. Create the MAUI project: a single project (dotnet new maui) with the same ApplicationId (bundle ID / package name), ApplicationDisplayVersion higher than the store version, and the same signing identities.
  3. Port the UI:
    • namespaces Xamarin.Forms → Microsoft.Maui.Controls, Xamarin.Essentials → Microsoft.Maui.* APIs;
    • layouts: check StackLayout/Grid spacing and RelativeLayout (moved to a compatibility package), Frame → Border;
    • custom renderers → handlers (or register them temporarily with .AddCompatibilityRenderer while porting);
    • DependencyService → constructor injection via MauiProgram.CreateMauiApp();
    • App.xaml resources and styles; fonts and images registered in the project file.
  4. Platform projects: move MainActivity, AppDelegate, Info.plist, AndroidManifest.xml and entitlements into Platforms/; set targetSdk 36 and the iOS deployment target; keep URL schemes, associated domains and push configuration.
  5. Data continuity: read existing SecureStorage, Preferences and SQLite paths with the same keys and locations so users stay signed in; write a one-time migration where formats changed.
  6. Packages: replace each Xamarin package with its MAUI equivalent; run dotnet list package --vulnerable --include-transitive.
  7. Show the diff and results; wait for approval. Commit only when asked (git-commit skill). Then apply mobile/mobile-security and languages/csharp.

Read the full file on GitHub · 65 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. 3d ago First seen · 65 lines · 134 tokens per session scan A 0dcdbdd6eb49

Subscribe to this mod's changes

migrate-xamarin is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 134 tokens to every session and 1,211 once invoked, about $0.0005 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-11-01.

Related

Other skills, from other repositories

maui-safe-area

.NET MAUI safe area and edge-to-edge layout guidance for .NET 10+. Covers the new SafeAreaEdges property, SafeAreaRegions enum, per-edge control, keyboard avoidance, Blazor Hybrid CSS safe areas, migration from legacy iOS-only APIs, and platform-specific behavior for Android, iOS, and Mac Catalyst. USE FOR: "safe…

dotnet/skills · 188 tokens

maui-app-lifecycle

.NET MAUI app lifecycle guidance — the four app states, cross-platform Window lifecycle events (Created, Activated, Deactivated, Stopped, Resumed, Destroying), platform-specific lifecycle mapping, backgrounding and resume behavior, and state-preservation patterns. USE FOR: "app lifecycle", "window lifecycle events"…

dotnet/skills · 144 tokens

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.

hashgraph-online/awesome-codex-plugins · 34 tokens

kotlin-coroutines-flows

Kotlin Coroutines and Flow patterns for Android and KMP — structured concurrency, Flow operators, StateFlow, error handling, and testing.

hashgraph-online/awesome-codex-plugins · 35 tokens

maui

Build, review, or migrate .NET MAUI applications across Android, iOS, macOS, and Windows with correct cross-platform UI, platform integration, and native packaging assumptions. USE FOR: working on cross-platform mobile or desktop UI in .NET MAUI; integrating device capabilities, navigation, or platform-specific code…

managedcode/dotnet-skills · 121 tokens

uno-platform

Build cross-platform .NET applications with Uno Platform targeting WebAssembly, iOS, Android, macOS, Linux, and Windows from a single XAML/C# codebase. USE FOR: building cross-platform apps from a single C# and XAML codebase; targeting WebAssembly, iOS, Android, macOS, Linux, and Windows simultaneously; migrating WPF…

managedcode/dotnet-skills · 129 tokens