All skills
openai avatar

/winui-app

@c207989 official
by openaiopenai/skills28k stars
1,891

Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and CommunityToolkit components. Use when creating a brand new app, preparing a machine for WinUI, reviewing, refactoring, planning, troubleshooting, environment-checking, or setting up WinUI 3 XAML, controls, navigation, windowing, theming, accessibility, responsiveness, performance, deployment, or related Windows app design and development work.

Use this Skill: https://skilld.dev/gh/openai/skills/winui-app

This session only. Nothing lands on disk.

referencesfoundation-environment-audit-and-remediation.md

≈933 tokens on demand. Your agent reads this file only when SKILL.md points to it.

What This Reference Is For

Use this file for machine-readiness checks, build failures caused by missing tools, and any request to install WinUI prerequisites.

Required Workflow

  1. Use the setup-and-scaffold flow in ../SKILL.md for environment readiness, remediation, and initial verification.
  2. If the user asked only for an audit and not for setup, explain that the bundled bootstrap may change the machine and get confirmation before running it.
  3. If the user declines machine changes, run a manual non-mutating audit instead and summarize the result under four headings:
    • present
    • missing
    • uncertain
    • recommended optional tools
  4. Manual non-mutating audit coverage should focus on:
    • OS version and build floor
    • Developer Mode state when relevant to the task
    • dotnet --list-sdks
    • dotnet new list winui
    • Visual Studio presence and edition
    • Windows SDK presence
    • MSBuild availability for XAML compilation
  5. If prerequisites are still missing after the bundled setup flow, stop and report the blocker clearly instead of inventing alternate install recipes.

Required vs Optional

Required for normal C# WinUI 3 development:

  • Supported Windows build
  • Visual Studio with WinUI C# support
  • Windows SDK 10.0.19041.0 or later
  • MSBuild available for XAML compilation
  • .NET SDK 6 or later

Usually optional, but often recommended:

  • Developer Mode for local deploy and debug
  • WinGet for one-command remediation
  • Visual Studio debugging features such as Hot Reload and Live Visual Tree

Prefer

  • The setup-and-scaffold flow in SKILL.md over ad hoc manual checks or duplicated setup instructions in this reference.
  • A short manual audit only when the user wants a non-mutating readiness check.

Avoid

  • Rewriting or paraphrasing the bundled setup workflow here when SKILL.md already covers the user's goal.
  • Marking workload detection as present when the bootstrap or manual audit leaves uncertainty.
  • Branching into custom per-component install steps unless the user explicitly asks for them.
  • Treating Developer Mode as a hard requirement for every task.

Remediation Strategy

  • Missing any required WinUI prerequisite:
    • Use the setup-and-scaffold flow in SKILL.md after confirmation when the request is audit-only.
  • The bundled setup flow reports a partial failure but the toolchain appears usable:
    • Note the partial failure and continue when the user's task can proceed.
  • The bundled setup flow fails and prerequisites still appear to be missing:
    • Use the manual audit checks above for detail if needed, then stop and report the blocker clearly.
  • Windows build unsupported:
    • Upgrade Windows first. The WinUI bootstrap command does not replace the OS requirement.
  • Developer Mode disabled:
    • Explain whether the current task needs it.
    • If it does, prefer the bundled setup flow or let the user enable it manually.

Review Checklist

  • Was the setup-and-scaffold flow in SKILL.md used before advice was given?
  • Are missing items clearly separated from uncertain signals?
  • Is the remediation plan the minimum needed for the user's goal?
  • Was post-install verification handled by the bundled setup flow or by a clearly justified fallback?

Source: SKILL.md on GitHub

No alerts17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides guidance and scaffolding patterns for building WinUI 3 desktop applications with the Windows App SDK. It includes standard platform configuration and setup mechanisms that leverage official Windows tools. While it executes configuration scripts to configure the local environment, these are implemented via native tools such as WinGet according to official Microsoft workflows.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer6mo

    5/20 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c207989. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Activeupdated 7 months ago
  • winui
  • csharp
  • windows-app-sdk
  • desktop
  • xaml
  • visual-studio
  • winget
  • theming
  • accessibility
  • responsive-design

README badge

README badge for openai/skills/winui-app

Bootstraps and develops WinUI 3 desktop applications in C# using the Windows App SDK, with guidance for environment setup, project scaffolding, XAML patterns, controls, navigation, theming, and deployment. Use this skill when creating a new app, preparing a machine for WinUI development, or troubleshooting XAML compilation and startup issues.

Generated from the current SKILL.md.

Does this skill work with C++ or only C#?
The skill is built around C# and the Windows App SDK. C++ or C++/WinRT is mentioned only when the difference is material to the task.
Can I use this skill to set up an unpackaged app instead of a packaged one?
Yes. The skill supports both packaged and unpackaged app models. You can pass the `--unpackaged` flag to `dotnet new winui`, or the skill will default to packaged for Store-like workflows and unpackaged for CLI build-and-run loops.
What if my machine isn't ready for WinUI development yet?
The skill includes a bundled WinGet configuration (`config.yaml`) that installs Visual Studio Community 2026, enables Developer Mode, and adds the required Windows App SDK C# components. For diagnostics-only audits without machine changes, the skill provides manual verification guidance instead.
Does this skill handle third-party component libraries or only native WinUI controls?
The skill favors native WinUI controls and Fluent styling first. It uses the CommunityToolkit only when built-in controls do not cover the need cleanly, and avoids inventing custom component libraries unless you explicitly request them.

Generated from the current SKILL.md. These answers refresh after source changes.