microsoft/microsoft-ui-reactor/reactor-build-and-check
Claude Code and agent skill by microsoft/microsoft-ui-reactor
- vendor
Checking that the SKILL.md file is still in the repository.
Building Reactor apps and reading diagnostics — `mur check <path>` is the build (same exit code as `dotnet build`, never re-run to confirm) with one-line diagnostics, skill pointers, and `→ try:` did-you-mean suggestions to use verbatim. Covers iteration vs `--final` workflow, the common-build-errors cheat table mapping `REACTOR_HOOKS_*` / `REACTOR_DSL_*` / `REACTOR_THEME_*` / `REACTOR_A11Y_*` / `REACTOR_OPT_*` / `CS*` IDs to fixes, when single-file vs `.csproj` matters for analyzer coverage, b…
Install
npx vskill@latest install microsoft/microsoft-ui-reactor/reactor-build-and-checkSKILL.md
The same SKILL.md was published earlier as microsoft/microsoft-ui-reactor/reactor-build-and-check.
Build & verify
Run after every non-trivial edit. Read the output — dotnet run exits with code 1 on build failure; silent ≠ success.
Single-file .cs (default for new apps)
The file header needs #:package Microsoft.Windows.SDK.BuildTools.WinApp@0.7.0, which launches the app packaged (needs Developer Mode), or #:property WindowsPackageType=None, which runs it unpackaged. With neither, the app builds, then dies at startup with REGDB_E_CLASSNOTREG. No -p:Platform is needed — only a self-contained app (#:property WindowsAppSDKSelfContained=true) needs an architecture. The Installation guide documents the packaged header.
Don't name the file after a Reactor assembly (microsoft.ui.reactor.cs, Microsoft.UI.Reactor.Advanced.cs; on packages that still ship Reactor.dll, also reactor.cs and Reactor.Advanced.cs). The file name becomes the assembly name, and assembly names are case-insensitive, so the app would load in place of Microsoft.UI.Reactor.dll. The build stops with REACTOR_BUILD_001.
Single-file builds do not load analyzers. You'll catch CS errors but not the Reactor-specific REACTOR_* warnings.
.csproj (multi-file, analyzer coverage)
Analyzers are bundled in the Microsoft.UI.Reactor package and load automatically.
mur check — structured output with skill pointers
`mur check` is the build, not a separate check step. It runs dotnet build under the hood and returns the same exit code. When mur check exits 0, the build is green — do not re-run `dotnet build` to confirm. They're the same compilation; a redundant dotnet build after a green mur check is wasted work.
Two enrichments over raw dotnet build:
- Skill pointers for known
REACTOR_*IDs — one-line links into the relevant skill section. - Did-you-mean suggestions for unknown identifiers, surfaced as
→ try: <name> // [<evidence>].
Emits one diagnostic per line:
<path> defaults to . and accepts a .csproj, a directory, or a single .cs file. Skill pointers fire only for known REACTOR_* IDs — vanilla CS errors come through with severity + code + message, plus the → try: suggestion when the suggester has a high-confidence candidate.
If mur isn't on PATH, fall back to dotnet build and read the output directly. Don't spelunk the package cache for it — mur is published with the framework but is a separate install.
→ try: suggestions — trust them
When mur check emits → try: <name>, use that exact name in your next edit. The suggestion has already been computed against the live Reactor surface for this exact diagnostic — do not search adjacent or sibling names in the codebase, the skill cache, or `reactor.api.txt` to second-guess it. If the suggestion turns out to be wrong, the next mur check will tell you and emit a new suggestion. That self-correcting cycle is the cheap inner loop; manual verification breaks it.
Anti-pattern: agents who treated → try: as a hint to verify (re-grepping the namespace, reading reactor.api.txt, calling into reflection) regressed in evals because the verification cost dwarfed the cost of just trying the suggestion and letting the next build correct it.
Iteration vs --final
mur check (no flag) is iteration mode: a ranker suppresses noise (CS1591 XML-doc, CS0168 unused-var, IDE0xxx style hints, NuGet restore chatter) so you only see what's actually blocking the build. Run this inside the fix loop.
When mur check exits 0, you are done — the build is green. mur check --final is an optional pre-merge sweep that re-runs the build and emits the cosmetic/transient diagnostics the iteration ranker suppressed (XML doc gaps, unused locals, style hints, nullable warnings, NuGet restore chatter). It's the right tool for human code review or a CI ship-readiness gate. It does not gate task completion — running it is not required to declare done; if you choose to run it, treat any new diagnostics it surfaces as polish work, not blockers.
Additional flags:
mur check --strict— promotes warnings to errors. Use for one-shot CI gates; not the inner loop.mur check --quiet— errors only. For sub-iteration loops where you want the smallest possible signal.mur check -- <msbuild args>— anything after--is forwarded verbatim todotnet build. Override platform, config, restore, verbosity:
``powershell mur check -- -p:Platform=x64 mur check --final -- -c Release --no-restore ` mur auto-injects --nologo, -v:m, and -p:Platform={host arch}` only if you didn't already name the same flag in the passthrough section.
Common build errors — cheat table
| ID | Severity | What it means | Fix | |
|---|---|---|---|---|
CS9137 | error | "The 'interceptors' feature is not enabled in this namespace." The source-map generator emitted an interceptor but InterceptorsNamespaces does not list Microsoft.UI.Reactor.Generated. | You almost never hit this from a PackageReference — build/Microsoft.UI.Reactor.targets pairs the two settings automatically. It appears when a project sets <ReactorSourceMap>true</ReactorSourceMap> in its own body after the targets were imported (in-repo projects, where Directory.Build.props imports them early). Add <InterceptorsNamespaces>$(InterceptorsNamespaces);Microsoft.UI.Reactor.Generated</InterceptorsNamespaces> alongside it, or drop the explicit property and let the Debug default apply. | |
REACTOR_HOOKS_001 | warning | Hook called inside if / for / while / switch / try | Move the hook to the top of Render(). Use the result conditionally, not the call. | |
REACTOR_HOOKS_004 | warning | Hook deps contains a freshly-allocated object/array/lambda | Memoize with UseMemo, hoist to a field, or project to a scalar key. | |
REACTOR_HOOKS_005 | warning | Hook called outside Render() or a custom-hook method | Move the call into Render() or a Use* helper. Hooks read slot state that only exists during render. | |
REACTOR_HOOKS_006 | info | UseResource fetcher looks non-idempotent (Post*/Create*/Delete*/Save*) | Use UseMutation for writes — UseResource re-runs on deps change, retry, focus revalidation. | |
REACTOR_HOOKS_007 | warning | UseMemoCells builder closure missing dependencies | Add the captured variable to the deps array. | |
REACTOR_HOOKS_009 | warning | Command.DebounceMs set on a command bound without UseCommand | Route it through UseCommand: var cmd = UseCommand(new Command { …, DebounceMs = 1500 });. The debounce window lives in the hook store, so a raw bound Command never debounces. | |
REACTOR_STATE_001 | warning | A Component subclass implements INotifyPropertyChanged (MVVM habit) | The render loop never subscribes to a component's INPC, so PropertyChanged is invisible and does nothing. Hold reactive state with UseState, or wrap an external observable source with UseObservable. | |
REACTOR_HOOKS_011 | warning | Controlled input (e.g. TextBox(name, _ => { })) has a state-derived value but an empty/parameter-ignoring change callback — user edits are dropped (fake Mode=OneWay) | Feed the new value back into state: TextBox(name, v => setName(v)). For a genuinely read-only display, make it explicit — TextBox(name, _ => { }).IsReadOnly(true) — never .IsEnabled(false). | |
REACTOR_HOOKS_003 | warning | UseEffect(async () => …) compiles as async void — exceptions escape the flush pipeline, cleanup decouples from the await, the setter can fire after unmount | Move the awaited work into a local async Task RunAsync(CancellationToken ct) and start it from a sync effect: UseEffect(() => { var cts = new CancellationTokenSource(); _ = RunAsync(cts.Token); return () => { cts.Cancel(); cts.Dispose(); }; }, deps);. | |
REACTOR_HOOKS_010 | warning | Reference state (List/array/class) mutated in place, then the same instance re-passed to its setter — the setter compares via EqualityComparer<T>.Default, the same instance compares equal, so no re-render is scheduled | Pass a new value: setItems([.. items, item]). Never setItems(prev => …) — the setter is Action<T>, not a functional updater. | |
REACTOR_HOOKS_012 | warning | Memo(builder, dep) given a freshly-allocated array/List/plain-class dep (reference equality) — the memo never hits its stable path | Hoist the dep to a stable UseMemo/field or project it to a scalar key. Records/tuples compare by value and are fine. | |
REACTOR_HOOKS_013 | warning | UseState(new List<…>()) / UsePersisted(key, new …()) re-allocates the initial value every render; the hook only reads it once | Wrap it in UseMemo(() => new …(), []) so it allocates once. Not UseRef — it eager-allocates too. | |
REACTOR_CTX_001 | info | .Provide(ctx, new …()) of a reference-equality type (plain class/array/collection) re-allocates each render and re-renders every UseContext consumer | Memoize it: .Provide(ctx, UseMemo(() => new …(), deps)), or provide a record (context diffs by Equals). | |
REACTOR_PERF_FUNCREF | info | new Command { … } built inline in Render()/a Use* hook (re-allocated every render) | Wrap it: var save = UseMemo(() => new Command { … }, deps); to keep a stable instance across renders. Pure allocation hygiene — deps are the render values the command captures. | |
REACTOR_PERF_001 | info | Adjacent .Width(w).Height(h) or .Height(h).Width(w) while constructing a built-in element creates an avoidable intermediate copy | Use .Size(width: w, height: h), or .Size(height: h, width: w) to preserve height-first evaluation. The code fix verifies the Reactor overload and preserves the factory and original argument text. Unknown/custom receivers, object initializers, expression trees, query expressions, and comments in the rewritten portion are left alone. This reduces construction allocations, not necessarily application latency. | |
REACTOR_DSL_001 | warning | Select(...) or ForEach(...) projecting into a layout container without .WithKey(...) | items.Select(i => Row(i).WithKey(i.Id)).ToArray<Element?>(). Keys keep focus + animation state across reorders. Silent for ForEach over IReactorKeyed items — the factory keys those itself. | |
REACTOR_DSL_002 | info | .WithKey(...) keyed off the list index or a per-render value (Guid.NewGuid(), DateTime.Now/UtcNow, Random, Environment.TickCount) | Key off the item's stable id: items.Select((i, idx) => Row(i).WithKey(i.Id)). An index / per-render key re-mounts rows on insert/reorder, exactly like no key. | |
REACTOR_GRID_001 | warning | A declared Grid column/row that no child is placed in (unused track) | Remove the leftover GridSize track, or place a child there with .Grid(row:, column:). Only fires when every child's placement is statically visible. | |
REACTOR_MOD_001 | info | Same atomic-placement modifier twice in one chain (.Grid(row: 1).Grid(column: 2)) — atomic-replace, so row resets to 0 | Merge into one call: .Grid(row: 1, column: 2). Applies to .Grid/.Canvas/.RelativePanel/.Flex. | |
REACTOR_DSL_003 | warning | Typed collection (ListView<T>/GridView<T>/LazyVStack<T>/…) keySelector returns a constant/null or ignores its item | K |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 24 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/reactor/skills/reactor-build-and-check/SKILL.md
Popularity
- Repository stars
- 660
- Repository forks
- 57
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/microsoft-ui-reactor/reactor-build-and-check)