Agent skill

Maui Hot Reload Diagnostics

by davidortinau in davidortinau/maui-skills

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

MITAuto-check passedMobile

Install Maui Hot Reload Diagnostics

skills CLI
$ npx skills add davidortinau/maui-skills --skill maui-hot-reload-diagnostics -a claude-code

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

GitHub CLI
$ gh skill install davidortinau/maui-skills maui-hot-reload-diagnostics --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-hot-reload-diagnostics .claude/skills/maui-hot-reload-diagnostics && 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-hot-reload-diagnostics
GitHub stars
175
Token cost
~1.3k tokens
SKILL.md length
489 words
Files
3 (incl. scripts, references)
Skills in repo
41
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 4 steps: Identify what's failing: XAML Hot Reload… → Check run configuration: Must be Debug… → Save file and re-execute code path: C#… → …
  • : hot reload not working
  • SKILL.md covers Quick diagnosis checklist, ⚠️ File encoding requirement, Common issues and fixes and Framework-specific pitfalls, plus 3 more sections
  • Runs Shell scripts from its folder; calls dotnet

What it does

Maui Hot Reload Diagnostics is an agent skill from davidortinau/maui-skills. Diagnose and troubleshoot .NET MAUI Hot Reload issues (C Hot Reload, XAML Hot Reload, Blazor Hybrid). Covers all UI approaches (XAML, MauiReactor, C Markup, Blazor Hybrid), Visual Studio, VS Code, environment variables, encoding requirements, and MetadataUpdateHandler. USE FOR: "hot reload not working", "XAML hot reload", "C hot reload", "UI not updating", "hot reload troubleshooting", "MetadataUpdateHandler", "hot reload Blazor Hybrid", "hot reload VS Code", "DOTNETWATCH". DO NOT USE FOR: general build errors…

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/hot-reload-setup.md` and `scripts/diagnose-hot-reload.sh`).

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

When your agent uses it

  • : hot reload not working
  • XAML hot reload
  • UI not updating
  • Hot reload troubleshooting

Example prompts

  • “hot reload not working”
  • “XAML hot reload”
  • “C hot reload”
  • “/maui-hot-reload-diagnostics”

Requirements

  • A Bash shell

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Identify what's failing: XAML Hot Reload (.xaml changes) vs C# Hot Reload (.cs changes)
  2. Check run configuration: Must be Debug config, started with F5/debugger attached
  3. Save file and re-execute code path: C# changes require re-triggering the code
  4. Check Hot Reload output: View > Output > "Hot Reload" (VS) or "C# Hot Reload" (VS Code)

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

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • dotnet

    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 Hot Reload Diagnostics loads about 1.3k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 167 tokens; SKILL.md has 489 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~167
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

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); the scripts in this folder are not scanned.

SKILL.md

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

Download SKILL.mdSave it as .claude/skills/maui-hot-reload-diagnostics/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
maui-hot-reload-diagnostics
description
Diagnose and troubleshoot .NET MAUI Hot Reload issues (C# Hot Reload, XAML Hot Reload, Blazor Hybrid). Covers all UI approaches (XAML, MauiReactor, C# Markup, Blazor Hybrid), Visual Studio, VS Code, environment variables, encoding requirements, and MetadataUpdateHandler. USE FOR: "hot reload not working", "XAML hot reload", "C# hot reload", "UI not updating", "hot reload troubleshooting", "MetadataUpdateHandler", "hot reload Blazor Hybrid", "hot reload VS Code", "DOTNET_WATCH". DO NOT USE FOR: general build errors (not hot reload related), app lifecycle events (use maui-app-lifecycle), or performance profiling (use maui-performance).

.NET MAUI Hot Reload Diagnostics

Systematically diagnose Hot Reload failures for .NET MAUI apps.

Quick diagnosis checklist

  1. Identify what's failing: XAML Hot Reload (.xaml changes) vs C# Hot Reload (.cs changes)
  2. Check run configuration: Must be Debug config, started with F5/debugger attached
  3. Save file and re-execute code path: C# changes require re-triggering the code
  4. Check Hot Reload output: View > Output > "Hot Reload" (VS) or "C# Hot Reload" (VS Code)

⚠️ File encoding requirement

CRITICAL: All .cs files must be UTF-8 with BOM encoding.

bash
# 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

Common issues and fixes

"Nothing happens when I save"
  1. Verify Debug configuration (not Release)
  2. Check Hot Reload output for errors
  3. Ensure file is saved (not just modified)
  4. Re-execute the code path (navigate again, tap button again)
"Unsupported edit" / "Rude edit"

Some changes always require app restart:

  • Adding/removing methods, fields, properties
  • Changing method signatures
  • Modifying static constructors
  • Changes to generics
XAML changes don't apply (iOS)
  • ⚠️ Set Linker to Don't Link in iOS build settings
  • Config must be named exactly Debug
  • Don't use XamlCompilationOptions.Skip
Changes apply but UI doesn't update
  • For C#: Must re-trigger the code (re-navigate, re-tap)
  • Check for cached binding values or state
  • Verify you're editing the correct target framework file

Framework-specific pitfalls

MauiReactor v3+
xml
<!-- ✅ Correct — feature switch in .csproj -->
<ItemGroup Condition="'$(Configuration)'=='Debug'">
  <RuntimeHostConfigurationOption Include="MauiReactor.HotReload" Value="true" Trim="false" />
</ItemGroup>
csharp
// ❌ Wrong — v2 API, remove for v3+
.EnableMauiReactorHotReload()

⚠️ If migrating from MauiReactor v2, remove the EnableMauiReactorHotReload() call from MauiProgram.cs.

C# Markup (CommunityToolkit.Maui.Markup)

Key points — missing any of these breaks hot reload:

  • ⚠️ Extract UI building into a separate Build() method
  • ⚠️ Implement ICommunityToolkitHotReloadHandler on any page/view needing refresh
  • The OnHotReload() method is called automatically after C# hot reload
  • Must call .UseMauiCommunityToolkitMarkup() in MauiProgram.cs
Blazor Hybrid limitations

These changes always require restart:

  • Adding new components
  • Modifying @inject services
  • Static asset changes (images, fonts)
  • Changes to Program.cs or MauiProgram.cs

These usually work without restart:

  • Razor markup and C# code block changes
  • CSS changes (may need hard refresh if cached)
  • Changing component parameters

⚠️ CSS isolation: If .razor.css changes don't apply, verify the isolated CSS file is properly linked.

Show full SKILL.md (169 more words)Show less

Decision framework — which hot reload type?

UI approachWhat reloadsWatch out for
XAML.xaml files (instant)Linker must be off on iOS; config must be "Debug"
C# code-behindMethod bodies onlyMust re-trigger code path; rude edits require restart
MauiReactor v3+Component re-renderNeed RuntimeHostConfigurationOption, not code call
C# MarkupBuild() method bodyMust implement ICommunityToolkitHotReloadHandler
Blazor Hybrid.razor + .cssNew components/services need restart

Debugging tips

  • ⚠️ Always check the Hot Reload output window first — it tells you exactly why a change was rejected.
  • Enable detailed logging with env vars before launching IDE (see references/hot-reload-setup.md).
  • Binary logs (dotnet build -bl:build.binlog) help diagnose build-related hot reload failures.
  • When reporting bugs, include: dotnet --info, workload list, binary log, and Hot Reload output.

Quick checklist

  • Debug configuration selected (not Release)
  • Debugger attached (F5, not Ctrl+F5)
  • All .cs files are UTF-8 with BOM
  • Hot Reload output window checked for errors
  • Code path re-triggered after C# changes
  • MauiReactor: RuntimeHostConfigurationOption in .csproj (not code call)
  • C# Markup: ICommunityToolkitHotReloadHandler implemented
  • Blazor Hybrid: not changing services/startup code

© 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 2 other files (scripts, references) in plugins/maui-skills/skills/maui-hot-reload-diagnostics of davidortinau/maui-skills.

  • SKILL.md
  • references/hot-reload-setup.md
  • scripts/diagnose-hot-reload.sh

Open the folder on GitHubat commit 79bb4bf

Compare with similar skills

Maui Hot Reload Diagnostics 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 Hot Reload Diagnostics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Maui Hot Reload Diagnostics this skilldavidortinau/maui-skills175—~1.3kAutomated 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 6 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 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
  • Maui Authentication

    davidortinau/maui-skills

    Add authentication to .NET MAUI apps. An agent skill from davidortinau/maui-skills.

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

Categories

Questions about Maui Hot Reload Diagnostics

What does Maui Hot Reload Diagnostics do?

Diagnose and troubleshoot .NET MAUI Hot Reload issues (C Hot Reload, XAML Hot Reload, Blazor Hybrid). Maui Hot Reload Diagnostics is an agent skill from davidortinau/maui-skills.NET MAUI Hot Reload issues (C Hot Reload, XAML Hot Reload, Blazor Hybrid).

When should I use Maui Hot Reload Diagnostics?

Maui Hot Reload Diagnostics fits situations like: : hot reload not working; XAML hot reload; UI not updating; hot reload troubleshooting.

How do I install Maui Hot Reload Diagnostics in Claude Code?

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

How do I install Maui Hot Reload Diagnostics in Codex?

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

Can I use Maui Hot Reload Diagnostics 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-hot-reload-diagnostics -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-hot-reload-diagnostics, .gemini/skills/maui-hot-reload-diagnostics, .github/skills/maui-hot-reload-diagnostics and .opencode/skills/maui-hot-reload-diagnostics in your project.

What does Maui Hot Reload Diagnostics need to run?

Going by SKILL.md and its folder, Maui Hot Reload Diagnostics needs a shell for the scripts in its folder and the command-line tools its instructions call (dotnet). Our summary lists: A Bash shell.

Does Maui Hot Reload Diagnostics 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 Hot Reload Diagnostics 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Maui Hot Reload Diagnostics use?

Maui Hot Reload Diagnostics 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 Hot Reload Diagnostics use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Maui Hot Reload Diagnostics?

Skills that share tags, products or a category with Maui Hot Reload Diagnostics: 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 Hot Reload Diagnostics?

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.