{"name":"set-up-winui-project","description":"Sets up a WinUI 3 project and a Fluent page, with the SDK and CLI checks, UseWinUI, theme brushes, and x:Bind. Use when the user wants a WinUI project, a Fluent page, or to confirm Microsoft.UI.Xaml.","category":"apps","tags":["winui","desktop","ui","windows"],"models":["any"],"proven":false,"passing_families":0,"model_testing":"Not yet model-tested; testing Jan 2027","url":"https://theskillvault.ai/skills/set-up-winui-project","api_url":"https://theskillvault.ai/api/skills/set-up-winui-project","raw_url":"https://theskillvault.ai/api/skills/set-up-winui-project/raw","body":"# Set up a WinUI 3 project\n\nWinUI 3 is the XAML toolkit. A project that only references the platform SDK for notifications is not a WinUI project.\n\n## When to use\n- The user wants a new WinUI 3 project or a Fluent page.\n- Colors are raw literals instead of theme brushes.\n- A TextBox edit does not reach the binding source.\n\n## When not to use\n- The UI is WPF or WinForms. Keep that toolkit unless the person is porting.\n- The need is an MSIX installer. That is a separate skill.\n- The need is which control holds the main areas on a phone. That choice is a separate skill.\n- The product is a website.\n\n## Steps\n1. Confirm the project sets UseWinUI or uses Microsoft.UI.Xaml. If it does not, stop here. Walk through the SDK check, then the page.\n2. Require the .NET SDK 8.0.100 or newer, and WinApp CLI 0.7 or newer. The CLI install is per user. Ask when Developer Mode or any install needs admin rights.\n3. Let `winapp new` own the template. Do not install a template pack by hand.\n4. Look up a control with `winapp find-ui`, then confirm the API with `winapp find-api` on the restored project. Do not invent a member.\n5. Paint with ThemeResource brushes. Do not use a raw color literal. ThemeResource updates when the theme changes.\n6. On a page, x:Bind reads the page class. A two-way TextBox needs UpdateSourceTrigger=PropertyChanged or the source stays stale.\n7. Hand the installer to the MSIX skill. This skill stops at the project and the page.\n\n## Gotchas\n- Do not include passwords, tokens, or private strings in sample XAML.\n- Acrylic and a theme shadow have rendering rules. A shadow with no receiver looks clipped.\n- Converter={x:Null} crashes x:Bind. Do not use that null converter.\n- This is an independent how-to adapted from Microsoft's skill. It is not official documentation, and it was not built or run for this library.\n\n## Portability\nIf you use WPF, WinForms, Electron, or Tauri, keep that toolkit. If you use WinUI, the checks above are the path. Packaging for any of those toolkits is the MSIX skill.\n\n## Done when\n- The project is actually WinUI 3, and the SDK and CLI meet the minimums.\n- Brushes come from the theme, and the TextBox binding updates as the person edits.\n- Admin-only installs were asked for, not assumed.\n\n## Example prompt\n\"Set up a WinUI 3 settings page with theme brushes and a two-way TextBox. Confirm UseWinUI and the CLI version first.\"\n\n---\nAdapted from \"winui-design\" and \"winui-setup\" by Microsoft Corporation and Contributors in microsoft/winappcli (MIT). See LICENSE.txt.","files":["LICENSE.txt"],"license":"MIT","license_name":"MIT License","license_url":"https://opensource.org/license/mit","attribution":"Based on work by Microsoft Corporation and Contributors (microsoft/winappcli, winui-design and winui-setup) (Copyright (c) Microsoft Corporation and Contributors., MIT License), https://github.com/microsoft/winappcli/tree/28d0dcdb2c65c2843541f4de7afb42dd27caa266/plugins/winui/agent-plugin/skills/winui-design; adapted by TheSkillVault, https://theskillvault.ai","install":{"claude_code":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/raw' -o ~/'.claude/skills/set-up-winui-project/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/files/LICENSE.txt' -o ~/'.claude/skills/set-up-winui-project/LICENSE.txt'","cursor":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/raw' -o '.cursor/skills/set-up-winui-project/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/files/LICENSE.txt' -o '.cursor/skills/set-up-winui-project/LICENSE.txt'","agents":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/raw' -o '.agents/skills/set-up-winui-project/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/files/LICENSE.txt' -o '.agents/skills/set-up-winui-project/LICENSE.txt'","mcp_url":"https://theskillvault.ai/mcp","cursor_mcp_deeplink":"cursor://anysphere.cursor-deeplink/mcp/install?name=theskillvault&config=eyJ1cmwiOiJodHRwczovL3RoZXNraWxsdmF1bHQuYWkvbWNwIn0%3D","mcp_config":{"mcpServers":{"theskillvault":{"url":"https://theskillvault.ai/mcp"}}}},"bundles":[],"tested_on":[{"family":"chatgpt","name":"ChatGPT","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"claude","name":"Claude","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"gemini","name":"Gemini","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"grok","name":"Grok","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"llama","name":"Llama","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"deepseek","name":"DeepSeek","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"mistral","name":"Mistral","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"qwen","name":"Qwen","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"kimi","name":"Kimi K","outcome":null,"date":null,"source":null,"counts":false,"stale":false}],"proven_rule":{"threshold":5,"window_days":365,"computed_at":"2026-11-29T03:42:30.374Z"}}