/winappcli:winapp-performancefrom winappcli
Investigates slow WinUI 3 layout, scrolling, and virtualization using ETW captures, timed operation trees, and GC suspension context. For runtime performance questions, not crash analysis or UI correctness.
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.
winapp perf start --app <pid> --output <empty-directory> --json.
--app also accepts a process name or window title using the same matching
rules as winapp ui. Use the returned target.pid for subsequent UI actions.
For a new launch, use winapp run <project> --profile <empty-directory> --detach --json.
This records after launch, which is enough for navigation, scrolling and other
post-launch scenarios. For startup investigations only, add --profile-mode elevated
(one UAC prompt for the recorder, which the user must approve) and check
Profile.StartupCoverage; see the guide's
startup workflow.
Do not add startup delays or replace a generated Main.winapp perf mark <id> --name scenario-start --json,
drive a short repeatable scenario with verified UI selectors, wait for its
visible outcome, then run winapp perf mark <id> --name scenario-end --json.winapp perf stop <id> --json before closing the app.winapp perf analyze <directory> --from-marker scenario-start --to-marker scenario-end --json
to compare mutually exclusive primary-UI-thread activity, the hottest parsed
XAML resources, and the detailed operation ranking. Use --view parsing over
the same range when the parsing preview needs full paging. Then query
winapp perf analyze <directory> --view hotspots --from-marker scenario-start --to-marker scenario-end --json; its default threshold is 16.67 ms and each
row includes dominant direct child operations. Expand a
returned operation with --view call --id <call-id> --depth 2 --from-marker scenario-start --to-marker scenario-end --json. Use --view calls --family layout with the same marker range when the hotspot evidence points to layout.
Query --view gc --sort duration over the same marker range to find the longest
collection and suspension intervals, then inspect referenced interval IDs. Use
element and event views for source and evidence drill-down. Follow nextOffset;
do not dump NDJSON or ETL into context.
For overall resource cost, use --view resources over the same marker range;
see the guide's
process counters.
For app-side composition, query --view calls --family composition and
--view events --event DCompDeviceCommit over the same marker range; see
composition submission.
For Microsoft.UI.Reactor apps, the summary has a Reactor category; query
--view components over the same marker range to rank components by exclusive
time with render counts and reasons, and expect slow render passes in hotspots
with the component that requested them; see
Reactor components.--profile-mode elevated only for startup, and tell the user to expect a UAC
prompt. If they decline it, do not retry; fall back to the default attach mode and
say that early startup may be missing. Otherwise never elevate, change tracing ACLs,
or modify app code to make capture work.run --profile with --on sandbox;
see the guide for the supported launch and recording commands.Unclassified includes idle, waits, and uninstrumented work. Do not describe it
as app code or CPU use. Off-thread image decode is not UI-thread occupancy.Reactor category is using a Reactor version without
perf spans; that is missing evidence, not zero Reactor cost.created at call sites appear only when source mapping is on
(REACTOR_SOURCEMAP=1). It adds cost, so don't compare timings between
recordings with and without it.directCompositionProvider before interpreting missing events.gcCoverage separately;
missing events are not zero pauses. Background GC duration is not suspension time,
and overlapping runtime suspension is not proof that GC blocked the native UI.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
winui-3, etw, gc-analysis, layout-performance, scrolling-performance
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-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-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.Other plugins' skills for the same job