Agent Skill · OpenAI

winui-app

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.

Provider: OpenAI Path in repo: skills/.curated/winui-app/SKILL.md

Skill body

WinUI App

Use this skill for WinUI 3 and Windows App SDK work that needs grounded setup guidance, app bootstrap, modern Windows UX decisions, or concrete implementation patterns.

Required Flow

  1. Classify the task as environment/setup, new-app bootstrap, design, implementation, review, or troubleshooting.
  2. If the task is about preparing a machine for WinUI, auditing readiness, or creating a brand new app, start with the bundled setup-and-scaffold flow in this skill before broader design, implementation, or troubleshooting work:
    • Pick the app name when the request is for a new app.
    • Use the exact name the user gave when it is already a safe folder name.
    • If the user did not give a name, derive a short PascalCase name from the request and state what you chose.
    • Create the project in the user’s current workspace unless they asked for another location.
    • Do not use --force unless the user explicitly asked to overwrite existing files.
    • Run the bundled WinGet configuration from the skill directory so the relative path stays exactly config.yaml:
winget configure -f config.yaml --accept-configuration-agreements --disable-interactivity
dotnet new list winui

Common Routes

Request Read first
Check whether this PC can build WinUI apps references/foundation-environment-audit-and-remediation.md
Install missing WinUI prerequisites references/foundation-environment-audit-and-remediation.md
Start a new packaged or unpackaged app references/foundation-setup-and-project-selection.md
Recover from opaque XAML compiler or startup failures while staying anchored to the template scaffold references/foundation-template-first-recovery.md
Build, run, or verify that a WinUI app actually launched references/build-run-and-launch-verification.md
Review app structure, pages, resources, and bindings references/foundation-winui-app-structure.md
Choose shell, navigation, title bar, or multi-window patterns references/shell-navigation-and-windowing.md
Choose controls or responsive layout patterns references/controls-layout-and-adaptive-ui.md
Apply Mica, theming, typography, icons, or Fluent styling references/styling-theming-materials-and-icons.md
Improve accessibility, keyboarding, or localization references/accessibility-input-and-localization.md
Diagnose responsiveness or UI-thread performance references/performance-diagnostics-and-responsiveness.md
Decide whether to use CommunityToolkit references/community-toolkit-controls-and-helpers.md
Handle lifecycle, notifications, or deployment references/windows-app-sdk-lifecycle-notifications-and-deployment.md
Run a review checklist references/testing-debugging-and-review-checklists.md

Environment Rules

Reference Rules