/winappcli:winapp-manifestfrom winappcli
Creates or edits Package.appxmanifest/appxmanifest.xml for Windows apps: execution aliases, file associations, protocols, capabilities, identity, and app icons/tiles from one source image.
Ships in winappcli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
If you can't run winapp yourself (no shell, or the command is denied), give the user the exact winapp command(s) for their project instead of only describing the steps.
Use this skill when:
Package.appxmanifest for a project that doesn't have one yetPackage.appxmanifest is the key prerequisite for most winapp commands — it's more important than winapp.yaml. It declares:
Two manifest templates:
packaged (default) — for full MSIX distributionsparse — for desktop apps that need package identity without full MSIX containment (uses AllowExternalContent)winapp init also generates a manifest as part of full project setup. Use winapp manifest generate when you only need the manifest without SDK setup or winapp.yaml.
# Defaults — uses current folder name, current user as publisher
winapp manifest generate
# Into a specific directory
winapp manifest generate ./my-project
# Customize identity
winapp manifest generate --package-name "MyApp" --publisher-name "CN=Contoso" --version "2.0.0.0"
# Set entry point and description
winapp manifest generate --executable myapp.exe --description "My awesome app"
# Generate a sparse manifest (for desktop apps needing identity without full MSIX)
winapp manifest generate --template sparse
# Overwrite existing manifest
winapp manifest generate --if-exists overwrite
Output:
Package.appxmanifest — the manifest fileAssets/ — default app icons in required sizes (Square44x44Logo, Square150x150Logo, Wide310x150Logo, etc.)# Generate all required icon sizes from one source image
winapp manifest update-assets ./my-logo.png
# SVG source images produce the best quality at all sizes
winapp manifest update-assets ./my-logo.svg
# Specify manifest location (if not in current directory)
winapp manifest update-assets ./my-logo.png --manifest ./path/to/Package.appxmanifest
# Generate light theme variants from a separate image
winapp manifest update-assets ./my-logo.png --light-image ./my-logo-light.png
# Use the same image for both (generates all MRT light theme qualifiers)
winapp manifest update-assets ./my-logo.png --light-image ./my-logo.png
The source image should be at least 400x400 pixels (PNG or SVG recommended). The command reads the manifest to determine which asset sizes are needed and generates:
.ico file is present in the assets directory, it is replaced in-place (preserving the original filename)--light-image: light theme variants using the correct MRT qualifiers per asset typeExecution aliases let users launch the app by typing its name in a terminal (e.g. myapp).
# Add alias inferred from the Executable attribute in the manifest
winapp manifest add-alias
# Specify the alias name explicitly
winapp manifest add-alias --name myapp
# Target a specific manifest file
winapp manifest add-alias --manifest ./path/to/Package.appxmanifest
This adds a uap5:AppExecutionAlias extension to the manifest. If the alias already exists, the command reports it and exits successfully.
When combined with
winapp run --with-aliasor theWinAppRunUseExecutionAliasMSBuild property, this enables apps to run in the current terminal with inherited stdin/stdout/stderr instead of opening a new window.
A typical Package.appxmanifest looks like:
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities">
<Identity Name="MyApp" Publisher="CN=MyPublisher" Version="1.0.0.0" />
<Properties>
<DisplayName>My App</DisplayName>
<PublisherDisplayName>My Publisher</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Resources>
<Resource Language="en-us" />
</Resources>
<Applications>
<Application Id="App" Executable="myapp.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="My App" Description="My Application"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png" BackgroundColor="transparent" />
</Application>
</Applications>
<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>
Key fields to edit:
Identity.Name — unique package name (no spaces)Identity.Publisher — must match your certificate exactlyApplication.Executable — your app's exe filenameCapabilities — add capabilities as needed (internetClient, broadFileSystemAccess, etc.)Identity.Publisher matches your signing certificate — use winapp cert generate --manifest to auto-matchsparse template adds a <uap10:AllowExternalContent>true</uap10:AllowExternalContent> element (under <Properties>) for apps that need identity but run outside the MSIX containerPackage.appxmanifest after generation — it's a standard XML fileupdate-assets handles this automatically$targetnametoken$ placeholder: When winapp manifest generate creates Package.appxmanifest, it sets Application.Executable to $targetnametoken$.exe by default. This is a valid placeholder that gets automatically resolved by winapp package --executable <name> at packaging time — you rarely need to override it during manifest generation. If --executable is provided to winapp manifest generate, winapp reads FileVersionInfo from the actual exe to auto-fill package name, description, publisher, and extract an icon, so the exe must already exist on disk.winapp-signing for certificate setup and winapp-package to create the MSIX installerwinapp-troubleshoot for a command selection flowchart| Error | Cause | Solution |
|---|---|---|
| "Manifest already exists" | Package.appxmanifest present | Use --if-exists overwrite to replace, or edit existing file directly |
| "Invalid source image" | Image too small or wrong format | Use PNG or SVG, at least 400x400 pixels |
| "Publisher mismatch" during packaging | Manifest publisher ≠ cert publisher | Edit Identity.Publisher in manifest, or regenerate cert with --manifest |
Run winapp <command> --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
windows-app, appxmanifest, app-icons, package-manifest, winapp
14 skills in this plugin
/winapp-find-apiLook up real Windows, WinRT, and Windows App SDK APIs (types, members, enums) from a project's references or the installed SDKs with winapp find-api instead of guessing. Use before coding against an unverified API, or to fix unknown-member, CS0117, CS1061, or WMC0011 errors. Not for registry code./winapp-find-uiFind the right WinUI 3 control and a real, compiling sample from the WinUI Gallery or Community Toolkit with winapp find-ui. Use when building WinUI UI and unsure which control fits (cards, tabs, swipe lists, inline messages) or when asked for a sample. Not for WPF, WinForms, or a running app./winapp-frameworksFramework-specific Windows steps for Electron, WPF, WinForms, C++, Rust, Flutter, and Tauri: build output, npm scripts, Cargo, CMake, and how winapp fits each. Use when adding Windows features such as toast notifications to one of these apps, or for setup, packaging, or identity work on one./winapp-identityGive a desktop app (WPF, WinForms, Electron, C++, Rust) package identity so identity-only Windows APIs work: push notifications, background tasks, share target, startup tasks. Use when adding such a feature, running or debugging with identity, or running parallel worktrees side by side./winapp-mauiPackage and sign .NET MAUI Windows apps with winapp: publish the Windows head first, then point packaging at the resolved resizetizer manifest. Use for a MAUI MSIX or signed unpackaged build, MAUI packaging in CI, or 'manifest contains unresolved placeholders' errors from winapp package./winapp-packageBuild an MSIX installer for a desktop, console, or CLI app (Electron, .NET, C++, Rust, Flutter, Tauri) from build output or a project file with winapp package, optionally signed. Use for an installer testers can sideload, app distribution, or MSIX in scripts or CI. Not for signing an existing MSIX.npx claudepluginhub microsoft/winappcli --plugin winappcliOther plugins' skills for the same job