microsoft/microsoft-ui-reactor/pipeline

Claude Code and agent skill by microsoft/microsoft-ui-reactor

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install microsoft/microsoft-ui-reactor/pipeline

SKILL.md

The same SKILL.md was published earlier as microsoft/microsoft-ui-reactor/pipeline.

AI Author Skill — Reactor Documentation Generator

You are an AI technical writer generating documentation for Microsoft.UI.Reactor (Reactor), a declarative UI framework for building native Windows apps in C#. Your output must work with the dotnet run --project tools/Reactor.DocPipeline -- compile pipeline.

Pipeline Overview

The doc system has two inputs and one output per topic:

  1. Template (docs/_pipeline/templates/<topic>.md.dt) — Markdown with YAML

front-matter, snippet directives, screenshot references, and ai:lock sections.

  1. Doc App (docs/_pipeline/apps/<topic>/) — A compilable Reactor app containing

snippet-marked code and a doc-manifest.yaml for screenshots.

  1. Output (docs/guide/<topic>.md) — Final compiled Markdown with

snippets inlined and screenshot paths resolved.

You produce both the template and the doc app. The compile pipeline does the rest.


Template Format (.md.dt)

Front-Matter
yaml
---
title: "Human-readable title"
app: <topic-id> # matches the docs/_pipeline/apps/<topic-id>/ directory
order: 3 # sort order in the final docset
audience: beginner|intermediate|advanced
goal: |
2-4 sentence description of what this page should accomplish.
Written as a directive to you, the AI author.
tier: stub|solid|comprehensive # quality bar (spec 041 §6); see "Tiers" below
winui-ref: https://learn.microsoft.com/en-us/windows/apps/design/controls/...
# optional — only on pages that wrap a WinUI control
---
Tiers (tier: field)

Every page declares one tier. The dotnet run --project tools/Reactor.DocPipeline -- compile --validate-only lint enforces the structural checklist below. Pick the tier the page is meant to be; do not mark a page Comprehensive that doesn't meet the bar.

Every tier also opens with a page summary: the first paragraph after the # title is plain prose, has no links, and is at most 420 characters. The docs site shows it as the page subtitle, and npm run site in docs/_website fails a page that has none (reference/ pages are exempt).

TierStructural minimumWhen to use
stubfront-matter + title + one paragraphPlaceholder for surface visibility while you draft. "Coming soon" content.
solid≥3 resolved snippet= refs, ≥1 screenshot://, a Markdown reference table, ## Tips, ## Next Steps with ≥3 linksDefault bar for any new page. Code-first, working examples, modifier table.
comprehensiveAll solid checks plus an ≥80-word mental-model lead before the first ##, ≥1 <!-- ai:caveat --> block, ## Patterns heading, ## Common Mistakes heading, ≥5 inline cross-links, winui-ref: if the page wraps a WinUI controlTop-traffic pages and Under-the-hood deep dives.

Stub example:

yaml
---
title: "Persistence"
app: persistence
order: 14.5
audience: intermediate
goal: "Coming soon — UsePersisted, scopes, and migration."
tier: stub
---

Solid example:

yaml
---
title: "Forms"
app: forms
order: 7
audience: intermediate
goal: "Cover every form control with controlled-input idioms and validation."
tier: solid

Comprehensive example:

yaml
---
title: "Date Pickers"
app: date-pickers
order: 7.6
audience: intermediate
goal: "DatePicker, CalendarDatePicker, CalendarView, TimePicker — full coverage."
tier: comprehensive
winui-ref: https://learn.microsoft.com/en-us/windows/apps/design/controls/date-picker
---

When winui-ref: is present, the compiler emits a styled "WinUI reference" blockquote at the top of the generated page. Use it for transparent-wrapper pages so readers reach Microsoft's design guidance in one click. Reactor- original controls (DataGrid, VirtualList, FlexPanel, MarkdownTextBlock, ErrorBoundary, AccessibilityScanner) do not set winui-ref: — the Reactor page is the reference.

Body Directives

Snippet insertion — reference code from the doc app by ID:

markdown
​

The pipeline replaces this with the extracted code between // <snippet:id> and // </snippet:id> markers in the doc app source. The snippet is auto-deindented.

Screenshot insertion — reference a screenshot defined in the manifest:

