Agent skill

Maui Current APIs

by davidortinau in davidortinau/maui-skills

Always-on guardrail for .NET MAUI API currency. An agent skill from davidortinau/maui-skills.

MITAuto-check passedMobile

Install Maui Current APIs

skills CLI
$ npx skills add davidortinau/maui-skills --skill maui-current-apis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davidortinau/maui-skills maui-current-apis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davidortinau/maui-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/maui-skills/skills/maui-current-apis .claude/skills/maui-current-apis && rm -rf skills-src

Use ~/.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/

Facts

Skill name
maui-current-apis
GitHub stars
175
Token cost
~2.7k tokens
SKILL.md length
1,007 words
Files
2
Skills in repo
41
Repo updated
First seen
Licence
MIT

At a glance

Always-on guardrail for .NET MAUI API currency. An agent skill from davidortinau/maui-skills.

  • Works in 4 steps: Detect the Target Framework → Detect Library Versions → Verify API Currency → …
  • : deprecated API
  • SKILL.md covers Reasoning Framework, Deprecated API Table — .NET…, MauiReactor-Specific Guidance and Blazor Hybrid-Specific Guidance, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Maui Current APIs is an agent skill from davidortinau/maui-skills. Always-on guardrail for .NET MAUI API currency. Prevents AI coding agents from using deprecated, obsolete, or removed APIs across XAML/C, Blazor Hybrid, and MauiReactor. Includes a reasoning framework for detecting project target framework and library versions, plus a curated table of the most common deprecated API traps in .NET MAUI 10. USE FOR: "deprecated API", "obsolete API", "API migration", "MAUI breaking changes", "check API currency", "review MAUI code", "generate MAUI code", "edit MAUI code". DO NOT USE…

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `evals/evals.json`).

It sits in Mobile, covering Cross-platform mobile apps. It works with Blazor and C#. The repository describes itself as: .NET MAUI skills for GitHub Copilot and Claude Code. The licence is MIT.

When your agent uses it

  • : deprecated API
  • MAUI breaking changes
  • Check API currency
  • Review MAUI code

Example prompts

  • “deprecated API”
  • “obsolete API”
  • “API migration”
  • “/maui-current-apis”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Detect the Target Framework
  2. Detect Library Versions
  3. Verify API Currency
  4. Apply Decision Rules

What it can do on your machine

Read from SKILL.md and the folder at commit 79bb4bf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are xml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Maui Current APIs loads about 2.7k tokens when it runs. Until then it costs about 173 tokens; SKILL.md has 1,007 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~173
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from davidortinau/maui-skills at commit 79bb4bf, republished under its MIT licence (© davidortinau). 1,007 words, ~2,731 tokens.

Download SKILL.mdSave it as .claude/skills/maui-current-apis/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
maui-current-apis
description
Always-on guardrail for .NET MAUI API currency. Prevents AI coding agents from using deprecated, obsolete, or removed APIs across XAML/C#, Blazor Hybrid, and MauiReactor. Includes a reasoning framework for detecting project target framework and library versions, plus a curated table of the most common deprecated API traps in .NET MAUI 10. USE FOR: "deprecated API", "obsolete API", "API migration", "MAUI breaking changes", "check API currency", "review MAUI code", "generate MAUI code", "edit MAUI code". DO NOT USE FOR: learning new MAUI features (use feature-specific skills), performance optimization (use maui-performance), or testing guidance (use maui-unit-testing).

.NET MAUI Current APIs — Guardrail Skill

This skill prevents you from generating code that uses deprecated, obsolete, or removed APIs. Read this before writing any .NET MAUI, Blazor Hybrid, or MauiReactor code.

Reasoning Framework

Follow these steps before generating any MAUI-related code:

Step 1 — Detect the Target Framework

Read the project's .csproj file and find <TargetFramework> or <TargetFrameworks>:

xml
<!-- Single target -->
<TargetFramework>net10.0-android</TargetFramework>

