winui-app 是什么?
围绕 WinUI 3、C# 与 Windows App SDK 创建、修改和排查 Windows 桌面应用。它同时处理开发环境、项目打包模型、原生控件、主题、响应式和真实窗口启动检查;编译成功只是验证的一部分。
中文说明由本站依据来源整理;英文原文保留在页面下方。
适合用在
- 要创建、维护或排查 Windows 桌面 WinUI 3 应用,尤其涉及 C#、Windows App SDK、XAML 控件、窗口、主题或打包环境。
这些情况不适合
- 目标是 Web、macOS 或其他非 WinUI 桌面应用;来源围绕 WinUI 3 和 Windows App SDK。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
winui-app,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 winui-app
请在 Codex 的当前工作环境中安装并检查 winui-app 这个 Skill。
项目身份:openai/skills / winui-app
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/winui-app/SKILL.md
已定位的源文件:skills/.curated/winui-app/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 winui-app
请在 Claude Code 的当前工作环境中安装并检查 winui-app 这个 Skill。
项目身份:openai/skills / winui-app
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/winui-app/SKILL.md
已定位的源文件:skills/.curated/winui-app/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 winui-app
请在 Cursor Agent 的当前工作环境中安装并检查 winui-app 这个 Skill。
项目身份:openai/skills / winui-app
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/winui-app/SKILL.md
已定位的源文件:skills/.curated/winui-app/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 winui-app
请在 当前 Agent 的当前工作环境中安装并检查 winui-app 这个 Skill。
项目身份:openai/skills / winui-app
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/winui-app/SKILL.md
已定位的源文件:skills/.curated/winui-app/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- Windows开发环境与实际项目目录;说明是只检查环境、新建项目还是修改现有应用。
- 附带 config.yaml 的 WinGet 流程会启用开发功能并安装或更新开发组件,只读环境审查不能直接执行。
会得到什么
- 项目实现或环境诊断,以及分别记录的构建结果和窗口启动证据。
实际使用顺序
- 新建或准备环境先核对附带配置和工具链;dotnet new list winui 确认可用模板后,再按实际名称创建项目,不擅自用 --force。
- 明确 packaged 或 unpackaged,读取对应参考;优先原生WinUI控件与系统主题资源,保持浅色、深色和窄窗口行为一致。
- 构建生成的 csproj,并按实际打包方式启动,确认响应的顶层窗口与标题;XAML编译错误先回到当前模板结构排查。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
教学示例:用 winui-app 只读检查这台Windows电脑能否编译我提供的WinUI3项目。先读取csproj和项目打包设置,核对SDK及模板,结果分为已具备、缺失、不确定和可选项。不要执行winget configure,不安装组件,不新建或覆盖项目。预期获得基于本机与项目状态的环境诊断;本站未进行此检查。
使用条件与边界
- 源文件要求应用修改后构建并启动;创建了进程、启动器退出码正常或单次build通过,都不足以确认窗口已经显示。
- 附带配置的Visual Studio版本和组件应按绑定文件与当前机器核对,不能只凭名称推断已安装。
常见问题
只检查环境会改电脑吗?
应走手动只读核对。附带的winget configure会改变机器配置,来源明确要求诊断任务先说明并取得确认。
为什么编译通过仍不能算完成?
打包、注册、依赖和启动方式可能导致应用无法显示窗口,需要用对应模型启动并确认客观窗口信号。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skills/.curated/winui-app/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and CommunityToolkit components. Use when creating a brand new app, preparing a machine for WinUI, reviewing, refactoring, planning, troubleshooting, environment-checking, or setting up WinUI 3 XAML, controls, navigation, windowing, theming, accessibility, responsiveness, performance, deployment, or related Windows app design and development work.
查看源文件章节 / Source sections
- 原文:WinUI App
- 原文:Required Flow
- 原文:Common Routes
- 原文:Environment Rules
- 原文:Reference Rules
原文:WinUI App
Use this skill for WinUI 3 and Windows App SDK work that needs grounded setup guidance, app bootstrap, modern Windows UX decisions, or concrete implementation patterns.
原文:Required Flow
1. Classify the task as environment/setup, new-app bootstrap, design, implementation, review, or troubleshooting. 2. If the task is about preparing a machine for WinUI, auditing readiness, or creating a brand new app, start with the bundled setup-and-scaffold flow in this skill before broader design, implementation, or troubleshooting work: - Pick the app name when the request is for a new app. - Use the exact name the user gave when it is already a safe folder name. - If the user did not give a name, derive a short PascalCase name from the request and state what you chose. - Create the project in the user's current workspace unless they asked for another location. - Do not use `--force` unless the user explicitly asked to overwrite existing files. - Run the bundled WinGet configuration from the skill directory so the relative path stays exactly `config.yaml`: ```powershell winget configure -f config.yaml --accept-configuration-agreements --disable-interactivity ``` - Treat the configuration as intended to enable Developer Mode, install or update Visual Studio Community 2026, and install the Managed Desktop, Universal, and Windows App SDK C# components needed for WinUI development. - Assess the configuration result before continuing. Continue on success. If it fails, inspect the output instead of guessing. If the `winui` template is already available and the toolchain is usable, note the partial failure and continue. If prerequisites are still missing, stop and report the blocker clearly. - Verify the template is available before scaffolding: ```powershell dotnet new list winui ```
本段为节选,完整内容见源文件。
原文:Common Routes
| Request | Read first | | --- | --- | | Check whether this PC can build WinUI apps | `references/foundation-environment-audit-and-remediation.md` | | Install missing WinUI prerequisites | `references/foundation-environment-audit-and-remediation.md` | | Start a new packaged or unpackaged app | `references/foundation-setup-and-project-selection.md` | | Recover from opaque XAML compiler or startup failures while staying anchored to the template scaffold | `references/foundation-template-first-recovery.md` | | Build, run, or verify that a WinUI app actually launched | `references/build-run-and-launch-verification.md` | | Review app structure, pages, resources, and bindings | `references/foundation-winui-app-structure.md` | | Choose shell, navigation, title bar, or multi-window patterns | `references/shell-navigation-and-windowing.md` | | Choose controls or responsive layout patterns | `references/controls-layout-and-adaptive-ui.md` | | Apply Mica, theming, typography, icons, or Fluent styling | `references/styling-theming-materials-and-icons.md` | | Improve accessibility, keyboarding, or localization | `references/accessibility-input-and-localization.md` | | Diagnose responsiveness or UI-thread performance | `references/performance-diagnostics-and-responsiveness.md` | | Decide whether to use CommunityToolkit | `references/community-toolkit-controls-and-helpers.md` | | Handle lifecycle, notifications, or deployment | `references/windows-app-sdk-lifecycle-notifications-and-deployment.md` | | Run a review checklist | `references/testing-debugging-and-review-checklists.md` |
原文:Environment Rules
- Do not guess whether the machine is ready for WinUI development. Verify it. - Use the bundled setup-and-scaffold flow in this skill for fresh setup, remediation, and first-project scaffolding instead of delegating to another skill. - Treat `config.yaml` in this skill directory as the bundled bootstrap source of truth. - Treat uncertain environment signals as uncertain, not as success. - If the task is audit-only and the user declines machine changes, use the manual verification guidance in `references/foundation-environment-audit-and-remediation.md` and keep uncertain signals explicit instead of implying success. - If `config.yaml` is missing, say so clearly and fall back to the official Microsoft workflow instead of pretending the bundled path exists. - Keep environment readiness, packaging choice, and application startup verification as separate checks. Passing one does not prove the others. - Fail closed on ambiguous launch results. If the app did not clearly open, keep debugging. - After creating or editing a WinUI app, do not stop at a successful build. Launch the app, confirm objective startup behavior, and leave the final verified app instance running before returning control to the user unless they explicitly say not to run it.
原文:Reference Rules
- Keep C# as the primary path. Mention C++ or C++/WinRT only when the difference is material. - Preserve the conventions of an existing codebase instead of forcing a generic sample structure onto it. - Treat WinUI design guidance and native controls as the baseline. Do not drift into bespoke component systems or app-specific replacements for standard controls unless the user explicitly requests them or the existing codebase already depends on them. - Support light and dark mode by default for app UI work unless the user explicitly asks for a single-theme result or the product already enforces one. - Favor built-in WinUI controls and system styling hooks before adding CommunityToolkit dependencies, custom controls, or app-specific surface systems. - Put detailed control, theming, shell, scrolling, responsiveness, packaging, and recovery guidance in the matching reference files instead of duplicating those rules here.
文件 SHA256:917341ec9eb688d73e21362910a7178a92b2ae49544b7d8f17ee9e19adfe2ea8
仓库许可证记录:未提供;not-established,查看来源。
Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and CommunityToolkit components. Use when creating a brand new app, preparing a machine for WinUI, reviewing, refactoring, planning, troubleshooting, environment-checking, or setting up WinUI 3 XAML, controls, navigation, windowing, theming, accessibility, responsiveness, performance, deployment, or related Windows app design and development work.
历史收录数据
| 来源仓库 | openai/skills |
|---|---|
| Skill源路径 | skills/.curated/winui-app/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
