百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

win-dev-skills

> AI 编程
开源

使用 WinUI 3 和 Windows App SDK 构建 Windows 应用程序的代理和技能

370 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用 WinUI 3 和 Windows App SDK 构建 Windows 应用程序的代理和技能

WinUI agents and skills for Windows app development

An Agent Plugins 1.0 package with GitHub Copilot, Claude Code, and OpenAI Codex compatibility for building native Windows apps with WinUI 3 and the Windows App SDK. It covers the end-to-end inner loop: scaffold → design → build → run → test → package → ship.

[!WARNING] ** Preview · v0.x — expect breaking changes.** Skill names, on-disk layout, agent configuration, analyzer rule IDs, and CLI tool surfaces are all subject to change without notice. There is no SemVer commitment until v1.0. If you need a stable pin, install from a release tag instead of the rolling marketplace (see Pinning to a release). Outputs are suggestions, not authoritative answers — review them before committing or shipping anything they produce.

Install

The plugin requires GitHub Copilot (winget install GitHub.Copilot), Claude Code, or OpenAI Codex installed.

Git (winget install Git.Git) is required for installing pluggins.

Option A — Just ask Copilot to do it

Paste this prompt into a Copilot CLI session. It installs the plugin and sets up every prerequisite in one shot:

…

Option B — Install the plugin yourself, then ask the agent to set up the rest

If you'd rather run the plugin commands by hand:

GitHub Copilot CLI

The plugin is listed on awesome-copilot and can be installed directly:

powershell
copilot plugin install winui@awesome-copilot

Or add this repo as a marketplace and install from there:

powershell
copilot plugin marketplace add microsoft/win-dev-skills
copilot plugin install winui@win-dev-skills

Claude Code

powershell
claude plugin marketplace add microsoft/win-dev-skills
claude plugin install winui@win-dev-skills

OpenAI Codex

Add the microsoft/win-dev-skills marketplace, then enable the winui plugin from the plugin directory.

Note: Codex doesn't have an "agents" concept, so the orchestrator agent isn't exposed there. The skills still work - invoke them by name (e.g. /winui-setup, /winui-design) and Codex will load them on demand.

OpenClaw

Install straight from this repo - no marketplace pre-registration needed. The explicit --marketplace source clones the repo on demand, reads its marketplace manifest, and installs the winui plugin natively (Format: openclaw):

powershell
openclaw plugins install winui --marketplace microsoft/win-dev-skills
openclaw gateway restart

Or from a local clone:

powershell
git clone https://github.com/microsoft/win-dev-skills
openclaw plugins install ./win-dev-skills/plugins/winui

Verify the eight skills loaded with openclaw skills list (each shows ✓ ready).

Note: OpenClaw maps skills, not agents, so the winui-dev orchestrator agent isn't exposed there. The skills still work - ask the agent for a WinUI task and it loads the relevant skill on demand.

OpenCode

OpenCode loads Agent Skills natively from /SKILL.md folders. Point it at the shared skills - no fork or copy needed. Link each skill into OpenCode's global skills directory (or a project's .opencode/skills/):

powershell
# One-time setup: link the shared skills into OpenCode's global skills directory
$src = "C:\path\to\win-dev-skills\plugins\winui\agent-plugin\skills"
$dst = "$env:USERPROFILE\.config\opencode\skills"
New-Item -ItemType Directory -Force $dst | Out-Null
Get-ChildItem $src -Directory | ForEach-Object {
  $link = Join-Path $dst $_.Name
  if (-not (Test-Path $link)) {
    New-Item -ItemType Junction -Path $link -Target $_.FullName | Out-Null
  }
}

Because these are junctions (not copies), git pull in the repo picks up upstream skill updates automatically.

Note: OpenCode maps skills, not agents, so the winui-dev orchestrator agent isn't exposed there. The skills still work - invoke them by name (e.g. /winui-setup, /winui-design) and OpenCode loads them on demand.

Then start a new session and run the winui-setup skill with /winui-setup.

Once setup is done, try a real task:

"Build me a WinUI 3 markdown editor with live preview and a custom title bar"

What gets installed

Tool Minimum Recommended Install command
Git 2.54 2.54+ winget install Git.Git
.NET SDK 8.0.100 10.0 winget install Microsoft.DotNet.SDK.10
WinApp CLI 0.6.0 latest winget install Microsoft.WinAppCli
Developer Mode enabled enabled DWORD AllowDevelopmentWithoutDevLicense set to 1

Visual Studio is not required — these skills build and run entirely with dotnet. Neither setup path will install it; if you want it as an IDE, run:

powershell
winget install Microsoft.VisualStudio.Community --override "--add Microsoft.VisualStudio.Workload.Universal"

[!NOTE] Older Windows App SDK versions had a XAML-compiler bug under dotnet build: a malformed .xaml file produced no useful diagnostic — the build just failed with a cryptic MSB3073 (XamlCompiler.exe ... exited with code 1) and no indication of which .xaml was wrong. This is fixed in current releases — Windows App SDK ≥ 2.1.3 on the 2.x line and ≥ 1.8 on the 1.x line. If you hit a cryptic build failure with no XAML diagnostic, update the Microsoft.WindowsAppSDK NuGet package to the latest version. WinApp CLI 0.6+ builds the project directly through winapp run .

Why a Copilot CLI plugin?

