AGENT SKILL

code-review

Review changes in microsoft/microsoft-ui-xaml. Use when reviewing code or pull requests in this repository.

适用职业开发工程师
使用场景代码审查
License 许可
MIT
最近更新
2026-11-14
Stars
★ 8.6k
Forks
965

01 前言 Front Matter

name
code-review
description
Review changes in microsoft/microsoft-ui-xaml. Use when reviewing code or pull requests in this repository.

03 SKILL.md 正文

Code Review

  1. Match the coding style of the current file. Check that changes follow the file's existing naming, formatting, and code patterns. Do not request unrelated style changes.

  2. Do not include Microsoft internal information. Check code, comments, documentation, and PR content for internal-only information, such as internal links, confidential details, or credentials. Do not copy that information into review comments; identify its location without repeating it.

  3. Check open PRs for related work. Look at open pull requests in microsoft/microsoft-ui-xaml for changes to the same files, components, or behavior. Inspect likely matches and mention relevant overlap, conflicts, or duplicate work with links to those PRs. If you cannot access the open PRs, state that this check could not be completed.

  4. Expect test coverage for every bug fix and new feature. Bug fixes should include regression tests that fail without the fix and pass with it. New features should have tests for their intended behavior and relevant edge cases. Use the repo's existing test patterns and flag missing coverage.

  5. Consider behavioral compatibility, even across major versions. WinUI apps are historically very sensitive to behavioral changes that seem minor. A semver major version increase can still require care when changing existing behavior. Apps may depend on how WinUI APIs behave, including undocumented behavior or dependencies they took accidentally. For example, changing the order in which events fire can break apps even when API signatures stay the same. Highlight potential compatibility risks and consider whether the change needs additional tests or a gradual rollout.

    For behavioral changes, features can use XamlOptionalChanges to let apps opt in to the new behavior first. These behaviors are expected to become the default later, with apps able to opt out. Consider this approach when a change could affect existing apps.

04 同仓库更多 Skills

microsoft
microsoft/microsoft-ui-xaml

analyze-session

Opens a WinUI Profiler session file (.sqlite) and answers questions about a WinUI 3 app's performance from it with the winui-profiler tools: how the launch went, UI-thread ticks and slow ticks, regions of interest (navigations, flyouts and dialogs opening, focus changes), and the UI elements and composition visuals the events mention. Use it when someone asks why a WinUI app is slow to start or draws slowly, what a tick did, what happened around a navigation or to an element, or what a session holds, and for /winui-profiler:analyze-session [session.sqlite | folder].

★ 8.6k
microsoft
microsoft/microsoft-ui-xaml

test-suite-setup

Complete end-to-end setup and execution of the WinUI3 test suite locally. Delegates building to the build skill, then handles test payload creation, machine setup, and running all tests.

测试与质量Skill与智能体开发
★ 8.6k
microsoft
microsoft/microsoft-ui-xaml

bt-build

Fast incremental C++/MSBuild builds using bt. Use when the user wants to compile, build, check what's dirty, or query build dependencies in a repo that has .vcxproj files. Prefer bt over invoking MSBuild directly for inner-loop source changes (.cpp, .h, .idl, .xaml, .appxmanifest).

★ 8.6k
microsoft
microsoft/microsoft-ui-xaml

test-on-vm

EXPERIMENTAL. Run locally built WinUI interaction tests on a Hyper-V VM through PowerShell Direct. Use when asked to run WinUI tests on a local VM.

测试与质量
★ 8.6k
microsoft
microsoft/microsoft-ui-xaml

code-coverage-calculation

EXPERIMENTAL. Calculate code coverage of a WinUI control or component (for example "calculate coverage of control TitleBar") by running only that component's tests on a local Hyper-V VM against the local build. Supports controls in Microsoft.UI.Xaml.Controls.dll and Microsoft.UI.Xaml.Controls.Tabular.dll, and dxaml types in Microsoft.ui.xaml.dll. Reports per-file and per-function line coverage that matches the ADO Code Coverage tab. Use for "calculate/measure/get coverage of <control>", "how much do <control>'s tests cover", or "coverage before/after my tests" when you have a local build and a VM.

开发工程师Skill与智能体开发
★ 8.6k