用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill maui-hot-reload-diagnostics命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | maui-hot-reload-diagnostics |
| description | > Use when this capability is needed. |
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 implementedSource: davidortinau/maui-skills — distributed by TomeVault.