agentleFS
MicrosoftKnown publishermicrosoft/microsoft-ui-reactor/plugins/reactor/skills/reactor-recipes/SKILL.md

reactor-recipes

Skill839 starsChanged 7 days agoMITView on GitHub

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.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

IntentRecipeAPIs used
Add / remove / toggle items in a listreferences/list-add-delete.csUseReducer, WithKey, Command
Animate list insert / move / removereferences/animated-list.mdAnimations.Animate, AnimationKind, IReactorKeyed, UseReducedMotion
Sidebar navigation between pagesreferences/sidebar-nav.csUseNavigation, NavigationView, NavigationHost, WithNavigation
Form with validation + submit gatingreferences/form-with-validation.csUseValidationContext, FormField, Validate.*, ShowWhen
Fetch data with loading / error / data statesreferences/async-fetch-list.csUseResource, AsyncValue<T>.Match
Themed Win11 card surfacereferences/themed-card.csTheme.* tokens, Border, FlexColumn, .Padding, .CornerRadius, .WithBorder
Absolute positioning with Canvasreferences/canvas-positioning.csCanvas, .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 Microsoft.UI.Reactor@0.0.0-local (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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.