winapp-find-ui
Skill1.3k starsChanged 2 months agoMITView on GitHub
Agent-first search of WinUI 3 controls and samples for a working code example. Built primarily for AI coding agents to pull real, compiling WinUI markup into the editor instead of inventing it, and equally usable by hand. Use when building a WinUI 3 UI and you need to discover which control fits an intent (e.g. 'tabbed layout', 'a card with an image and title', 'swipeable list rows') and get a real code example from the WinUI Gallery or the Windows Community Toolkit (Gallery/Toolkit return XAML and/or C#). The microsoft-ui-reactor ReactorGallery is an opt-in source (C#-only declarative WinUI) searched only via --source reactor. WinUI-only — not WPF/WinForms. Distinct from 'winapp ui', which automates a running app's UI, and from 'winapp find-api', which searches the API surface (types, members, enums) a project references.
Trending
More talk lately.about the whole repository
Who's talking about microsoft/winappCli
- openclaw/openclaw-windows-node“Seed v3 Colophon design system for OpenClaw Windows Hub”GitHub · Sep 10, 2026 · 1 reactions
- sudosubin/agents.nix“copilot-plugins.github.microsoft.winappcli: init at 0.7.1”GitHub · Oct 4, 2026
- P4suta/Snaply“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
- P4suta/TateYoko“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
- P4suta/typing-sound“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub and Bluesky (36 times).
On GitHub · 35
- Sep 10, 2026Seed v3 Colophon design system for OpenClaw Windows Hub — openclaw/openclaw-windows-node1 reaction · 4 comments
- Oct 4, 2026copilot-plugins.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/Snaply0 reactions · 2 comments
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/TateYoko0 reactions · 2 comments
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/typing-sound0 reactions · 1 comment
30 more on GitHub
- Oct 4, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.7.0 to 0.7.1 — mirrorpulse/MirrorPulse0 reactions
- Oct 4, 2026agent-plugins.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Bump the windows-app-sdk group with 2 updates — lzvsrx/LZ-AGENT0 reactions
- Oct 3, 2026chore(deps-node): update dependency @microsoft/winappcli to v0.7.1 — scottlz0310/md-peruse0 reactions
- Oct 2, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.1 to 0.7.1 — Has-X/Registry0 reactions
- Oct 2, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 1 comment
- Oct 2, 2026chore(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.7.1 — SheepReaper/nes-emulator-30 reactions
- Oct 2, 2026Update dependency Microsoft.Windows.SDK.BuildTools.WinApp to 0.7.1 - autoclosed — mfakane/azunyan0 reactions
- Oct 2, 2026fix(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.7.1 — sebdanielsson/varys0 reactions
- Sep 26, 2026Bump the windows-app-sdk group with 2 updates — lzvsrx/LZ-AGENT0 reactions · 1 comment
- Sep 25, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.1 to 0.7.0 — Has-X/Registry0 reactions · 1 comment
- Sep 25, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 24, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.2 to 0.7.0 — trsdn/md2loop-windows0 reactions
- Sep 18, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 12, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.5.0 to 0.6.1 — jacob-krarup-madsen/WinForge0 reactions · 1 comment
- Sep 11, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 4, 2026UI 驱动三选一:winapp ui、FlaUI、UIAutomationClient — trytoreachpeak0/8005-test-lab0 reactions · 2 comments
- Sep 3, 2026refactor: migrate MSIX packaging/signing to Microsoft's winapp CLI — recregt/winsp0 reactions
- Sep 3, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.2 to 0.6.1 — trsdn/md2loop-windows0 reactions · 1 comment
- Sep 1, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.0 to 0.6.1 — onlytrisdev/chrome-native-adblock0 reactions
- Aug 28, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 21, 2026Bump the dotnet-dependencies group with 5 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 19, 2026build(deps-dev): bump @microsoft/winappcli from 0.5.0 to 0.6.0 — baiyuscc13724-max/deepseek-harness-desktop0 reactions · 1 comment
- Aug 19, 2026fix(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.6.1 — sebdanielsson/varys0 reactions
- Aug 18, 2026chore(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.6.1 [automerge] — DevSecNinja/home-assistant-win-companion0 reactions
- Aug 14, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.1 to 0.6.0 — Has-X/Registry0 reactions · 1 comment
- Aug 14, 2026Bump the dotnet-dependencies group with 5 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 9, 2026Add Windows WinApp computer provider — albert-zen/zen0 reactions
- Jul 2, 2026using winapp cii — peaceshi/Avalonia-NativeAOT-SingleFile0 reactions
- Feb 8, 2026Electron deployment: Add Windows packaging with Microsoft WinAppCli — ok-very/autoart0 reactions
On Bluesky · 1
- May 6, 2026Does winappcli help? github.com/microsoft/wi... — @drustheaxe.bsky.social0 likes and reposts · 1 reply
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- code-qualitySkill
- pr-lifecycleSkill
- pr-reviewSkill
- spec-reviewSkill
- winapp-find-apiSkill
- winapp-frameworksSkill
- winapp-identitySkill
- winapp-manifestSkill
- winapp-mauiSkill
- winapp-packageSkill
- winapp-sandboxSkill
- winapp-setupSkill
- winapp-signingSkill
- winapp-troubleshootSkill
- winapp-ui-automationSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Fetch a real sample before writing WinUI markup: If you are about to hand-write XAML for a control you have not just looked at, search for …
- Very specific: line 20
Use
--json: Search, --id, and --list all emit stable structured shapes, and *every* failure — including parser errors — is a flat … - Distinctive: line 32
Use this skill when building a WinUI 3 UI and you need to discover which control fits an intent and get a real, working code example — …
- Very specific: line 57
Front-load lookups, then code: Search for each feature you need up front, pick the right control and scenario id, fetch its full code with …
- Very specific: line 104
Add --json for a structured, grounded result an agent can consume in one shot:
- Distinctive: line 153
Keep queries focused (one feature per query) — the lexical ranker rewards specific phrasing.
- Very specific: line 173
If a sample is missing or genuinely wrong upstream, report it against the source the result is tagged with: [gallery] → WinUI-Gallery, …
- Distinctive: line 177
If the defect looks like a cut-off snippet, a missing handler, or markup that won't parse, that's winapp's extraction — report it here …
- Very specific: line 187
Run winapp find-ui --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
This is an agent-first command
find-ui was designed for you, the agent — not primarily for a human browsing a
gallery. It exists because the failure mode it prevents is an agent-specific one:
writing plausible-looking XAML for a control whose real markup, properties, or
namespace differ from what you recall. Treat it as the source of truth for WinUI
markup:
- Fetch a real sample before writing WinUI markup. If you are about to hand-write
XAML for a control you have not just looked at, search for it first and fetch the
scenario with
--id. The returned code comes from the shipping WinUI 3 Gallery and Windows Community Toolkit, so it compiles. - Prefer it over recall and over web search. It returns code from a pinned, cached corpus of the real galleries rather than a blog post of unknown vintage.
- Use
--json. Search,--id, and--listall emit stable structured shapes, and every failure — including parser errors — is a flat{"error": "..."}on stdout with a non-zero exit code, so you can branch on the result on every path. - Pair it with
winapp find-api.find-uigives you working markup;find-apiverifies any property you then change or add.
Humans can and do run it directly, and everything below works fine typed by hand. But
the ergonomics (compact search → --id fetch, --json, exit codes) are tuned for
agent loops.
When to use
Use this skill when building a WinUI 3 UI and you need to discover which control fits an intent and get a real, working code example — without leaving the CLI or guessing at control names and APIs.
winapp find-ui searches the WinUI 3 Gallery and the Windows Community
Toolkit (plus a few curated core patterns) and returns a working code
snippet plus where it came from. A third source, the microsoft-ui-reactor
ReactorGallery, is opt-in: it is excluded from a normal search and is only
searched when you pass --source reactor.
- WinUI-only. The corpus is WinUI 3 Gallery + Windows Community Toolkit (+ Reactor when opted in). It does not cover WPF, WinForms, or other UI frameworks.
- Reactor is opt-in and for Reactor projects only. Reactor is a C#-only
declarative/MVU framework — its samples can't paste into a standard
dotnet new winuiXAML + code-behind app, so a default search deliberately omits it. Only reach for--source reactorwhen you're actually building a Reactor app. - Result shape varies by source. Gallery and Toolkit scenarios return XAML,
C#, or both (one-sided samples are kept); Reactor scenarios are C#-only
declarative WinUI (no XAML). If an upstream Gallery-style sample still contains
unresolved
$(Name)substitution placeholders,find-uisuppresses that language block rather than presenting it as pasteable code. - Distinct from
winapp ui search, which searches a running app's UI tree via UI Automation — unrelated to control/sample discovery.
Front-load lookups, then code. Search for each feature you need up front, pick
the right control and scenario id, fetch its full code with --id, then write your
XAML — don't interleave search-and-code.
Workflow
# 1. Search compactly to find the control + its scenario ids (WinUI-only)
winapp find-ui "tabbed layout"
# 2. Fetch the full XAML + C# (and prerequisite notes) for the best match
winapp find-ui --id gallery-tabview-1
# 3. Batch: fetch several scenarios at once
winapp find-ui --id gallery-tabview-1 --id toolkit-tabbedcommandbar-1Examples
# Natural-intent search
winapp find-ui "a card with an image and title"
winapp find-ui "swipeable list rows"
# Restrict to one source
winapp find-ui "settings card" --source toolkit
winapp find-ui "color picker" --source gallery
# Reactor is opt-in: excluded from a normal search, only searched with --source reactor
# (use this only for a Reactor/MVU project — its C#-only samples don't fit standard XAML apps)
winapp find-ui "flex layout" --source reactor
# Return more candidates
winapp find-ui "navigation" --max 6
# Browse everything (heavy — prefer search; excludes opt-in Reactor)
winapp find-ui --list
# Force a corpus refresh from GitHub
winapp find-ui "info bar" --refresh
# Search the built-in core patterns fully offline (no network, no fetch)
winapp find-ui "file picker" --source coreAgent-friendly output
Add --json for a structured, grounded result an agent can consume in one shot:
winapp find-ui "color picker" --json- Search →
{ query, matchCount, matches: [ { source, control, score, description?, scenarios: [ { id, header } ] } ] }— compact; use theidvalues to fetch code. --id→{ results: [ { id, found, content } ] }—contentis the code markdown block (XAML and/or C# for Gallery/Toolkit; C# only for Reactor).--list→{ count, items: [ { id, header } ] }.- On error,
--jsonemits{ "error": "..." }on stdout with a non-zero exit code.
Notes & tips
- One mode at a time. A search query,
--id, and--listare mutually exclusive — combining them is rejected.--sourceapplies to search only. - Reactor is opt-in. A normal search and
--listcover Gallery + Toolkit + core only. Pass--source reactorto search Reactor (reactor-only results); areactor-<control>-<n>--idstill fetches even without the flag. Skipping Reactor by default keeps its C#-only samples from outranking usable controls in a standard XAML app. - Everything works offline. The Gallery/Toolkit/Reactor corpus ships inside the
CLI, so search,
--list, and--idall work with no network access — including on a first run in a sandbox or behind a proxy that blocksraw.githubusercontent.com. When GitHub is reachable the CLI refreshes from it and caches per-user under<global .winapp>/cache/find-ui(refreshed at most every 24 hours, or on demand with--refresh); the built-in corpus is a floor, never a ceiling, so live data always wins.--source coresearches the curated built-in patterns and never touches the network at all. - Check the corpus provenance when it matters.
--jsoncarries"corpus":"network"(fetched this run),"cache"(this machine's earlier fetch), or"embedded"(served from a corpus built into the CLI — a core-only request (--source core, or an--idset that is all core patterns), or a Gallery/Toolkit/Reactor result whose fetch failed or whose local cache predates the bake). A Gallery/Toolkit/Reactor"embedded"result may lag upstream — re-run with--refreshif a sample looks out of date; core patterns ship with the CLI and--refreshcannot change them. The field is absent only when no corpus could be loaded at all. - Scenario ids are stable within a cached corpus and case-insensitive —
GALLERY-TABVIEW-1resolves the same asgallery-tabview-1. Gallery/Toolkit/Reactor ids look likegallery-<control>-<n>/toolkit-<control>-<n>/reactor-<control>-<n>; the<source>-prefix disambiguates controls that exist in more than one gallery (e.g.ColorPicker). Curated core patterns use a plain descriptive id with no<source>-<control>-<n>shape (e.g.file-picker-desktop,live-charts); fetch them the same way with--id, and browse them with--source core. --jsonis always JSON. With--json, every failure — including argument/parser errors such as a non-integer--max— is emitted as a flat{"error": "..."}object on stdout with a non-zero exit code, so an agent can parse the result on every path.- Exit codes are script-friendly:
0on a hit,1on no match / error. - Keep queries focused (one feature per query) — the lexical ranker rewards specific phrasing. Batch multiple focused queries rather than one broad one.
Upstream is the source of truth
Which samples exist is upstream's call. winapp adds no samples of its own to the Gallery or Toolkit corpus and does not rewrite an individual sample's implementation to its own taste.
Snippets are still processed: they're cleaned and event handlers with no accompanying code-behind are stripped. Samples are returned in full — nothing is cut short. So treat a result as upstream's sample, mechanically extracted — not as a byte-for-byte copy of the file in their repo. Most samples paste and compile as-is; a few reference a page or type of their own that you'll need to define.
Where a control has a known pitfall, or two controls are easy to confuse, the CLI says so in the Important and Family notes attached to the result. Read those — they carry guidance that isn't in the sample itself, and they're winapp's, not upstream's.
If a sample is missing or genuinely wrong upstream, report it against the
source the result is tagged with: [gallery] →
WinUI-Gallery, [toolkit] →
Windows Community Toolkit.
If the defect looks like a cut-off snippet, a missing handler, or markup that won't
parse, that's winapp's extraction — report it here instead.
Related skills
- winapp-ui-automation — inspect and drive a running app's UI tree (a different job from discovering controls to write).
CLI reference
Run winapp find-ui --help for current command options, or winapp --cli-schema
for the complete machine-readable command schema.
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
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.

