microsoft/microsoft-ui-reactor/microsoft-ui-reactor
Claude Code and agent skill by microsoft/microsoft-ui-reactor
- vendor
Checking that the SKILL.md file is still in the repository.
Create WinUI 3 desktop applications using the Reactor framework — a React-inspired declarative C# projection over WinUI 3. No XAML, no data binding, no templates. This file is the legacy single-file skill — prefer the `reactor` plugin under `plugins/reactor/` (or `agentkit/plugins/reactor/` in the NuGet) for a more efficient skill-loading experience.
Install
npx vskill@latest install microsoft/microsoft-ui-reactor/microsoft-ui-reactorSKILL.md
The same SKILL.md was published earlier as microsoft/microsoft-ui-reactor/microsoft-ui-reactor.
Reactor — Getting Started
Prefer the plugin. This file is preserved for environments that don'tsupport the Copilot CLI / Claude plugin loading model. If you have a pluginSDK available, install / load thereactorplugin (underplugins/reactor/in source, oragentkit/plugins/reactor/in the NuGet).The plugin splits this content into focused per-skill files and is materiallycheaper to load than this monolith.
Reactor is a React-inspired functional projection for WinUI 3. You write functions that return lightweight element descriptions; a reconciler diffs old vs new trees and patches real WinUI controls. State changes trigger re-renders automatically. No XAML. No data binding. No ViewModels.
Which mode are you in? (read this first)
Reactor ships as a NuGet package — apps reference it as <PackageReference Include="Microsoft.UI.Reactor" Version="…" /> (or #:package Microsoft.UI.Reactor@… for single-file). The package carries the framework, the analyzers, and an agent kit (signatures index + this SKILL.md). Two paths:
| Mode | How to detect | Bootstrap | |
|---|---|---|---|
Selfhost — you're in a Reactor source clone (src/Reactor/Reactor.csproj exists) | The repo's local-nupkgs/ folder is the package source — see nuget.config at repo root. | Build mur once, then `mur pack-local` to populate local-nupkgs/Microsoft.UI.Reactor.0.0.0-local.nupkg. Re-run after framework changes. | |
| Consumer — you're in an app that depends on Microsoft.UI.Reactor | No src/Reactor/ next to your project. | Nothing extra — the package already carries the analyzers and agent kit. If mur is on PATH, mur --skill and mur --api print the embedded docs. Otherwise read <package-cache>/microsoft.ui.reactor/<version>/agentkit/. |
If you're in selfhost and local-nupkgs/ is empty, restore will fail with "package Microsoft.UI.Reactor 0.0.0-local was not found." Run mur pack-local to fix it.
Bootstrap (selfhost, fresh clone)
After this, any project under the clone resolves Microsoft.UI.Reactor 0.0.0-local from local-nupkgs/ automatically (the repo-level nuget.config configures it). A consumer outside the clone needs a project-local nuget.config pointing at the absolute path of <repo>/local-nupkgs/.
Where to find docs (mur --skill, mur --api)
The mur CLI ships these embedded — works from any directory:
| Command | What it prints | Source | |
|---|---|---|---|
mur --skill | This SKILL.md | embedded in mur | |
mur --api | The signatures index (≈70K tokens: every factory/modifier/hook/Theme token/enum, plus ctors/properties/methods/events on every public type — including static classes like ControlRegistry and ReactorApp) | embedded in mur | |
mur --regen-api | Rebuilds skills/reactor.api.txt from a freshly-built Microsoft.UI.Reactor.dll (selfhost only) | rebuilds tools/Reactor.SignaturesGen | |
mur check <path> | Is the build (same exit code as dotnet build); adds one-line diagnostics with skill pointers for known REACTOR_* IDs and → try: did-you-mean suggestions | wraps MSBuild |
A consumer who doesn't have mur can read the same files directly from the NuGet cache:
When SKILL.md or a recipe references skills/foo.md, a consumer agent reads it from agentkit/skills/foo.md in the package cache. Selfhost agents read it from <repo>/skills/foo.md.
API signatures index — load this before grepping source
`skills/reactor.api.txt` is a generated, alphabetized flat list of every public Factory, Modifier, Hook, Theme token (with WinUI resource key), and enum in Reactor. Load this when you need to confirm a signature. It replaces grepping src/Reactor/Elements/*.cs and walking the sub-skills' tables.
- Local / selfhost: the file is committed at
skills/reactor.api.txt.
Run mur --api to print it. Run mur --regen-api after framework changes.
- NuGet consumer: the same file ships in the package at
<package-cache>/microsoft.ui.reactor/<version>/agentkit/reactor.api.txt (typically %USERPROFILE%\.nuget\packages\microsoft.ui.reactor\<version>\agentkit\reactor.api.txt). If mur is on PATH, mur --api prints the embedded copy.
Recipes — paste-ready snippets indexed by intent
`skills/recipes/` holds compilable single-file recipes for the most common Reactor patterns. Load a recipe instead of synthesizing from skill prose. See `skills/recipes/index.md` for the intent → recipe map. Available today: list-add-delete, sidebar-nav, form-with-validation, async-fetch-list, themed-card, canvas-positioning, named-styles, calendar-multiselect.
Wrapping native / third-party controls (source generator)
Need a control Reactor has no built-in factory for (a vendor control or your own custom Control)? Annotate an empty partial record and the [GenerateReactorWrapper] source generator emits the element, descriptor, registration, and a factory named after the control — no hand-written wrapper:
Full guidance — auto-inference, the [Wrap*] annotation cheat-sheet, imperative lifecycle, diagnostics, and a gallery of worked examples — is in the reactor-wrapping skill (plugins/reactor/skills/reactor-wrapping/, or agentkit/plugins/reactor/skills/reactor-wrapping/ in the nupkg). Spec: docs/specs/058-control-wrapper-generator.md.
mur check — fast feedback 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 afterwards is wasted work.
Two enrichments over raw dotnet build:
- Skill pointers for known
REACTOR_*IDs. - Did-you-mean `→ try:` suggestions for unknown identifiers, computed against
the live Reactor surface for the exact diagnostic.
<path> defaults to . and accepts a .csproj or directory. Single-file .cs builds work but don't load analyzers — for analyzer coverage, use a .csproj.
Trust `→ try:` suggestions directly. Use the suggested name verbatim in your next edit; don't grep adjacent or sibling names to second-guess it. The suggestion has been computed against the actual Reactor surface for this exact diagnostic. If wrong, the next mur check will tell you — that self-correcting loop is cheaper than manual verification.
Don't introspect via `[System.Reflection]` to enumerate Reactor types or members — the skill files plus mur check's did-you-mean suggestions plus skills/reactor.api.txt cover the surface.
Workflow modes (Phase-2 ranker):
mur check— iteration mode (default). A ranker suppresses cosmetic noise
(CS1591 XML doc, CS0168 unused-var, IDE0xxx style, NuGet restore chatter) mid-iteration so the real blocker doesn't scroll off attention. When this exits 0, you are done — the build is green.
mur check --final— optional pre-merge sweep. Emits the cosmetic
diagnostics suppressed during iteration (XML doc, unused locals, style hints, nullable warnings, transient restore noise). For human code review or a CI ship-readiness gate; not a task-completion requirement and skipping it is fine.
mur check -- <msbuild args>— anything after a bare--is forwarded
verbatim to dotnet build (override platform, config, restore, verbosity).
Sub-skills — load when the task calls for them
| Skill | When to load | |
|---|---|---|
| `skills/async.md` | Fetching data, caching, pagination, optimistic writes. UseResource, UseMutation, UseInfiniteResource, Pending. | |
| `skills/design.md` | Any visual-styling work. Windows 11 design rules — theme tokens, High Contrast, typography, 4px grid, acrylic surfaces, accessibility. | |
| `skills/commanding.md` | Actions that appear in multiple surfaces (menu + toolbar), need keyboard shortcuts, or need CanExecute. Command, StandardCommand, UseCommand, CommandHost. | |
| `skills/devtools.md` | Drive a running app via mur devtools — screenshot, inspect visual tree, click/type/scroll, read hook state. Load when diagnosing visible bugs (layout, contrast) or verifying a change landed. | |
| `skills/navigation.md` | Multi-page apps, sidebar/tab navigation, routes, deep linking, page transitions, caching. UseNavigation, NavigationHost, NavigationView, TabView. | |
| `skills/forms.md` | Data-entry screens, validation, masked/formatted input. UseValidationContext, FormField, MaskEngine, InputFormatter. | |
| `skills/input.md` | Gestures, pointer events, drag-and-drop, focus management. OnPan, OnPinch, OnRotate, OnDragStarting, UseElementFocus. | |
| `skills/charts.md` | Data visualization — choosing a chart type (incl. donut, TreeChart, ForceGraph), the chart DSL, the LabelView / XTickLabelView / YTickLabelView extension points for icon-plus-text and rich labels, plus the visualization-best-practices rules to refuse to break. | |
| `skills/dsl-reference.md` | Look up signatures — every factory, modifier, and enum in the DSL. |
Project Setup
.csproj (copy exactly)
In selfhost the version is 0.0.0-local (produced by mur pack-local — see "Which mode are you in?" above). Outside the source clone, replace it with whatever Microsoft.UI.Reactor version you depend on.
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 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- Repository stars
- 752
- Repository forks
- 57
- 7-day trend score
- 32
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/microsoft-ui-reactor)