microsoft/microsoft-ui-reactor/pipeline
Claude Code and agent skill by microsoft/microsoft-ui-reactor
- vendor
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install microsoft/microsoft-ui-reactor/pipelineSKILL.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:
- Template (
docs/_pipeline/templates/<topic>.md.dt) — Markdown with YAML
front-matter, snippet directives, screenshot references, and ai:lock sections.
- Doc App (
docs/_pipeline/apps/<topic>/) — A compilable Reactor app containing
snippet-marked code and a doc-manifest.yaml for screenshots.
- 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
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).
| Tier | Structural minimum | When to use | |
|---|---|---|---|
stub | front-matter + title + one paragraph | Placeholder 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 links | Default bar for any new page. Code-first, working examples, modifier table. | |
comprehensive | All 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 control | Top-traffic pages and Under-the-hood deep dives. |
Stub example:
Solid example:
Comprehensive example:
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:
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:
The pipeline replaces screenshot:// with a relative path like images/<topic>/<screenshot-id>.png.
Locked sections — content the AI must not modify:
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):
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:
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:
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:
A finer-grained form silences just one concept:
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:
Doc App Structure
Each topic has a companion app in docs/_pipeline/apps/<topic>/:
.csproj Template
Snippet Markers
Mark extractable code regions in .cs files:
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
usingstatements 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.
- 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.
- 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
- SKILL.md in the repositoryCheckingdocs/_pipeline/ai-author-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/pipeline)