<!-- Multi-target (typical MAUI project) -->
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst;net10.0-windows10.0.19041.0</TargetFrameworks>

The version number (net10.0, net9.0, net8.0) determines which APIs are available. Always target the version in the project file — never assume a version.

Step 2 — Detect Library Versions

Scan <PackageReference> entries and <ItemGroup> for key packages:

PackageWhat it tells you
Microsoft.Maui.ControlsMAUI version (if explicit)
CommunityToolkit.MauiToolkit version — APIs change between major versions
CommunityToolkit.MvvmMVVM Toolkit version — needed for WeakReferenceMessenger
Reactor.MauiMauiReactor version — v3+ has different APIs than v2
Microsoft.AspNetCore.Components.WebView.MauiBlazor Hybrid version

If no explicit MAUI package version is listed, the MAUI SDK version matches the <TargetFramework> .NET version.

Step 3 — Verify API Currency

Before using any API, ask yourself:

  1. Does this API exist in the detected version? If you're unsure, prefer the newer pattern.
  2. Is this a Xamarin.Forms API? MAUI is a different API surface — never assume Xamarin.Forms compatibility.
  3. Is this in the deprecated table below? If so, use the replacement.
  4. Am I using the Compatibility namespace? Microsoft.Maui.Controls.Compatibility.* types are migration aids, not recommended for new code.
Step 4 — Apply Decision Rules
  • Always use the newest form of an API when both old and new exist.
  • Never generate using Xamarin.Forms or using Xamarin.Essentials — these are not MAUI.
  • Never use the Compatibility namespace in new projects (Compatibility.RelativeLayout, Compatibility.StackLayout, etc.).
  • Prefer async method names when both sync-named and async-named versions exist (e.g., DisplayAlertAsync over DisplayAlert).
  • Check the project's NuGet versions before using CommunityToolkit or third-party APIs.

Deprecated API Table — .NET MAUI 10