Modern Windows app development covers a lot of ground — XAML and Fluent Design, MVVM, MSIX packaging, code signing, Store submission, accessibility, theming, UI automation. AI agents working from generic web context tend to mix WinUI 3 with older stacks (UWP, WPF), miss the packaged-execution model, or stop short of running and verifying what they built. These skills stay in the WinUI 3 lane end-to-end — from winapp new through a signed MSIX — and pair the agent with tools that give it real, ground-truth answers instead of guesses.

The result: you ask copilot -p "create a WinUI 3 photo viewer with thumbnails and EXIF metadata", and the agent picks the right template, scaffolds the project, designs the XAML with theming and accessibility in mind, wires up MVVM correctly, builds, fixes errors with real diagnostics, launches through the right packaged-execution pipeline, and (if you ask) drives the running app through UI automation to validate it works.

What's in this repo

…

The agent: winui-dev

A focused agent for WinUI 3 / Windows App SDK / XAML / C# work. Use it for new apps, adding features, converting from WPF/Electron/web, or fixing bugs. It pulls in the skills below as needed.

The eight skills

Each skill is a focused, self-contained playbook. The agent loads winui-design and winui-dev-workflow by default — those cover most "build me a WinUI 3 app" requests end-to-end. You opt into the others when you want them, including winui-setup for one-time machine prep.

Skill What it does
winui-dev-workflow Build and run workflow — winapp new, project-mode winapp run, the analyzer-injecting BuildAndRun.ps1 helper, crash diagnosis, and prerequisites.
winui-design UI design and XAML correctness — layout planning, control selection, Fluent Design, theming (Light/Dark/HighContrast), typography, spacing, brushes, accessibility, data-binding review, and grounded sample lookup with winapp find-ui.
winui-code-review Code-quality review before committing — MVVM compliance, x:Bind correctness, accessibility, theming, security, performance. Catches what the compiler and UI tests won't.
winui-ui-testing Automated UI testing — generates a batch test script, runs all tests in one pass, reads results. Covers element assertions, interactions, value checks (TextBox, ComboBox, ToggleSwitch), file pickers, flyouts, dialogs, persistence, accessibility audits.
winui-packaging MSIX packaging, code signing, and distribution — release builds, certificate generation (winapp cert generate), trust, signing (winapp sign), self-contained deployment, GitHub Actions CI/CD, and Microsoft Store submission.
winui-wpf-migration WPF → WinUI 3 migration — namespace replacement, control mapping (DataGrid → ListView, WrapPanel → ItemsRepeater, TabControl → TabView), Dispatcher → DispatcherQueue, System.Drawing → BitmapImage, MVVM conversion to CommunityToolkit.Mvvm, DynamicResource → ThemeResource.
winui-session-report Diagnostic report on the current or a recent Copilot session. Runs only after an explicit request for session feedback, agent debugging, or a review of what happened during a build session.
winui-setup Install and verify machine prerequisites — .NET SDK 8.0.100+, WinApp CLI 0.6+, and Developer Mode. Templates are managed on demand by winapp new. Idempotent and explicit confirmation required.

The tools we lean on

Skills are prompts plus playbooks. They get their actual leverage from a small set of tools — some external, some included in this repo.

External tools the skills depend on

  • winapp CLI 0.6+ (install with /winui-setup) — the command-line driver for scaffolding, discovering UI samples, building, running, signing, packaging, and automating WinUI 3 / WinAppSDK apps. winapp new manages the official WinUI template pack and creates projects; winapp find-ui returns grounded Gallery/Toolkit/core samples; project-mode winapp run builds a .csproj and launches packaged or unpackaged output; winapp ui powers the UI-testing skill; and winapp manifest/winapp package carry builds through signed MSIX creation.

In-repo tools — what's running on your machine

Several skills ship helper binaries and PowerShell scripts that run under your user account. None of them are code-signed today. They live in this repo so you can read the source, build them yourself, and verify what they do — that's an explicit launch-preview trade-off, not a long-term distribution model.

Artifact Source What it does Long-term plan
Microsoft.WindowsAppSDK.Analyzers.dll (Roslyn analyzer) src/tools/winui-analyzer/ Catches common WinUI 3 / WinAppSDK pitfalls at build time: UWP namespace leaks, Window.Current, CoreDispatcher, WebView2 without EnsureCoreWebView2Async, raw TabView content, attached-property syntax bugs, removed ONNX GenAI APIs, the old field-backed [ObservableProperty] pattern, and more. Every rule ships at Warning severity (no Errors) and includes a helpLinkUri. Verified against source on every PR by the analyzer-provenance CI job. Publish as the Microsoft.WindowsAppSDK.Analyzers NuGet package; skill stops shipping the prebuilt DLL and projects pick it up via ``.
winmd.exe (winmd-cli) src/tools/winmd-cli/ Native-AOT WinRT/.NET metadata indexer. The agent uses it to verify an API actually exists and has the signature it thinks it does — before writing code that won't compile. Reads .winmd and managed .dll metadata from NuGet, the Windows SDK, and WinAppSDK and returns the same XML doc text Visual Studio IntelliSense uses. Publish as a dotnet tool on NuGet, or fold relevant subcommands into winappcli.
BuildAndRun.ps1 plugins/winui/agent-plugin/skills/winui-dev-workflow/BuildAndRun.ps1 Thin wrapper over project-mode winapp run: injects the bundled WinAppSDK analyzer through a temporary MSBuild props file and enables crash diagnostics by default. WinApp CLI owns restore, build, architecture/output discovery, runtime setup, registration, and launch. Remove when th

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#agentagent-skillscopilotcopilot-cli

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类AI 编程
定价开源

> 相关工具

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.