/maui-skills:maui-performancefrom maui-skills
Optimizes .NET MAUI app performance with guidance on profiling, compiled bindings, layout efficiency, image optimization, trimming, and NativeAOT configuration.
Ships in maui-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
dotnet-trace collect --process-id <PID> --providers Microsoft-DotNETCore-SampleProfiler
x:DataType on pages/views to enable compiled bindings.x:DataType at the highest reasonable scope (page or root element).<ContentPage xmlns:vm="clr-namespace:MyApp.ViewModels"
x:DataType="vm:MainViewModel">
<Label Text="{Binding Title}" />
</ContentPage>
DataTemplate inside CollectionView/ListView, set x:DataType on the template root:<DataTemplate x:DataType="model:Item">
<Label Text="{Binding Name}" />
</DataTemplate>
{Binding}. Use literal values or x:Static instead.StackLayout with one child is pointless overhead.Grid over nested StackLayout/VerticalStackLayout — Grid resolves layout in a single pass.IsVisible="False" to hide elements rather than adding/removing from the tree at runtime.AbsoluteLayout when Grid with row/column definitions achieves the same result.WidthRequest/HeightRequest where sizes are known to reduce measure passes.ItemSizingStrategy="MeasureFirstItem" on CollectionView when items have uniform height — avoids measuring every item individually.<CollectionView ItemSizingStrategy="MeasureFirstItem"
ItemsSource="{Binding Items}">
CollectionView over ListView for new development.DataTemplate visual trees shallow — fewer nested layouts per item.Aspect="AspectFill" or AspectFit and set explicit dimensions.CachingEnabled="True" (default) on UriImageSource, set CacheValidity.App.xaml): Shared styles, colors, converters used across multiple pages.MergedDictionaries to organize large resource sets without bloating a single file.App constructor and MainPage constructor.Shell routing for deferred loading).Handlers/Effects registrations from MauiProgram.cs.AndroidManifest.xml doesn't force unnecessary permissions checks at launch.Enable IL trimming to reduce app size and remove unused code:
<PropertyGroup>
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>full</TrimMode>
</PropertyGroup>
[DynamicDependency] or [UnconditionalSuppressMessage] to preserve reflection targets.<PropertyGroup>
<PublishAot>true</PublishAot>
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>
[JsonSerializable] source generators instead of reflection-based JSON serialization.dotnet publish with AOT to verify no warnings before shipping.x:DataType on all pages, templates, and data-bound viewsItemSizingStrategy="MeasureFirstItem" on uniform CollectionViewsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub davidortinau/maui-skills --plugin maui-skills41 skills in this plugin
/maui-accessibilityGuide for making .NET MAUI apps accessible — screen reader support via SemanticProperties, heading levels, AutomationProperties visibility control, programmatic focus and announcements, and platform-specific gotchas for TalkBack, VoiceOver, and Narrator. USE FOR: "add accessibility", "screen reader support", "SemanticProperties", "AutomationProperties", "TalkBack", "VoiceOver", "Narrator", "accessible MAUI", "heading levels", "semantic description", "announce to screen reader", "accessibility audit". DO NOT USE FOR: general UI layout (use maui-collectionview or maui-shell-navigation), animations (use maui-animations), or gestures (use maui-gestures).
/maui-animations.NET MAUI view animations, custom animations, easing functions, rotation, scale, translation, and fade effects. USE FOR: "animate view", "fade in", "fade out", "slide animation", "scale animation", "rotate view", "translate view", "easing function", "custom animation", "animation chaining", "ViewExtensions animation". DO NOT USE FOR: gesture recognition (use maui-gestures), custom drawing (use maui-graphics-drawing), or static layout changes (use maui-data-binding).
/maui-app-icons-splash.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 Catalyst, and Windows. USE FOR: "app icon", "splash screen", "MauiIcon", "MauiSplashScreen", "adaptive icon", "change app icon", "launch screen", "SVG icon", "foreground tint", "icon resize". DO NOT USE FOR: in-app images or image loading (use maui-performance), theming or colors (use maui-theming), or custom drawing (use maui-graphics-drawing).
Other plugins' skills for the same job