Controls
❌ Deprecated / Removed✅ Use InsteadNotes
ListViewCollectionViewListView, EntryCell, ImageCell, SwitchCell, TextCell, ViewCell, and Cell are all deprecated in .NET 10
TableViewCollectionView or custom layoutDeprecated in .NET 10
FrameBorderFrame is a Xamarin.Forms legacy control; Border is the MAUI replacement with StrokeShape support
Compatibility.RelativeLayoutGridMigration-only; removed from templates in .NET 10
Compatibility.StackLayoutVerticalStackLayout / HorizontalStackLayoutThe compatibility StackLayout wraps Xamarin layout logic. Use the native MAUI stack layouts for better performance
Gestures & Input
❌ Deprecated / Removed✅ Use InsteadNotes
ClickGestureRecognizerTapGestureRecognizerRemoved in .NET 10
AcceleratorKeyboardAcceleratorRemoved from Microsoft.Maui.Controls in .NET 10
Page & Navigation
❌ Deprecated / Removed✅ Use InsteadNotes
Page.IsBusyActivityIndicatorIsBusy is obsolete in .NET 10; use an explicit activity indicator
DisplayAlert()DisplayAlertAsync()Sync-named versions deprecated; use async versions
DisplayActionSheet()DisplayActionSheetAsync()Same as above
MessagingCenterWeakReferenceMessenger (CommunityToolkit.Mvvm)Made internal in .NET 10
Animation
❌ Deprecated / Removed✅ Use InsteadNotes
FadeTo()FadeToAsync()All animation extension methods renamed to *Async in .NET 10
RotateTo(), ScaleTo(), TranslateTo(), etc.RotateToAsync(), ScaleToAsync(), TranslateToAsync(), etc.Same pattern — RelRotateTo → RelRotateToAsync, RelScaleTo → RelScaleToAsync, LayoutTo → LayoutToAsync
Device & Platform APIs
❌ Deprecated / Removed✅ Use InsteadNotes
Device.RuntimePlatformDeviceInfo.PlatformThe entire Device class is deprecated
Device.BeginInvokeOnMainThread()Dispatcher.Dispatch()Use the view's or app's Dispatcher property
Device.InvokeOnMainThreadAsync()Dispatcher.DispatchAsync()Same
Device.OpenUri()Launcher.OpenAsync()Use Microsoft.Maui.ApplicationModel.Launcher
Device.StartTimer()Dispatcher.StartTimer() or PeriodicTimerUse the dispatcher or standard .NET timer
DependencyServiceConstructor injection via IServiceProviderRegister services in MauiProgram.cs with builder.Services
XAML & Markup
❌ Deprecated / Removed✅ Use InsteadNotes
FontImageExtension (XAML markup extension)FontImageSource (type)Use <FontImageSource> element or property syntax
Color.FromHex()Color.FromArgb()FromHex is obsolete
Safe Area & Layout
❌ Deprecated / Removed✅ Use InsteadNotes
Page.UseSafeArea (iOS platform-specific)SafeAreaEdges propertyNew in .NET 10; ContentPage defaults to None (edge-to-edge) on all platforms
Layout.IgnoreSafeAreaSafeAreaEdges propertyUse the unified safe area API
Accessibility
❌ Deprecated / Removed✅ Use InsteadNotes
AutomationProperties.NameSemanticProperties.DescriptionAutomationProperties still works but SemanticProperties is the MAUI-native approach
AutomationProperties.HelpTextSemanticProperties.HintSame
iOS SetAccessibilityHint / SetAccessibilityLabel (Compatibility extensions)Microsoft.Maui.Platform.UpdateSemantics()Deprecated in .NET 10
Show full SKILL.md (399 more words)Show less
NuGet Packages
❌ Deprecated Package✅ Use InsteadNotes
Xamarin.FormsMicrosoft.Maui.ControlsCompletely different API surface
Xamarin.EssentialsBuilt-in MAUI APIs (Microsoft.Maui.Devices, Microsoft.Maui.ApplicationModel, etc.)Essentials is merged into MAUI
Xamarin.CommunityToolkitCommunityToolkit.MauiDifferent namespace and API surface
Microsoft.Toolkit.MvvmCommunityToolkit.MvvmPackage was renamed

MauiReactor-Specific Guidance

MauiReactor v3+ (for .NET MAUI 9/10):

  • Hot reload: v3+ uses a feature switch in .csproj via <RuntimeHostConfigurationOption>. Do NOT use the v2 EnableMauiReactorHotReload() call in MauiProgram.cs.
  • API wrappers: MauiReactor auto-generates C# wrappers around MAUI controls. When a MAUI control is deprecated (e.g., ListView), the MauiReactor wrapper is also effectively deprecated. Use the MauiReactor wrapper for the replacement control (e.g., CollectionView).
  • State management: Use State<T> and Props<T> — not older RxComponent patterns if they appear in outdated examples.
  • Navigation: Use MauiReactor's built-in navigation (Navigation.PushAsync<PageComponent>()) — do NOT mix in MAUI Shell GoToAsync unless deliberately integrating Shell.

Blazor Hybrid-Specific Guidance

  • Use BlazorWebView — not the legacy WebView — for hosting Razor components.
  • Use .NET 10 Razor syntax: @rendermode directives, [SupplyParameterFromQuery], and the latest component model.
  • JS interop: Use IJSRuntime.InvokeAsync<T>() — not the obsolete synchronous IJSInProcessRuntime patterns for mobile.
  • Safe areas: In Blazor Hybrid, use CSS env(safe-area-inset-*) — do NOT combine XAML SafeAreaEdges and CSS safe area padding on the same element (causes double-padding).
  • Web resource interception: .NET 10 adds WebResourceRequested event on BlazorWebView and HybridWebView for intercepting requests.

Version Detection Cheat Sheet

