maui-current-apis

Detect deprecated .NET MAUI APIs and apply modern replacements during code generation.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/snailb1007/snail-codex-skills --skill maui-current-apis-snailb1007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-current-apis
Source: https://github.com/snailb1007/snail-codex-skills/tree/main/skills/maui-current-apis
Command: npx skills add https://github.com/snailb1007/snail-codex-skills --skill maui-current-apis-snailb1007

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents generation of code that uses deprecated, obsolete, or removed APIs across .NET MAUI, Blazor Hybrid, and MauiReactor, helping maintain API currency and reduce migration friction.

Core Features & Use Cases

  • Guardrails: Analyzes the project's TargetFramework and library versions to detect deprecated API usage.
  • Guidance & Best Practices: Provides up-to-date replacements and patterns for migrating away from removed APIs.
  • Use Case: When coding MAUI apps or generating MAUI samples, ensures that generated code avoids Xamarin.Forms-era APIs like ListView or Device.* calls.

Quick Start

Provide updated MAUI code snippets that replace deprecated APIs based on your project's TargetFramework and package versions.

Frequently Asked Questions about maui-current-apis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent deprecated MAUI APIs in generated code?

To prevent deprecated MAUI APIs in generated code, apply guardrails that detect your project's TargetFramework and library versions, consult a deprecation table, and enforce modern API replacements during code generation and review.

What are common Xamarin.Forms-era APIs to avoid in .NET MAUI projects?

Common Xamarin.Forms-era APIs to avoid in .NET MAUI projects include ListView and Device.* calls. The guardrails detect these obsolete patterns and provide up-to-date CollectionView replacements to reduce migration friction.

Does this deprecated API detection work with Blazor Hybrid and MauiReactor?

Yes, deprecated API detection works with Blazor Hybrid and MauiReactor. The guardrails analyze XAML/C# and library versions across these frameworks to prevent obsolete API usage and provide modern replacement patterns.

How do I replace removed .NET MAUI APIs based on my TargetFramework?

To replace removed .NET MAUI APIs, the guardrails evaluate your TargetFramework and package versions, check a deprecation table, and provide updated code snippets that apply modern API replacements for your specific project configuration.

What's the best way to maintain API currency in .NET MAUI development?

Maintaining API currency in .NET MAUI involves applying guardrails during code generation that detect deprecated APIs and enforce modern replacements. This prevents obsolete patterns across XAML/C# and Blazor Hybrid, reducing future migration friction.