/winappcli:winapp-frameworksfrom winappcli
Framework-specific Windows steps for Electron, WPF, WinForms, C++, Rust, Flutter, and Tauri using the winapp CLI. Covers build output, npm scripts, Cargo, CMake, and setup for Windows features like toast notifications.
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:
Each framework has a detailed guide — refer to the links below rather than trying to guess commands.
| Framework | Install method | Guide |
|---|---|---|
| Electron | npm install --save-dev @microsoft/winappcli | Electron setup guide |
| .NET (WPF, WinForms, Console) | winget install Microsoft.winappcli | .NET guide |
| .NET MAUI | winget install Microsoft.winappcli | MAUI guide + winapp-maui skill |
| C++ (CMake, MSBuild) | winget install Microsoft.winappcli | C++ guide |
| Rust | winget install Microsoft.winappcli | Rust guide |
| Flutter | winget install Microsoft.winappcli | Flutter guide |
| Tauri | winget install Microsoft.winappcli | Tauri guide |
Use the npm package (@microsoft/winappcli), not the standalone CLI. The npm package includes:
node_modulesnpx winapp node.winapp/bindings/) for direct JavaScript access to Windows App SDK APIsQuick start:
npm install --save-dev @microsoft/winappcli
npx winapp init . --use-defaults --add-js-bindings
npx winapp node create-addon --template cs # create a C# native addon
npx winapp node add-electron-debug-identity # register identity for debugging
Windows integration guidance:
winapp.jsBindings.additionalWinmds in package.json.--template cpp for C++ (node-gyp), or --template cs for C#.winapp.jsBindings in package.json, regenerate with npx winapp node generate-bindings. After editing winapp.yaml, run npx winapp restore first.Additional Electron guides:
.NET projects have direct access to Windows APIs. Key differences:
Microsoft.Windows.SDK.BuildTools or Microsoft.WindowsAppSDK don't need winapp.yaml — winapp auto-detects SDK versions from the .csprojPackage.appxmanifest, not winapp.yamlwinapp init automatically adds the Microsoft.Windows.SDK.BuildTools.WinApp NuGet package, enabling dotnet run with automatic identity registrationdotnet run go to the launched application, exactly as they would without the package; configure the launcher itself with the WinAppRun* MSBuild propertiesdotnet run -p:WinAppRunDetach=true --app-arg (WinApp detaches, the app receives --app-arg)-- when the app's flag is also a dotnet run option (--configuration, --framework, --project, -c, -f, -r, ...), e.g. dotnet run -- --configuration Release; otherwise the SDK claims it and the app never sees itIf you already have a Package.appxmanifest (e.g., WinUI 3 apps or projects with an existing packaging setup), you likely don't need winapp init — your project is already configured for packaged builds. Just make sure:
.csproj references the Microsoft.WindowsAppSDK NuGet package (WinUI 3 apps already have this)<WindowsPackageType>MSIX</WindowsPackageType> or equivalent)Quick start:
winapp init . --use-defaults
dotnet build <path-to-project.csproj> -c Debug -p:Platform=x64
winapp run bin\x64\Debug\<tfm>\win-x64\
Replace <tfm> with your target framework (e.g., net10.0-windows10.0.26100.0), and adjust x64 to match your target architecture.
MAUI has one important quirk: its checked-in Platforms/Windows/Package.appxmanifest is full of $placeholder$ tokens that winapp package does not resolve. MAUI's resizetizer fills them at build/publish time into a generated manifest:
obj\<Config>\<TFM>\<RID>\resizetizer\m\Package.appxmanifestbin\<Config>\<TFM>\<RID>\AppxManifest.xmlPublish the Windows head first, then point winapp package --manifest at the generated manifest — never the source one. See the dedicated winapp-maui skill for the full workflow, CI examples, and troubleshooting.
C++ projects use winapp primarily for SDK projections (CppWinRT headers) and packaging:
winapp init --setup-sdks stable downloads Windows SDK + App SDK and generates CppWinRT headers.winapp/generated/include.cppwinrt.rsp for build system integration.winapp/packages to include/lib paths in your build system.vcxproj, e.g. WinUI 3 C++/WinRT): winapp run .\MyApp.vcxproj (or the project folder) builds with Visual Studio's MSBuild and launches the app; it needs Visual Studio or Build Tools with the C++ workload. CMake projects run their build-output folder instead.windows crate for Windows API bindingstarget/release/myapp.exeflutter build windows)build\windows\x64\runner\Release\.msi installers| Framework | Recommended command | Notes |
|---|---|---|
| .NET | winapp run .\bin\x64\Debug\<tfm>\win-x64\ | Build with dotnet build -c Debug -p:Platform=x64 first; GUI apps launch via AUMID, console apps automatically via an execution alias |
| C++ | winapp run .\MyApp.vcxproj (Visual Studio project) or winapp run .\build\Debug (CMake output) | The .vcxproj is built with MSBuild first; console apps are detected and launched via an execution alias automatically |
| Rust | winapp run .\target\debug | Console apps are detected and launched via an execution alias automatically |
| Flutter | winapp run .\build\windows\x64\runner\Debug | GUI app — plain winapp run works |
| Tauri | winapp run .\dist | Stage exe to dist/ first (avoids copying entire target/ tree); GUI app |
| Electron | npx winapp node add-electron-debug-identity | Uses Electron-specific identity registration; winapp run is not recommended for Electron |
Key rules:
winapp run <build-output> — launches via AUMID activationwinapp run <build-output> — winapp detects a console app from the built binary's PE subsystem and launches it via an execution alias, so stdin/stdout reach your terminal. It stages the required uap5:ExecutionAlias into the AppX layout itself, so no manifest edit is needed. Pass --without-alias to force AUMID activation instead (the app then prints nothing); --with-alias only forces an alias for a windowed appnpx winapp node add-electron-debug-identity because electron.exe is in node_modules/, not your build outputwinapp create-debug-identity <exe> so your IDE can F5-launch the exe with identity from the first instructionFor full debugging scenarios and IDE setup, see the Debugging Guide.
winapp-setup — initial project setup with winapp initwinapp-manifest — creating and customizing Package.appxmanifestwinapp-signing — certificate generation and managementwinapp-package — creating MSIX installers from build outputwinapp-identity — enabling package identity for Windows APIs during developmentwinapp-maui — packaging/signing .NET MAUI Windows apps and resolving the resizetizer manifestwinapp-troubleshoot for a command selection flowchartRun 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
winapp, windows-app-sdk, windows-development, framework-guides
npx claudepluginhub microsoft/winappcli --plugin winappcli14 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-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-manifestCreate or edit Package.appxmanifest or appxmanifest.xml for any app type (GUI, console, service): execution aliases, file associations, protocols, capabilities, identity, app icons/tiles from one image. Use when changing what the manifest declares or replacing icons. Not for packaging or signing./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.Other plugins' skills for the same job