Reading the TFM
TFM Pattern.NET Version
net10.0-*.NET 10 (latest, current)
net9.0-*.NET 9
net8.0-*.NET 8 (LTS)
Reading MAUI SDK Version

If the .csproj uses <UseMaui>true</UseMaui>, the MAUI version matches the TFM:

  • net10.0 → MAUI 10
  • net9.0 → MAUI 9
Reading MauiReactor Version

Check <PackageReference Include="Reactor.Maui" Version="X.Y.Z" />:

  • v3.x → .NET MAUI 9/10 compatible, uses feature-switch hot reload
  • v2.x → Legacy, uses EnableMauiReactorHotReload() builder pattern
Reading CommunityToolkit Version

Check <PackageReference Include="CommunityToolkit.Maui" Version="X.Y.Z" />:

  • v11+ → .NET 10 compatible
  • v9-10 → .NET 9 compatible
  • v5-7 → .NET 8 compatible

Quick Rules

  1. Read the .csproj first. Never generate code without knowing the target framework.
  2. When in doubt, use the newer API. If two ways exist to do something, the newer way is correct.
  3. Never use Xamarin.* namespaces. They do not exist in MAUI.
  4. Never use Compatibility.* types in new projects. They are migration aids only.
  5. Check this table before using any Device.* API. The Device class is fully deprecated.
  6. Use *Async method names for animations, alerts, and action sheets in .NET 10+.
  7. Verify third-party package versions before using their APIs — CommunityToolkit, MauiReactor, and others break between major versions.

© davidortinau, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in plugins/maui-skills/skills/maui-current-apis of davidortinau/maui-skills.

  • SKILL.md
  • evals/evals.json

Open the folder on GitHubat commit 79bb4bf

Compare with similar skills

Maui Current APIs 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.

Maui Current APIs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Maui Current APIs this skilldavidortinau/maui-skills175—~2.7kAutomated safety check: PassMIT
Maui Safe Areadotnet/skills5.6k1 repos~3.2kAutomated safety check: PassMIT
Wallet QuickstartNethereum/Nethereum2.3k—~1.6kAutomated safety check: PassMIT
Csharp Expertmicrosoft/testfx1k2 repos~5.4kAutomated safety check: PassMIT
Sentry Dotnet SDKgetsentry/sentry-for-ai268—~5.8kAutomated safety check: PassApache-2.0
Using Dotnetnovotnyllc/dotnet-artisan232—~2.3kAutomated safety check: WarnMIT

