winapp-performance

winapp-performance is a skill for Claude Code from microsoft/winappCli. It costs 46 tokens per session (1,597 once invoked), scanned A, original, MIT.

A workflow for investigating slow WinUI 3 desktop application layout, scrolling, and virtualization using Windows performance recordings. WinUI 3 is Microsoft's framework for building Windows desktop interfaces.

In plain words
What is it for?
It is for recording repeatable UI scenarios, marking their start and end, and examining timing and memory-management context.
Why use it?
It helps distinguish UI operation timing and managed garbage-collection pauses from other problems, using bounded performance queries rather than crash dumps.

Skill for Claude Code ✓ vendor

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

Part of the winappcli plugin — 14 skills, 1 agent shipped together

Good fit It is for recording repeatable UI scenarios, marking their start and end, and examining timing and memory-management context.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/winappcli/winapp-performance
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,403 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 winapp-performance
Clone the repo
git clone --depth 1 https://github.com/microsoft/winappCli

Made for: Claude Code.

Or install winappcli, the plugin that ships this one along with the rest of its 14 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 winapp-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/winappcli/winapp-performance/github.svg)](https://agentmods.dev/skills/microsoft/winappcli/winapp-performance)
Your own site
<a href="https://agentmods.dev/skills/microsoft/winappcli/winapp-performance"><img src="https://agentmods.dev/badge/skills/microsoft/winappcli/winapp-performance/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 winapp-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/winappcli/winapp-performance"><img src="https://agentmods.dev/badge/skills/microsoft/winappcli/winapp-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,597 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.00046 $0.01597
Opus 5.5 $0.00018 $0.00639
Sonnet 5.5 $0.00009 $0.00319
Haiku 4.5 $0.00005 $0.00160

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

Security

Grade A, and why

winapp-performance 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 9d 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/winapp/skills/winapp-performance/SKILL.md · 99 lines

How it starts

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

Workflow

  1. Read the WinUI performance guide for capture limits, query options, partial-result handling, privacy and interpretation.
  2. Use the existing app PID when possible. Start with 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.
  3. Wait for successful recording readiness. Save the returned capture ID.
  4. Mark the beginning with 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.
  5. Run winapp perf stop <id> --json before closing the app.
  6. Start with 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. To find wasted work, read reactorPasses.wastedWork (totals, and insights that name components using the same fields as rows) and each row's wastedRenders (updates after which nothing in the component's subtree changed), memoHitRate, stateSets (its own writes, not its children's) and maxStateSets. Renders that changed nothing after missing their memo point to unstable props (new lambdas, arrays or records). Many writes in one render or effects run already merge into one re-render; suggest combining them only when the passes that follow show several requests. See Reactor components.
  7. Report observed cost, supporting event IDs, coverage gaps, and one concrete next experiment. Preserve stdout when partial results accompany a nonzero exit code.

Read the full file on GitHub · 99 lines

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. 9d ago Changed · +11 lines 40e6a3856783
  2. 17d ago Changed · +10 lines c40c8112ff54
  3. 1mo ago Changed aaf5d417cc9c
  4. 1mo ago First seen · 78 lines · 46 tokens per session scan A 1bd52d8ac68b

Subscribe to this mod's changes

winapp-performance is a skill published in the GitHub repository microsoft/winappCli (1,403 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 1,597 once invoked, about $0.0002 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-14.

Related

winapp-performance compared with skills from other repositories

winapp-performance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
winapp-performancemicrosoft/winappCliSkill1.4ktodayMITA46Claude Code
code_explorergoogle-gemini/gemini-cliSkill109ktodayApache-2.0A28Gemini CLI
test-failure-explorerQwenLM/qwen-codeSkill31ktodayApache-2.0A32Claude Code, Codex
session-investigatorevalstate/fast-agentSkill4.0ktodayApache-2.0A68Claude Code, Codex
smiles-validationsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A24Claude Code, Codex
pr-autofixAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA45Claude Code, Codex
oversight-teammvschwarz/openrigSkill9.0ktodayApache-2.0A117Claude Code, Codex