build
Skill8.5k starsChanged 2 months agoMITView on GitHub
Build the WinUI repository. Use when asked to build, compile, or rebuild the project after making code changes.
76 other projects use a version of this.
Trending
Quiet since August.about the whole repository
Most recently taken up by
- mattdweigand-sketch/agent-skillstheir own version, first seen Oct 6, 2026
- MagicJosh/rastheir own version, first seen Oct 6, 2026
- Jakeschincariol/master-skillstheir own version, first seen Oct 4, 2026
- ccrouse-mvc/build-skilltheir own version, first seen Oct 4, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- guardana/guardanatheir own version, first seen Sep 30, 2026
Who's talking about microsoft/microsoft-ui-xaml
- dotnet/maui“Cross platform UX for .NET 5”GitHub · Jul 18, 2017 · 217 reactions
- A Hacker News story“WinUI 3 Performance: A Leap Forward”Hacker News · May 14, 2026 · 121 points
- xamarin/Xamarin.Forms“Proposal: Simplify Grid Column and Row Definitions”GitHub · Aug 28, 2019 · 67 reactions
- dotnet/maui“[Enhancement] Cross platform media player”GitHub · Aug 27, 2021 · 44 reactions
- dotnet/maui“Support Global Exception Handling Mechanism for .NET MAUI”GitHub · Mar 23, 2022 · 41 reactions
The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 24
Talked about on GitHub, Hacker News and Bluesky (24 times).
On GitHub · 12
- Jul 18, 2017Cross platform UX for .NET 5 — dotnet/maui217 reactions · 31 comments
- Aug 28, 2019Proposal: Simplify Grid Column and Row Definitions — xamarin/Xamarin.Forms67 reactions · 13 comments
- Aug 27, 2021[Enhancement] Cross platform media player — dotnet/maui44 reactions · 23 comments
- Mar 23, 2022Support Global Exception Handling Mechanism for .NET MAUI — dotnet/maui41 reactions · 14 comments
- Apr 26, 2019Adds UWP support to Shell — xamarin/Xamarin.Forms39 reactions · 45 comments
7 more on GitHub
- Aug 28, 2019Proposal: Simplify Grid Column and Row Definitions — dotnet/wpf35 reactions · 7 comments
- Jun 22, 2019Support using Win2D with WinUI — microsoft/Win2D35 reactions · 28 comments
- May 19, 2020[WinUI3] Windows Community Toolkit 7.0.1 for Project Reunion 0.5 — CommunityToolkit/WindowsCommunityToolkit30 reactions · 49 comments
- Mar 18, 2020Proposal: Allow the App to Print without showing the Confirmation Dialog to user — microsoft/WindowsAppSDK28 reactions · 47 comments
- Oct 8, 2022Windows Unpackaged support in .NET MAUI — dotnet/maui27 reactions · 4 comments
- May 29, 2020Discussion: Decouple MSIX from AppContainer — microsoft/WindowsAppSDK26 reactions · 14 comments
- Aug 22, 2021BlazorWebView drag and drop does not work with MAUI Templates — dotnet/maui24 reactions · 96 comments
On Hacker News · 11
- May 14, 2026WinUI 3 Performance: A Leap Forward121 points · 141 comments
- Oct 25, 2023WinUI3 Source Available4 points
- Feb 13, 2022Dependency property is much slower in WinUI 3 than in WPF4 points
- Jul 1, 2019Windows UI Library Roadmap4 points
- Oct 25, 2023WinUI 3 is now open source3 points
6 more on Hacker News
- Aug 29, 2026WinUI development is now happening on GitHub2 points
- May 26, 2024Is WinUI 3 Dead?2 points
- Nov 13, 2019Windows UI Library Roadmap Update2 points
- Nov 6, 2019First WinUI 3.0 Alpha now available2 points
- Aug 2, 2025WinUI OSS Update: Phased Rollout Toward Open Collaboration1 point
- Jul 23, 2024Windows UI Library1 point
On Bluesky · 1
- Jan 26, 2025Over here: github.com/microsoft/mi... — @dotmorten.xaml.dev1 likes and repost · 1 reply
Used with
Projects with it also use incident, experiment and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
pvnarpSkillincident
Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.
Also in 3 projects that use this
sunnnybalaSkillexperiment
Design and run ML experiments on cloud GPUs. Generates experiment code, runs on Modal, tracks results in JSONL. Use when asked to "run experiments", "train a model", "test this hypothesis", or "benchmark this approach". Proactively invoke when the user has a refined research idea and needs to validate it experimentally.
Also in 3 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 9 projects that use this
AnthropicSkillbrief
Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.
Also in 5 projects that use this
AnasX7Skillimprove
Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on source code — never implements, fixes, or refactors anything itself. Use when asked to audit a codebase, find improvement opportunities (bugs, security, performance, test coverage, tech debt, migrations, DX), suggest features or where to take the project next (roadmap, product direction), or generate handoff plans for another agent to implement.
Also in 4 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 17 projects that use this
Other versions76 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 76
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- GoogleCloudPlatform/gcsfuse★ 2.3ksame name
- JuliusBrussee/cavekit★ 1.1ksame name
- suboss87/FDEOps★ 950same name
- erikdarlingdata/PerformanceMonitor★ 510same name
- platformplatform/PlatformPlatform★ 440same name
- SensorsIot/Embedded-AI-Harness★ 185same name
- guardana/guardana★ 145same name
- Azure/cosmos-explorer★ 131same name
- kangraemin/claude-inspector★ 131same name
66 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- Samples/TableViewSampleApp/AGENTS.mdAGENTS.md
- src/.github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- test-on-vmSkill
- bt-buildSkill
- test-suite-setupSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 71 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Always prefix with .\initrun.ps1, this sets up critical environment variables and sanity-checks the environment
- Very specific: line 23
Always pass /q for quiet output (errors only)
- Very specific: line 26
Only use mux or a single project when the user asks for a specific component or when you know exactly which files changed.
- Distinctive: line 33
When you see that error, run a full init for the needed flavor:
- Very specific: line 44
After init completes, retry the original initrun.ps1 build command.
- Distinctive: line 46
If you get build errors that seem to indicate missing dependencies, that might mean you don't have a fresh "init".
- Very specific: line 78
Test areas: controls, foundation, framework, automation
- Very specific: line 95
Use the /b flag in build.cmd which sets /m:2 (2 parallel processes):
- Very specific: line 99
If /b still fails, close other memory-intensive applications (browsers, VS instances, etc.).
- Distinctive: line 100
If it keeps failing, stale PCH files from a previous build with a different compiler version may be the cause.
- Very specific: line 110
Fix: Do a clean build with /c:
- Distinctive: line 129
Fix: No fix needed — this is normal behavior.
“Common” is measured: kept by at least 6 in 10 of the 71 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Building WinUI
AI Agent Quick Start
# Always wrap commands with .\initrun.ps1 — it sets up the build environment automatically.
# Default flavor is amd64chk. Override with -Flavor.
.\initrun.ps1 .\build.cmd /q # full repo build (product + tests) — USE THIS BY DEFAULT
.\initrun.ps1 .\build.cmd /q product # product code only (no tests)
.\initrun.ps1 .\build.cmd /q mux # MUX only (Microsoft.UI.Xaml.dll)
.\initrun.ps1 msb /q "path\to\project.vcxproj" # build a single project
.\initrun.ps1 -Flavor arm64fre .\build.cmd /q # build for a different flavorRules:
- Always prefix with
.\initrun.ps1, this sets up critical environment variables and sanity-checks the environment - Always pass
/qfor quiet output (errors only) - Set
initial_waitto at least 300 seconds — builds take 1-10+ minutes - When the user asks to "build the repo" or just "build" without specifying a target, use
.\initrun.ps1 .\build.cmd /q(full build). Only usemuxor a single project when the user asks for a specific component or when you know exactly which files changed.
First-Time Setup
A full init must be run once per flavor to download tools and NuGet packages.
initrun.ps1 will fail with "Run a full init first" if this hasn't been done.
When you see that error, run a full init for the needed flavor:
.\init.ps1 # default: amd64chk
.\init.ps1 amd64fre # specific flavorSet initial_wait to at least 300 seconds — the first init downloads tools and restores NuGet packages.
Flavors: amd64chk, amd64fre, x86chk, x86fre, arm64chk, arm64fre (chk = debug, fre = release)
After init completes, retry the original initrun.ps1 build command.
If you get build errors that seem to indicate missing dependencies, that might mean you don't have a fresh "init".
Commands
| Command | What it builds | Time |
.\initrun.ps1 .\build.cmd /q | Everything (product + tests) | 10+ min |
.\initrun.ps1 .\build.cmd /q mux | Microsoft.UI.Xaml.dll only | 1-6 min |
.\initrun.ps1 .\build.cmd /q product | Product code (no tests) | 5-10 min |
.\initrun.ps1 .\build.cmd /q /c | Clean + full rebuild | 15+ min |
.\initrun.ps1 msb /q "<project>" | Single .vcxproj | 5s - 5 min |
Flags (for .\build.cmd)
| Flag | Effect |
/q | Quiet — errors only, plus elapsed time |
/b | Reduced parallelism (/m:2) — prevents PCH virtual memory exhaustion on limited-memory machines |
/c | Clean build — deletes BuildOutput first. Use on first build or when switching flavors |
/restore | NuGet restore before building |
/fake | Dry run — print commands without executing |
What to Build After a Code Change
| Files changed in | Build command |
dxaml/xcp/** (source only) | .\initrun.ps1 msb /q "dxaml\xcp\dxaml\dllsrv\winrt\native\Microsoft.ui.xaml.vcxproj" |
controls/dev/** or controls/idl/** (source only) | .\initrun.ps1 msb /q "controls\dev\dll\Microsoft.UI.Xaml.Controls.vcxproj" |
dxaml/test/native/external/<area>/** (source only) | .\initrun.ps1 msb /q "dxaml\test\native\external\<area>\Microsoft.UI.Xaml.Tests.External.<Area>.vcxproj" |
.vcxproj, .vcxitems, .props, .targets, NuGet deps | .\initrun.ps1 .\build.cmd /q |
| Multiple areas or unsure | .\initrun.ps1 .\build.cmd /q |
Test areas: controls, foundation, framework, automation
Terminology
MUX = Microsoft.UI.Xaml.dll (core XAML runtime)
MUXC = Microsoft.UI.Xaml.Controls.dll
Troubleshooting
error C3859: Failed to create virtual memory for PCH / error C1076: compiler limit: internal heap limit reached
Symptom: Build fails with dozens of PCH (precompiled header) virtual memory errors across multiple .cpp files.
This typically happens when building with the default /m:4 parallelism on machines with limited memory.
Root Cause: Multiple parallel cl.exe compiler instances each try to allocate large PCH memory regions, exhausting the process address space.
Fix:
- Use the
/bflag inbuild.cmdwhich sets/m:2(2 parallel processes):.\initrun.ps1 .\build.cmd /q /b - If
/bstill fails, close other memory-intensive applications (browsers, VS instances, etc.). - If it keeps failing, stale PCH files from a previous build with a different compiler version may be the cause. Do a clean build:
.\initrun.ps1 .\build.cmd /q /c /b
error C1853: precompiled header file is from a different version of the compiler
Symptom: Build fails saying the .pch file is from a different compiler version.
Root Cause: Stale precompiled header files remain from a previous build with a different compiler (e.g., after a VS update).
Fix: Do a clean build with /c:
.\initrun.ps1 .\build.cmd /q /c /bMissing Spectre mitigation libs
Symptom: Build errors about missing Spectre mitigation libraries from Visual Studio.
Fix: Tell the user to import the .vsconfig file from the repo root via Visual Studio Installer:
- Open Visual Studio Installer
- Click "More" → "Import configuration"
- Select
<repo-root>\.vsconfig - Install the missing components
DevEnvDir environment variable not set
Symptom: This message appears at the start of every initrun.ps1 command.
Root Cause: This is informational, not an error. initrun.ps1 automatically runs DevCmd.cmd to set up the VS environment.
Fix: No fix needed — this is normal behavior.
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.

