winui-app
Ce qu’il fait
Cette compétence aide à créer et améliorer des applications de bureau Windows développées avec WinUI 3 et C#. Elle s'adresse aux développeurs qui créent des applications Windows modernes et ont besoin de conseils de configuration et de conception.
Quand l’utiliser
- ✓Quand vous voulez créer une nouvelle application de bureau WinUI 3 pour Windows.
- ✓Quand vous devez préparer un ordinateur Windows pour le développement WinUI.
- ✓Quand vous voulez relire ou corriger le XAML et les contrôles d'une application WinUI existante.
Lien du skill
https://github.com/openai/skills/blob/main/skills/.curated/winui-app/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Aide-moi à démarrer une nouvelle application WinUI 3 en C# avec une barre de navigation latérale et une page de paramètres.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent vérifie la configuration de l'ordinateur, peut lancer une configuration fournie qui active le mode développeur et installe les composants Visual Studio nécessaires, puis crée le projet et ses pages selon les modèles actuels de Microsoft.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
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
- Classify the task as environment/setup, new-app bootstrap, design, implementation, review, or troubleshooting.
- 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
--forceunless 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
- Treat the configuration as intended to enable Developer Mode, install or update Visual Studio Community 2026, and install the Managed Desktop, Universal, and Windows App SDK C# components needed for WinUI development.
- Assess the configuration result before continuing. Continue on success. If it fails, inspect the output instead of guessing. If the
winuitemplate is already available and the toolchain is usable, note the partial failure and continue. If prerequisites are still missing, stop and report the blocker clearly. - Verify the template is available before scaffolding:
dotnet new list winui
- For diagnostics-only environment requests, explain that the bundled bootstrap may change the machine and get confirmation before running it. If the user declines changes, use the manual verification guidance in
references/foundation-environment-audit-and-remediation.mdand summarize readiness underpresent,missing,uncertain, andrecommended optional tools. - For a brand new app, scaffold with
dotnet new winui -o <name>. Add template options only when the user asked for them. Supported options:-f|--framework net10.0|net9.0|net8.0,-slnx|--use-slnx,-cpm|--central-pkg-mgmt,-mvvm|--use-mvvm,-imt|--include-mvvm-toolkit,-un|--unpackaged,-nsf|--no-solution-file,--force. Do not invent unsupported flags. If the user asks for packaged behavior, pass--unpackaged false. Otherwise keep the template default. - Verify a new scaffold by confirming the expected project file exists and running
dotnet buildagainst the generated.csproj. - Launch a newly scaffolded app through the correct path for its actual packaging model and confirm there is a real top-level window instead of relying only on the launcher process exit code.
- Read
references/_sections.md, then load only the reference files that match the task. - Make the packaging model explicit before creating or refactoring the app. Default to packaged for Store-like product workflows and Visual Studio deploy/F5 flows. Default to unpackaged when the user expects repeatable CLI build-and-run loops or direct
.exelaunches after each change. - When the task is an opaque XAML compiler failure such as
MSB3073orXamlCompiler.exe, readreferences/foundation-template-first-recovery.mdand simplify back toward the currentdotnet new winuiscaffold for the chosen packaging model before inventing custom recovery structure. - For any work that creates or changes a WinUI app, make a complete but minimal edit set, then build the app and run it before responding to the user. Do this by default even when the user did not explicitly ask for verification. If a running app instance locks the output while more work remains, stop it, rebuild, relaunch, and continue verification. When the work is complete and launch verification succeeds, leave the final verified app instance running for the user unless they explicitly asked you not to.
- Treat launch verification as incomplete until the app shows objective success signals such as a responsive top-level window, expected window title, or other clear startup behavior. A spawned process by itself is not enough.
- Prefer Microsoft Learn for requirements, API expectations, and
Questions fréquentes
Installe-t-elle des logiciels sur mon ordinateur ?
Oui, lorsque vous demandez la configuration, elle lance une configuration fournie qui installe des composants Visual Studio et active le mode développeur.
Quel langage et quel framework utilise-t-elle ?
Elle utilise C# avec le Windows App SDK et WinUI 3.
Peut-elle aider sur une application existante ?
Oui. Elle couvre les revues, les refactorisations et le dépannage des applications WinUI 3.
Détails
Description originale de l’auteur
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.
repo: openai/skills
Popularité
- Étoiles GitHub
- 28k
- Position au classement
- #9862
- Licence
- —
- Mis à jour
- 28/10/2026
Commentaires
- …
Autres skills de ce dépôt
aspnet-core
28kAide votre agent à créer, revoir ou mettre à niveau une application web ASP.NET Core, en choisissant le bon type et en suivant les recommandations actuelles de Microsoft.
chatgpt-apps
28kAide votre agent à construire une application ChatGPT qui relie un serveur MCP à un widget, avec la conception des outils, les métadonnées et la configuration locale.
cli-creator
28kAide votre agent à transformer une API, une spécification ou des scripts en outil en ligne de commande réutilisable, qui renvoie un JSON stable.
define-goal
28kAide votre agent à transformer une intention vague en objectif mesurable, avec critères de réussite, périmètre et condition d'arrêt, avant de commencer.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.