# Uno Platform contributor skills: samples, tests, porting, specs (unoplatform/uno) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-06 against commit 0cd02b3.
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/unoplatform/uno/

> Note: the pack has changed since this check; re-read its files before relying on details.

## Explain it to a non-programmer
These are the work recipes the Uno Platform team keeps for Claude Code inside its own code base. They help an assistant add sample pages, run the framework's tests and port Microsoft's WinUI controls to Uno. Others check the documentation site or plan a feature step by step from a written spec. They only work in a copy of the Uno Platform source code; they do not help you build your own app.

## Who it is for
- You contribute to the Uno Platform framework itself and use Claude Code
- You need to add a sample page for a control, or run the framework's tests on desktop, in the browser or against native WinUI
- You port a WinUI control written in C++ to Uno's C#
- You edit the Uno documentation and want to check the site builds and renders
- Not for: You build your own app with Uno Platform: the team points app builders to a separate set of skills in its paid Studio product
- Not for: You use another code base: the recipes name Uno's own folders and files

## What it is
- Kind: command, knowledge, scripts
- License: Apache-2.0
- Repository: https://github.com/unoplatform/uno

## What it does
- add-sample: creates a XAML sample page and its code file in the right folder of the sample app, formats it and builds once
- runtime-tests: builds the sample app for desktop (default) or the browser, encodes the test filter the runner needs, runs the tests and reads the results file
- winui-runtime-tests: runs the same tests against Microsoft's own WinUI on Windows, with helper PowerShell scripts for build, run, results and cleanup
- winui-port: turns WinUI C++ source into Uno C# drafts that keep all logic, file layout and comments; nothing is deleted
- devserver: a map of the Uno DevServer (the tool behind Hot Reload and Uno's MCP bridge) for people changing it
- docs-build: builds the documentation site with a pinned DocFX version, separates real errors from known noise, and checks changed pages in a browser
- speckit-*: 14 skills copied from GitHub's Spec Kit (spec, clarify, plan, tasks, analyze, checklist, implement, constitution, issues, git helpers)
- Never cuts: winui-port never removes or simplifies original code; anything that cannot be converted stays as a comment

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| add-sample | /add-sample <control> <scenario> | yes | Adds a sample page for a control to the framework's sample app |
| runtime-tests | /runtime-tests [test name] [wasm] [strict] | no | Builds the sample app and runs the framework's tests on desktop or in the browser |
| winui-runtime-tests | /winui-runtime-tests [test name] [strict] [debug] [msix] | no | Runs the same tests against Microsoft's own WinUI on Windows to spot differences from Uno |
| winui-port | /winui-port <what to port and where the C++ files are> | yes | Turns a WinUI control written in C++ into Uno C# without dropping any of the original |
| devserver | /devserver | unclear | Background notes for people changing Uno's DevServer, the tool behind Hot Reload |
| docs-build | /docs-build | no | Builds the documentation site and checks the pages you changed |
| speckit-specify | /speckit-specify <feature description> | no | Writes a feature spec from a plain description; first steps of the Spec Kit flow |
| speckit-clarify | /speckit-clarify | no | Asks up to 5 targeted questions about a spec and writes the answers back into it |
| speckit-plan | /speckit-plan | no | Turns the spec into a plan with research, data model and quick-start notes |
| speckit-tasks | /speckit-tasks | no | Splits the plan into an ordered task list |
| speckit-analyze | /speckit-analyze | no | Checks spec, plan and tasks against each other and changes nothing |
| speckit-checklist | /speckit-checklist | no | Writes a custom checklist for the current feature |
| speckit-implement | /speckit-implement | yes | Works through the task list and builds the feature |
| speckit-constitution | /speckit-constitution | no | Creates or updates the project's ground rules file |
| speckit-taskstoissues | /speckit-taskstoissues | no | Turns each task into a GitHub issue in the project's own GitHub copy |
| speckit-git-feature | /speckit-git-feature | no | Creates and switches to a numbered feature branch |
| speckit-git-commit | /speckit-git-commit | no | Saves all changes to git after a Spec Kit step, only if turned on in its settings |
| speckit-git-initialize | /speckit-git-initialize | no | Starts a git history with a first save |
| speckit-git-remote | /speckit-git-remote | no | Finds the project's GitHub address for other steps |
| speckit-git-validate | /speckit-git-validate | no | Checks the current branch name follows the feature naming |

### add-sample
- Asks for: The control, for example Button or TreeView
- Asks for: What the sample shows, for example BasicUsage or DataBinding
- Gives: ControlName_Scenario.xaml and its .xaml.cs file in the matching folder
- Gives: A theme-aware background instead of a fixed colour
- Gives: A build of the sample app to check it compiles
- Gives: A reminder to search for the sample in the sample browser
- Say: "/add-sample Button with a custom style"

### runtime-tests
- Asks for: All tests, or a test class or method name (partial names are looked up)
- Asks for: wasm for the browser version; desktop is the default
- Asks for: strict for the full checks the team's build servers use
- Gives: A build of the sample app
- Gives: Test results in an XML file
- Gives: A summary: total, passed, failed, skipped
- Gives: Failure messages and next steps to investigate
- Say: "/runtime-tests Given_Button"

### winui-runtime-tests
- Asks for: All tests, or a test class or method name
- Asks for: debug for crash details, msix for the packaged path
- Gives: Counts for passed, failed, inconclusive and skipped
- Gives: Every test that did not pass, with its message
- Say: "/winui-runtime-tests Given_Border"

### winui-port
- Asks for: A control name and its WinUI source folder, one method to port, or a list of files
- Asks for: Whether it is a full control or a piece of an existing port
- Gives: C# files split like the C++ ones (ControlName.mux.cs, ControlName.h.mux.cs and more)
- Gives: A reference header with the WinUI source version
- Gives: Doc comments on public members taken from Microsoft Learn
- Gives: TODO Uno notes for anything that could not be converted
- Say: "/winui-port the Expander control from /path/to/winui/dev/Expander/"

### docs-build
- Asks for: The pages you edited, or the external docs version you bumped
- Gives: Errors and warnings that touch your files, separated from known noise
- Gives: A browser check of each changed page: loads, has a heading, no broken images or console errors, a screenshot
- Gives: A report that keeps the build check and the browser check apart
- Say: "/docs-build I edited doc/articles/getting-started.md"

### speckit-specify
- Asks for: A description of the feature in your own words
- Gives: A short feature name and, through an automatic step, a new numbered branch
- Gives: A spec file for the feature
- Say: "/speckit-specify Add a date range filter to the calendar control"

## Know before installing
- These are the Uno team's internal recipes for working on the framework. App builders get a different set of over 70 skills through the paid Uno Platform Studio plugin, which this card does not cover.
- The 14 speckit skills are copies of GitHub's Spec Kit commands and expect its .specify/ folder.
- Spec Kit steps run follow-up steps on their own: /speckit-specify creates a new git branch first, and /speckit-plan rewrites a marked block in CLAUDE.md to point at the new plan.
- Automatic saving to git after each Spec Kit step is switched off in the shipped settings.
- The WinUI test recipe's packaged path (msix) creates a signing certificate, trusts it on the whole machine with an admin prompt, and installs an app package. The default path needs neither.
- The WinUI test build temporarily swaps the repository's global.json and asks the assistant to set, then restore, src/crosstargeting_override.props.

## Install (official commands)
- Claude Code: No separate install. Clone github.com/unoplatform/uno and open the folder in Claude Code; the skills in .claude/skills become slash commands. Remove: `Close the folder; nothing is installed elsewhere.`.

## What runs on the user's machine
- Code on the machine: yes (winui-runtime-tests (PowerShell scripts in the skill folder) and the speckit skills (scripts in .specify/))
- Network: optional
- Install: Markdown skill files. No hooks in .claude; no settings file ships with them.
- /add-sample, /runtime-tests: The assistant runs dotnet build or publish on the sample app. For the browser version it starts two local Python servers on ports 8000 and 8001 and opens a browser; the results file is written in your working folder.
- /winui-runtime-tests (default path): PowerShell scripts swap and restore global.json, build the app, register it as a development package through winapp, and unregister it on exit.
- /winui-runtime-tests msix: setup-cert.ps1 makes a signing certificate, trusts it in the machine's Root store (admin prompt once) and saves its thumbprint to %USERPROFILE%\.uno-dev-cert-thumbprint; install-msix.ps1 installs the app package.
- Speckit steps: Shell and PowerShell scripts in .specify/ check prerequisites, create feature branches and, if turned on, run git add and git commit.
- Network: No script in the skill folders calls the network. The recipes tell the assistant to search Microsoft Learn (/winui-port), create GitHub issues through a GitHub MCP server (/speckit-taskstoissues), and use local browsers for test and docs checks.

## Examples (from the pack's own files)
- The code file /add-sample creates: output format defined in .claude/skills/add-sample/SKILL.md

## Author's numbers (as reported, not run by AgentGid)
- Default fast flags cut a clean sample app desktop build from about 3:23 to 1:59 on a 32-core Windows machine (Author's timing on one machine, warm NuGet cache). Source: unoplatform/uno/.claude/skills/runtime-tests/SKILL.md
- Each WinUI test round after an edit takes about 4:45 through winapp versus 5:41 through the packaged path. Source: unoplatform/uno/.claude/skills/winui-runtime-tests/SKILL.md

## Steps only the person can do
- Turn on Windows Developer Mode before /winui-runtime-tests (.claude/skills/winui-runtime-tests/SKILL.md (Requirements)) Then: The agent builds the WinUI sample app and registers it as a development package
- Approve the one-time administrator prompt that trusts the signing certificate (msix path only) (.claude/skills/winui-runtime-tests/setup-cert.ps1) Then: The agent can install and run the packaged sample app
- Connect a GitHub MCP server with access to the project's GitHub copy before /speckit-taskstoissues (.claude/skills/speckit-taskstoissues/SKILL.md) Then: The agent creates one GitHub issue per task
- Approve a global install or reinstall of the pinned DocFX version, if the installed one differs (.claude/skills/docs-build/SKILL.md (Gotchas)) Then: The agent builds the docs site and checks the changed pages

## Mistakes to avoid
- Not: Use these skills to build your own Uno Platform app. Instead: Use them only inside a clone of the Uno framework source; for app work use the skills in the Uno Platform Studio plugin. Why: The recipes point at the framework's own folders, such as the runtime tests project
- Not: Count Inconclusive WinUI test results as passed, or as failures. Instead: Report inconclusive separately; switch the OS theme and re-run to exercise theme tests. Why: WinUI cannot change the app theme at runtime, so theme tests often come back inconclusive
- Not: Leave src/crosstargeting_override.props set to the Windows target after a WinUI test run. Instead: Put back the value it had before the run. Why: The WinUI build needs the Windows target, but the file is the person's own local setting
- Not: Treat a passing default /runtime-tests build as proof the change passes CI. Instead: Add strict when you need CI-equivalent analyzer coverage. Why: The default fast flags turn off analyzers for local iteration
- Not: Build the docs with whatever DocFX version is installed. Instead: Match the DocFX version pinned in build/Uno.UI.Build.csproj. Why: Newer DocFX versions emit errors that are not content problems

## What leaves the machine
- The task list of the current feature, as new GitHub issues → GitHub, the repository of the project's git remote, through a GitHub MCP server, Only when you run /speckit-taskstoissues. Opt out: Do not run /speckit-taskstoissues
- Web searches for the name of the control being ported → The assistant's web search, for Microsoft Learn pages, During /winui-port. Opt out: Give the agent the documentation yourself or tell it not to search

## Lines in the pack aimed at agents (ask the person first)
- "dotnet tool install   --global docfx --version <DocfxVersion>" (.claude/skills/docs-build/SKILL.md): A global tool install (after uninstalling the current DocFX) changes the person's machine; ask first.
- "# 1. Certificate (first time only; prompts UAC once)" (.claude/skills/winui-runtime-tests/SKILL.md): The msix path trusts a new certificate in the machine's Root store; use the default path unless the person agrees.
- "Always run a `.ps1` file with `pwsh -NoProfile -ExecutionPolicy Bypass -File …`." (.claude/skills/winui-runtime-tests/SKILL.md): Bypassing the execution policy runs the skill's scripts unchecked; read them and tell the person before running.
- "auto_execute_hooks: true" (.specify/extensions.yml): Spec Kit steps run git steps on their own, such as creating a feature branch before /speckit-specify; tell the person first.

## May I use it like this?
- commercial-app: yes (Apache 2.0: keep the license and notices)
- redistribute-files: conditions (Apache 2.0: include the license, keep notices, mark changed files)
- client-work: yes (Apache 2.0 allows use in work for others)

## Which one to pick
- If You contribute to the Uno Platform framework source and need its samples, tests, WinUI porting and docs workflows: skill:unoplatform/uno
- If You want general .NET and C# skills for your own code base: skill:dotnet/skills
- If You want Claude Code skills and subagents for everyday .NET development: skill:Aaronontheweb/dotnet-skills

## Works well with
- agent:claude-code: AGENTS.md lists these as Claude Code skills called with /skill-name
- tool:playwright-test: /docs-build checks the rendered docs pages with Playwright
- api:github: /speckit-taskstoissues turns tasks into GitHub issues

## Works in and needs
- Works in Claude Code: skills folder (.claude/skills in the cloned repository)
- Needs .NET SDK pinned by the repository: /add-sample and /runtime-tests build the sample app with dotnet
- Needs Python and a browser: Only for the browser (wasm) runtime tests
- Needs Windows with Developer Mode, MSBuild (Visual Studio) and PowerShell: Only for /winui-runtime-tests
- Needs DocFX at the pinned version: Only for /docs-build
- Needs A GitHub MCP server: Only for /speckit-taskstoissues

## How to tell it works
Clone the Uno Platform source, open it in Claude Code and type /add-sample Button with a custom style. Two new files named Button_CustomStyle should appear under src/SamplesApp/SamplesApp.Samples/, and the assistant builds the sample app once to check them.

## Related
- github/spec-kit

## Safety
Read the WinUI test scripts before using the msix path: it trusts a new certificate for the whole machine and installs an app package. The Spec Kit steps can create branches and, if switched on, save to git automatically.
