winui-packaging

winui-packaging is a skill for Claude Code from microsoft/winappCli. It costs 75 tokens per session (1,683 once invoked), scanned A, original, MIT.

A release guide for packaging WinUI 3 desktop apps as MSIX installers, signing them with certificates, and preparing builds for distribution. It also covers self-contained deployment, Native AOT, multiple processor architectures, and CI/CD packaging.

In plain words
What is it for?
Use it to create signed or unsigned MSIX packages, generate and install development certificates, bundle the Windows App SDK runtime, and prepare Microsoft Store or automated build handoffs.
Why use it?
It provides the steps and checks needed to turn a project into a distributable Windows package while handling signing and runtime requirements.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the winui plugin — 7 skills, 1 agent shipped together

Good fit Use it to create signed or unsigned MSIX packages, generate and install development certificates, bundle the Windows App SDK runtime, and prepare Microsoft Store or automated build handoffs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/winappcli/winui-packaging
About the project

winapp CLI is a command-line tool for Windows application development that manages SDKs, app identity, manifests, certificates, packaging, and build tools. It helps developers using frameworks such as .NET, Win32, CMake, Electron, or Rust access Windows-native development capabilities. The catalogue add-ons provide agent workflows for using the CLI.

microsoft/winappCli · 1,314 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add microsoft/winappCli --skill winui-packaging
Clone the repo
git clone --depth 1 https://github.com/microsoft/winappCli

Made for: Claude Code.

Or install winui, the plugin that ships this one along with the rest of its 7 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for winui-packaging

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/winappcli/winui-packaging/github.svg)](https://agentmods.dev/skills/microsoft/winappcli/winui-packaging)
Your own site
<a href="https://agentmods.dev/skills/microsoft/winappcli/winui-packaging"><img src="https://agentmods.dev/badge/skills/microsoft/winappcli/winui-packaging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for winui-packaging

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/winappcli/winui-packaging"><img src="https://agentmods.dev/badge/skills/microsoft/winappcli/winui-packaging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,683 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.01683
Opus 5.5 $0.00030 $0.00673
Sonnet 5.5 $0.00015 $0.00337
Haiku 4.5 $0.00007 $0.00168

Measured 7d ago against content hash 0ca35d4c486f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

winui-packaging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/winui/agent-plugin/skills/winui-packaging/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scope: WinUI 3 apps only. The Windows App SDK is not WinUI. A WPF, WinForms, Electron, or other app that references the Windows App SDK (for notifications, packaging, or other APIs) is not a WinUI app; keep its framework and don't apply this skill unless the task is to port it to WinUI 3. A WinUI 3 project has <UseWinUI>true</UseWinUI> or uses Microsoft.UI.Xaml.

Requires WinApp CLI 0.7+. For analyzer setup, see winui-dev-workflow.

Quick Reference

Task Command
Release package + sign winapp package .\MyApp.csproj --arch x64 --cert .\devcert.pfx
Unsigned multi-architecture bundle winapp package .\MyApp.csproj --arch x64 --arch arm64 --no-sign
Generate dev certificate winapp cert generate
Trust certificate (admin) winapp cert install ./devcert.pfx
Sign existing file winapp sign ./app.msix ./devcert.pfx
Bundle Windows App SDK runtime winapp package .\MyApp.csproj --arch x64 --cert .\devcert.pfx --self-contained

End-to-End Workflow

Step 1: Check the Project and Deployment Intent
  • Pass the explicit project file, not . or a guessed bin folder. WinUI project packaging uses SDK-native dotnet publish packaging, defaults to Release, and preserves project AOT settings.
  • Check manifest identity, target architectures, the SDK for the app's TFM, and release warnings.
  • For Native AOT, set <PublishAot>true</PublishAot> in the project and fix IL/CsWinRT warnings; there is no winapp package --aot. AOT also needs the MSVC C++ build tools. See source-generator patterns.
  • Project packaging rejects WindowsPackageType=None; restore the packaged setting first (see winui-dev-workflow Critical Rules).

Do not run/register/unregister a development package just to produce release artifacts. Project packaging builds without a development winapp run --no-launch step. For WinUI SDK-native packaging, do not pass layout overrides --manifest, --executable, or --skip-pri; fix the project/manifest instead.

Read the full file on GitHub · 105 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · +2 lines · -6 tokens per session 0ca35d4c486f
  2. 9d ago First seen · 103 lines · 81 tokens per session scan A b9d2546bb273

Subscribe to this mod's changes

winui-packaging is a skill published in the GitHub repository microsoft/winappCli (1,314 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 1,683 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-07.