xamarin
Skill15 starsChanged 2 months agoMITView on GitHub
Expert Xamarin assistance covering Xamarin.Forms cross-platform UI, .NET MAUI migration, XAML data binding, custom renderers, and platform dependency services. Use when maintaining Xamarin applications, migrating to .NET MAUI, or sharing C# code across mobile platforms.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ffsshhttiikk/opencode-agents-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 113
Analyze Dependencies: Run the .NET Upgrade Assistant to identify breaking APIs and obsolete NuGet packages.
- Distinctive: line 126
Update the XML root declarations to .NET MAUI standard schemas:
- Very specific: line 147
Use CommunityToolkit.Mvvm: Replace repetitive INotifyPropertyChanged boilerplate with source-generator [ObservableProperty] and …
- Distinctive: line 149
Use WeakReferenceMessenger: Decouple inter-view communications without leaking View references in event handlers.
- Distinctive: line 153
Start greenfield apps on Xamarin: New .NET mobile applications should start directly on .NET MAUI.
- Distinctive: line 154
Write heavy custom renderers: Use lightweight Handlers (.NET MAUI style) rather than heavy legacy Xamarin Custom Renderers.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Xamarin (Legacy)
⚠️ STATUS: LEGACY (MIGRATION TO .NET MAUI REQUIRED)
Xamarin has reached official end-of-life status. Legacy Xamarin.Forms and native Xamarin codebases should be migrated to modern .NET MAUI.
Xamarin has officially reached End of Support. It was a cross-platform framework for building Android/iOS apps with .NET and C#. All active development should move to .NET MAUI.
When to Use
- Enterprise .NET Mobile Maintenance: Maintaining existing enterprise Xamarin.Forms and Xamarin.iOS/Android applications.
- Migration to .NET MAUI: Planning and executing migrations from legacy Xamarin.Forms to modern unified .NET MAUI.
- Shared C# Business Libraries: Sharing .NET Core business logic, Entity Framework SQLite layers, and services across mobile.
- XAML Declarative Mobile UI: Building cross-platform user interfaces using XAML data binding and MVVM architectures.
Quick Start
# Install the official .NET upgrade assistant tool
dotnet tool install -g upgrade-assistant
# Run upgrade analysis on the legacy Xamarin.Forms project or solution
upgrade-assistant analyze ./MyXamarinApp.sln
# Automatically apply project and namespace migrations to .NET MAUI
upgrade-assistant upgrade ./MyXamarinApp.sln --non-interactiveCore Concepts
XAML Data Binding & MVVM (Model-View-ViewModel)
Two-way data binding synchronizes native mobile controls with observable ViewModels:
// ViewModels/ProfileViewModel.cs
using System.ComponentModel;
using System.Runtime.CompilerServices;
public class ProfileViewModel : INotifyPropertyChanged
{
private string _username = "JaneDoe";
public string Username
{
get => _username;
set { _username = value; OnPropertyChanged(); }
}
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string name = null)
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
}<!-- Views/ProfilePage.xaml -->
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MyApp.ViewModels"
x:Class="MyApp.Views.ProfilePage">
<ContentPage.BindingContext>
<vm:ProfileViewModel />
</ContentPage.BindingContext>
<StackLayout Padding="20">
<Entry Text="{Binding Username, Mode=TwoWay}" />
<Label Text="{Binding Username, StringFormat='Active User: {0}'}" FontSize="18" />
</StackLayout>
</ContentPage>DependencyService Platform Abstraction
Resolves platform-specific native implementations from shared code:
// Shared Interface
public interface IDeviceStorage { string GetStorageDirectory(); }
// Android Implementation: [assembly: Dependency(typeof(AndroidStorage))]
public class AndroidStorage : IDeviceStorage
{
public string GetStorageDirectory() => Android.App.Application.Context.FilesDir.AbsolutePath;
}
// Consumed in Shared ViewModel
var path = DependencyService.Get<IDeviceStorage>().GetStorageDirectory();Transition to .NET MAUI Architecture
Modernizes Xamarin codebases by unifying project structures into a single multi-targeted .csproj:
<!-- .NET MAUI Single Project Structure -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
</PropertyGroup>
</Project>Migration to .NET MAUI Architecture
The primary focus for legacy Xamarin codebases is structured migration to modern .NET MAUI:
- Analyze Dependencies: Run the
.NET Upgrade Assistantto identify breaking APIs and obsolete NuGet packages. - Consolidate Project Structure: Merge separate iOS/Android head projects into a unified Single Project (
.csproj) layout. - Update Namespaces: Migrate legacy
Xamarin.Formsnamespaces toMicrosoft.Maui.Controls. - Replace Framework APIs: Replace legacy
Xamarin.Essentialswith unifiedMicrosoft.Maui.DevicesAPIs. - Convert Custom Renderers: Migrate platform renderers to modern decoupled Handlers via mapped property mappers.
Common Patterns
XAML Namespace Modernization
Problem: Legacy Xamarin.Forms XAML namespaces cause build failures in modern .NET toolchains.
Solution: Update the XML root declarations to .NET MAUI standard schemas:
<!-- Legacy Xamarin.Forms -->
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MyApp.MainPage">
</ContentPage>
<!-- Upgraded .NET MAUI -->
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MyApp.MainPage">
</ContentPage>Best Practices
Do:
- Migrate to .NET MAUI: Transition active projects to .NET 8/9 MAUI; Xamarin reached official end-of-support.
- Use CommunityToolkit.Mvvm: Replace repetitive
INotifyPropertyChangedboilerplate with source-generator[ObservableProperty]and[RelayCommand]. - Compile XAML with
[XamlCompilation(XamlCompilationOptions.Compile)]: Enable XAMLC to catch XAML binding errors at build time. - Use WeakReferenceMessenger: Decouple inter-view communications without leaking View references in event handlers.
Don't:
- Start greenfield apps on Xamarin: New .NET mobile applications should start directly on .NET MAUI.
- Write heavy custom renderers: Use lightweight Handlers (.NET MAUI style) rather than heavy legacy Xamarin Custom Renderers.
- Ignore Linker settings: Test release builds with Linker enabled (
Link SDK assemblies only) to keep binary sizes compact.
Troubleshooting
| Error | Cause | Solution |
NuGet Package Incompatible | Package dropped Xamarin support. | Find MAUI equivalent or fork legacy version. |
Build Errors | Toolchain conflicts (VS 2022+). | Ensure legacy workloads are installed (check Visual Studio Installer). |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

