mcpbeat

Reactor Recipes

microsoft/reactor-recipes

Paste-ready single-file Reactor recipes indexed by intent — list with add/delete/toggle, sidebar navigation between pages, form with validation + submit gating, async fetch with loading/error/data states, themed Win11 card surface. Use a recipe instead of synthesizing from prose: copy, adjust, ship.

10k tokens
context cost
the whole folder, loaded on every use
12
files
instructions only
0
copies elsewhere
how many repositories repackaged it
604
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/microsoft/microsoft-ui-reactor --skill reactor-recipes

What comes with it

36 962 bytes besides the instruction
references/animated-list.md
references/async-fetch-list.cs
references/calendar-multiselect.cs
references/canvas-positioning.cs
references/form-with-validation.cs
references/index.md
references/list-add-delete.cs
references/named-styles.cs
references/sidebar-nav.cs
references/themed-card.cs
references/use-custom-hook.cs

The instruction itself

4 sections, as written by the author

How to use this skill

Each recipe is a complete, compilable single-file program. Copy the file's body directly into your project; don't synthesize the pattern from scratch. The recipes use real Reactor APIs only — no pseudocode.

The full recipe content is in references/<name>.cs. Read just the recipe(s) that match your intent.

Intent → recipe map

| Intent | Recipe | APIs used |

|---|---|---|

| Add / remove / toggle items in a list | references/list-add-delete.cs | UseReducer, WithKey, Command |

| Animate list insert / move / remove | references/animated-list.md | Animations.Animate, AnimationKind, IReactorKeyed, UseReducedMotion |

| Sidebar navigation between pages | references/sidebar-nav.cs | UseNavigation, NavigationView, NavigationHost, WithNavigation |

| Form with validation + submit gating | references/form-with-validation.cs | UseValidationContext, FormField, Validate.*, ShowWhen |

| Fetch data with loading / error / data states | references/async-fetch-list.cs | UseResource, AsyncValue<T>.Match |

| Themed Win11 card surface | references/themed-card.cs | Theme.* tokens, Border, FlexColumn, .Padding, .CornerRadius, .WithBorder |

| Absolute positioning with Canvas | references/canvas-positioning.cs | Canvas, .Canvas(left, top), .CenterAt, shapes |

See references/index.md for the full index.

Recipe contract

A good recipe:

  • Compiles standalone (dotnet run works against the file).
  • Targets one intent — no kitchen-sink demos.
  • Stays under ~120 lines including imports and ReactorApp.Run shell.
  • Uses real Reactor APIs only.
  • Comments only the *non-obvious*.

Adapting a recipe

The recipes use #:package [email protected] (selfhost default). Replace the version with whatever you depend on outside the source clone.

If you need analyzer coverage (REACTOR_DSL_001 and friends), promote the recipe to a .csproj — single-file .cs builds don't load analyzers. See reactor-getting-started for the .csproj template.

How to use it

Copy the folder

Take microsoft/reactor-recipes from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.