markdown
![Alt text](screenshot://<topic>/<screenshot-id>)

The pipeline replaces screenshot:// with a relative path like images/<topic>/<screenshot-id>.png.

Locked sections — content the AI must not modify:

markdown
<!-- ai:lock -->
> **Prerequisites:** .NET 10+ and the Windows App SDK.
<!-- /ai:lock -->

When regenerating or revising a template, preserve ai:lock sections exactly. These contain legally reviewed text, precise API signatures, or version-pinned instructions.

Caveats — per-API gotchas, rendered as a "Caveat" callout (React-style):

markdown
<!-- ai:caveat -->
`UseEffect` runs **after** the render commit, not during. State you set
inside an effect causes a second render, which the compiler will warn about
if the dep array is missing.
<!-- /ai:caveat -->

Comprehensive pages must include at least one <!-- ai:caveat --> block. A missing close tag fails compile with REACTOR_DOC_CAVEAT_001.

Tabs, steps and prompts — the docs site turns these markers into its Tabs, Steps and Prompt components. They are HTML comments, so the page in docs/guide still reads as plain Markdown on GitHub:

`markdown
<!-- tabs -->
### winapp
Text and code for the first tab.
### dotnet new
Each heading at the level of the first heading starts a new tab.
<!-- /tabs -->
<!-- steps -->
1. **Install winapp.** Each item in the ordered list is one step. A bold
lead-in becomes the step title, without its trailing period.
```powershell
winget install Microsoft.WinAppCli
```
2. **Run it.** Indent code and extra paragraphs under their item.
<!-- /steps -->
<!-- prompt -->

The fenced block right after the marker becomes a prompt with a Copy button.

Use tabs for different ways to do the same thing (tools, agents, OS versions), steps for an order the reader must follow, and a prompt for text the reader pastes into a coding agent. Each tab heading keeps its anchor, and a link to that anchor opens the tab. A steps block can't hold tabs or another steps block. docs/_website/scripts/sync.mjs writes a page that uses a marker as .mdx, and fails the sync with the file and line of a marker that is not closed or not followed by the right content.

Reference-page link marker — link to an auto-generated reference page (Section 10 of the index) from a guide page:

markdown
The state hook (<!-- ref:UseState -->) is the building block.

The marker accepts either a short name (<!-- ref:UseState -->) or a full XML-doc cref (<!-- ref:M:Microsoft.UI.Reactor.Hooks.UseState -->). The compiler resolves it to a relative link into docs/guide/reference/<category>/<page>.md and also feeds the reverse "Learn more" links that appear on the reference page. Use the marker inline in prose — it is the only Reactor-specific syntax for cross-axis linking; everything else is standard XML doc <see cref="..."/> / <seealso cref="..."/> in the source.

Cross-link analyzer (`REACTOR_DOC_XLINK_001`) — dotnet run --project tools/Reactor.DocPipeline -- compile walks every prose paragraph and flags any mention of a concept that has its own page when that mention is not already a link. The concept registry is built from (a) template titles, (b) optional concept-aliases: declared in front-matter, and (c) reference-page filenames (UseFocusTrap, DataGrid, …). Single-word common-noun titles (Hooks, Focus, Reactor) are filtered out by default to avoid English-usage false positives — opt them in via concept-aliases: if the page truly owns that exact word as a concept.

Single-page exemptions use a paragraph-scoped marker:

markdown
<!-- xlink:skip -->
This paragraph mentions UseState and UseEffect on purpose without
linking; the rule resumes at the next blank line.

A finer-grained form silences just one concept:

markdown
<!-- xlink:skip "UseFocusTrap" -->
UseFocusTrap appears here unlinked; other concepts are still enforced.

Use sparingly. The right fix for most findings is to add the link — inline the concept name as the link text. Do not insert "see also X" sentences or "click here for more on X" — link the noun in the existing prose. The opt-out exists for comparison pages and other contexts where linking every mention hurts flow.

Optional front-matter for opting single-word concepts in:

yaml
concept-aliases: "Trampoline, Cross-thread dispatch"

Doc App Structure

Each topic has a companion app in docs/_pipeline/apps/<topic>/:

docs/_pipeline/apps/my-topic/
my-topic.csproj # Standard Reactor project
App.cs # Main source with snippet markers
doc-manifest.yaml # App config + screenshot definitions
.csproj Template
xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0-windows10.0.22621.0</TargetFramework>
<Platforms>x64;ARM64</Platforms>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseWinUI>true</UseWinUI>
<WindowsPackageType>None</WindowsPackageType>
</PropertyGroup>
<ItemGroup>
<!-- Version is centrally managed via the repo-root Directory.Packages.props
(WindowsAppSDKVersion). Do NOT add a Version attribute here — under
Central Package Management an inline Version fails restore (NU1008). -->
<PackageReference Include="Microsoft.WindowsAppSDK" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Reactor\Reactor.csproj" />
</ItemGroup>
</Project>
Snippet Markers

Mark extractable code regions in .cs files:

csharp
// <snippet:my-snippet>
var (count, setCount) = UseState(0);
return VStack(
Text($"Count: {count}"),
Button("+1", () => setCount(count + 1))
);
// </snippet:my-snippet>

Rules:

  • IDs must be unique within the app.
  • Snippets can nest (outer includes inner code, not markers).
  • Keep snippets short — under 30 lines. If longer, split into focused pieces.
  • Snippets are auto-deindented to the minimum indentation level.
  • Do not include using statements or class declarations in snippets unless

they are the point of the snippet. The template prose provides that context.

Source-tree snippets (snippet="source:...")

There are two snippet forms. Use the right one for the page.

  1. Doc-app form — for everything teaching the public API:

``markdown `csharp snippet="hooks/usestate-counter" `​ ``

Resolves against docs/_pipeline/apps/<topic>/. This is the default. The code must come from a real compilable doc app that ships with the docset; reviewers should be able to launch it and see the screenshot.

  1. Source-tree form — for the Under-the-hood track (spec §7.1.1) and

any reference-grounded prose that shows real framework internals:

``markdown `csharp snippet="source:src/Reactor/Hooks/UseState.cs#main" `​ ``

Resolves against the repo source tree. Region markers in the source look exactly like the doc-app markers:

``csharp // <snippet:main> public static (T, Action<T>) UseState<T>(T initial) { ... } // </snippet:main> ``

The source: prefix is the disambiguator — anything before the # is the path under repo root. Use this form when the page is about the framework's own behavior (reconciliation, hooks-internals, animation pipeline). Do not use it on user-facing topic pages — those should stay grounded in a doc app the reader can run themselves.

doc-manifest.yaml

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 3 Oct 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/microsoft-ui-reactor/pipeline/badge)](https://verified-skill.com/skills/microsoft/microsoft-ui-reactor/pipeline)

Something wrong with this skill or its page? Tell us.