/maui-skills:maui-hot-reload-diagnosticsfrom maui-skills
Diagnoses .NET MAUI Hot Reload failures for XAML, C#, and Blazor Hybrid. Covers encoding, environment, and framework-specific pitfalls.
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.
Read when SKILL.md points to them; scripts run unread.
Systematically diagnose Hot Reload failures for .NET MAUI apps.
.xaml changes) vs C# Hot Reload (.cs changes)CRITICAL: All .cs files must be UTF-8 with BOM encoding.
# Check if file has BOM (should show "UTF-8 Unicode (with BOM)")
file -I *.cs
# Find files without BOM
find . -name "*.cs" -exec sh -c 'head -c 3 "$1" | od -An -tx1 | grep -q "ef bb bf" || echo "$1"' _ {} \;
# Fix: convert to UTF-8 with BOM
sed -i '1s/^\(\xef\xbb\xbf\)\?/\xef\xbb\xbf/' file.cs
# Or in VS Code: Open file > Save with Encoding > UTF-8 with BOM
Some changes always require app restart:
XamlCompilationOptions.Skip<!-- ✅ Correct — feature switch in .csproj -->
<ItemGroup Condition="'$(Configuration)'=='Debug'">
<RuntimeHostConfigurationOption Include="MauiReactor.HotReload" Value="true" Trim="false" />
</ItemGroup>
// ❌ Wrong — v2 API, remove for v3+
.EnableMauiReactorHotReload()
⚠️ If migrating from MauiReactor v2, remove the EnableMauiReactorHotReload() call from MauiProgram.cs.
Key points — missing any of these breaks hot reload:
Build() methodICommunityToolkitHotReloadHandler on any page/view needing refreshOnHotReload() method is called automatically after C# hot reload.UseMauiCommunityToolkitMarkup() in MauiProgram.csThese changes always require restart:
@inject servicesProgram.cs or MauiProgram.csThese usually work without restart:
⚠️ CSS isolation: If .razor.css changes don't apply, verify the isolated CSS file is properly linked.
| UI approach | What reloads | Watch out for |
|---|---|---|
| XAML | .xaml files (instant) | Linker must be off on iOS; config must be "Debug" |
| C# code-behind | Method bodies only | Must re-trigger code path; rude edits require restart |
| MauiReactor v3+ | Component re-render | Need RuntimeHostConfigurationOption, not code call |
| C# Markup | Build() method body | Must implement ICommunityToolkitHotReloadHandler |
| Blazor Hybrid | .razor + .css | New components/services need restart |
references/hot-reload-setup.md).dotnet build -bl:build.binlog) help diagnose build-related hot reload failures.dotnet --info, workload list, binary log, and Hot Reload output..cs files are UTF-8 with BOMRuntimeHostConfigurationOption in .csproj (not code call)ICommunityToolkitHotReloadHandler implementedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
hot-reload, maui, xaml, dotnet, troubleshooting, diagnostics
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