Similar skills

  • Maui Safe Area

    dotnet/skills

    Official

    .NET MAUI safe area and edge-to-edge layout guidance for .NET 10+.

    5.6k GitHub starsUsed in 1 repo~3.2k tokens
    MobileAuto-check passed
  • Wallet Quickstart

    Nethereum/Nethereum

    Build a multi-platform wallet application using the Nethereum Wallet SDK with MVVM architecture (.NET/C).

    2.3k GitHub stars~1.6k tokensUpdated 5 days ago
    MobileAuto-check passed
  • Csharp Expert

    microsoft/testfx

    Official

    Route C and .NET requests to the exact installed specialist or smallest dotnet/skills marketplace plugin.

    1k GitHub starsUsed in 2 repos~5.4k tokens
    DevelopmentAuto-check passed
  • Sentry Dotnet SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for .NET. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~5.8k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Using Dotnet

    novotnyllc/dotnet-artisan

    Detects .NET intent for any C, ASP.NET Core, EF Core, Blazor, MAUI, Uno Platform, WPF, WinUI, SignalR, gRPC, xUnit, NuGet, or MSBuild request from prompt keywords and repository signals (.sln…

    232 GitHub stars~2.3k tokensUpdated 3 days ago
    Backend & APIsAuto-check: warnings
  • Run Maui App

    tig/winprint

    Build, launch, screenshot, and drive the WinPrint.Maui Windows app (winprint.exe) — including UIA automation of the File button and native Open dialog, and pixel capture that works for WinUI3 content.

    101 GitHub stars~1.2k tokensUpdated 1 mo ago
    MobileAuto-check passed

More from davidortinau/maui-skills

All 41 skills in this repo
  • Maui Hot Reload Diagnostics

    davidortinau/maui-skills

    Diagnose and troubleshoot .NET MAUI Hot Reload issues (C Hot Reload, XAML Hot Reload, Blazor Hybrid).

    175 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Maui Accessibility

    davidortinau/maui-skills

    Guide for making .NET MAUI apps accessible — screen reader support via SemanticProperties, heading levels, AutomationProperties visibility control, programmatic focus and announcements, and…

    175 GitHub stars~974 tokensUpdated 3 mo ago
    Auto-check passed
  • Maui Animations

    davidortinau/maui-skills

    .NET MAUI view animations, custom animations, easing functions, rotation, scale, translation, and fade effects.

    175 GitHub stars~911 tokensUpdated 3 mo ago
    Auto-check passed
  • Maui App Icons Splash

    davidortinau/maui-skills

    .NET MAUI app icon configuration, splash screen setup, SVG to PNG conversion at build time, composed/adaptive icons, and platform-specific icon and splash screen requirements for Android, iOS, Mac…

    175 GitHub stars~995 tokensUpdated 3 mo ago
    Auto-check passed
  • Maui App Lifecycle

    davidortinau/maui-skills

    .NET MAUI app lifecycle guidance covering the four app states (not running, running, deactivated, stopped), cross-platform Window lifecycle events, backgrounding and resume behaviour…

    175 GitHub stars~947 tokensUpdated 3 mo ago
    Auto-check passed
  • Maui Aspire

    davidortinau/maui-skills

    Guide for .NET MAUI apps consuming .NET Aspire-hosted backend services.

    175 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed

Works with

Categories

Questions about Maui Current APIs

What does Maui Current APIs do?

Always-on guardrail for .NET MAUI API currency. An agent skill from davidortinau/maui-skills. Maui Current APIs is an agent skill from davidortinau/maui-skills.NET MAUI API currency.

When should I use Maui Current APIs?

Maui Current APIs fits situations like: : deprecated API; MAUI breaking changes; check API currency; review MAUI code.

How do I install Maui Current APIs in Claude Code?

Run `npx skills add davidortinau/maui-skills --skill maui-current-apis -a claude-code`. Or copy the skill folder (plugins/maui-skills/skills/maui-current-apis in davidortinau/maui-skills) into .claude/skills/maui-current-apis in your project. Claude Code loads it when a task matches its description.

How do I install Maui Current APIs in Codex?

Run `npx skills add davidortinau/maui-skills --skill maui-current-apis -a codex`. Or copy the skill folder (plugins/maui-skills/skills/maui-current-apis in davidortinau/maui-skills) into .agents/skills/maui-current-apis in your project. Codex loads it when a task matches its description.

Can I use Maui Current APIs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davidortinau/maui-skills --skill maui-current-apis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/maui-current-apis, .gemini/skills/maui-current-apis, .github/skills/maui-current-apis and .opencode/skills/maui-current-apis in your project.

What does Maui Current APIs need to run?

SKILL.md names no scripts, command-line tools or credentials: Maui Current APIs is instructions for the agent only.

Does Maui Current APIs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Maui Current APIs safe to install?

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.

What licence does Maui Current APIs use?

Maui Current APIs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Maui Current APIs use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Maui Current APIs?

Skills that share tags, products or a category with Maui Current APIs: Maui Safe Area (dotnet/skills, 5.6k stars), Wallet Quickstart (Nethereum/Nethereum, 2.3k stars), Csharp Expert (microsoft/testfx, 1k stars) and Sentry Dotnet SDK (getsentry/sentry-for-ai, 268 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Maui Current APIs?

davidortinau (a GitHub user) maintains it in davidortinau/maui-skills, which has 175 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on July 6, 2026.

Source: davidortinau/maui-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.