Maui AI Debugging
Redth/Maui.Gtk
End-to-end workflow for building, deploying, inspecting, and debugging .NET MAUI and MAUI Blazor Hybrid apps as an AI agent.
Builds and packs .NET MAUI, installs the local workloads and runs integration tests for templates, samples and end-to-end scenarios by category.
$ npx skills add dotnet/maui --skill run-integration-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install dotnet/maui run-integration-tests --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/dotnet/maui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/run-integration-tests .claude/skills/run-integration-tests && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "run-integration-tests" agent skill from https://github.com/dotnet/maui/tree/main/.github/skills/run-integration-tests into .claude/skills/run-integration-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-integration-tests", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/dotnet/maui/tree/main/.github/skills/run-integration-testsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add dotnet/maui --skill run-integration-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install dotnet/maui run-integration-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dotnet/maui.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/run-integration-tests .agents/skills/run-integration-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "run-integration-tests" agent skill from https://github.com/dotnet/maui/tree/main/.github/skills/run-integration-tests into .agents/skills/run-integration-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-integration-tests", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add dotnet/maui --skill run-integration-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install dotnet/maui run-integration-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dotnet/maui.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/run-integration-tests .cursor/skills/run-integration-tests && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "run-integration-tests" agent skill from https://github.com/dotnet/maui/tree/main/.github/skills/run-integration-tests into .cursor/skills/run-integration-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-integration-tests", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/dotnet/maui.git --path .github/skills/run-integration-tests--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add dotnet/maui --skill run-integration-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install dotnet/maui run-integration-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dotnet/maui.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/run-integration-tests .gemini/skills/run-integration-tests && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "run-integration-tests" agent skill from https://github.com/dotnet/maui/tree/main/.github/skills/run-integration-tests into .gemini/skills/run-integration-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-integration-tests", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install dotnet/maui run-integration-testsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add dotnet/maui --skill run-integration-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/dotnet/maui.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/run-integration-tests .github/skills/run-integration-tests && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "run-integration-tests" agent skill from https://github.com/dotnet/maui/tree/main/.github/skills/run-integration-tests into .github/skills/run-integration-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-integration-tests", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add dotnet/maui --skill run-integration-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install dotnet/maui run-integration-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dotnet/maui.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/run-integration-tests .opencode/skills/run-integration-tests && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "run-integration-tests" agent skill from https://github.com/dotnet/maui/tree/main/.github/skills/run-integration-tests into .opencode/skills/run-integration-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-integration-tests", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
run-integration-testsBuilds and packs .NET MAUI, installs the local workloads and runs integration tests for templates, samples and end-to-end scenarios by category.
Run-IntegrationTests.ps1 performs four steps: it builds and packs the product, installs workloads from the repo's own SDK project, reads the package version from the installed packs, and runs dotnet test with a category filter. Categories include Build, WindowsTemplates, macOSTemplates, Blazor, MultiProject, Samples, AOT, RunOnAndroid and RunOniOS.
Parameters let you pick a category or a custom NUnit filter, choose Debug or Release, skip the build or the workload install when already done, skip the Xcode version check on macOS, provision a local SDK automatically and move the results folder from its default of artifacts/integration-tests. Some categories are tied to a platform: WindowsTemplates needs Windows, while macOSTemplates, RunOniOS and RunOnAndroid need macOS.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 7d38fd0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (PowerShell), which the agent can run.
Shell commands in SKILL.md call:
pwshdotnetxcrunFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires Windows for WindowsTemplates category. macOS for macOSTemplates, RunOniOS, RunOnAndroid.
From compatibility in the SKILL.md frontmatter.
MAUI Integration Test Runner loads about 2.1k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 512 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from dotnet/maui at commit 7d38fd0, republished under its MIT licence (© dotnet). 512 words, ~2,052 tokens.
.claude/skills/run-integration-tests/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Build the MAUI product, install local workloads, and run integration tests.
| Category | Platform | Description |
|---|---|---|
Build | All | Basic template build tests |
WindowsTemplates | Windows | Windows-specific template scenarios |
macOSTemplates | macOS | macOS-specific scenarios |
Blazor | All | Blazor hybrid templates |
MultiProject | All | Multi-project templates |
Samples | All | Sample project builds |
AOT | macOS | Native AOT compilation |
RunOnAndroid | macOS | Build, install, run on Android emulator |
RunOniOS | macOS | iOS simulator tests |
All scripts are in .github/skills/run-integration-tests/scripts/
# Run with specific category
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category "WindowsTemplates"
# Run with Release configuration
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category "Samples" -Configuration "Release"
# Run with custom test filter
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -TestFilter "FullyQualifiedName~BuildSample"
# Skip build step (if already built)
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category "Build" -SkipBuild
# macOS: Skip Xcode version check (for version mismatches)
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category "macOSTemplates" -SkipBuild -SkipInstall -SkipXcodeVersionCheck
# Auto-provision SDK if not found (first-time setup)
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category "Build" -AutoProvision| Parameter | Required | Default | Description |
|---|---|---|---|
-Category | No | - | Test category to run (WindowsTemplates, Samples, Build, etc.) |
-TestFilter | No | - | Custom NUnit test filter expression |
-Configuration | No | Debug | Build configuration (Debug/Release) |
-SkipBuild | No | false | Skip build/pack step if already done |
-SkipInstall | No | false | Skip workload installation if already done |
-SkipXcodeVersionCheck | No | false | Skip Xcode version validation (macOS) |
-AutoProvision | No | false | Automatically provision local SDK if not found |
-ResultsDirectory | No | artifacts/integration-tests | Directory for test results |
The script performs these steps:
.\build.cmd -restore -pack -configuration $Configuration.dotnet\dotnet build .\src\DotNet\DotNet.csproj -t:Install -c $Configuration.dotnet\dotnet test ... -filter "Category=$Category"# Run WindowsTemplates tests
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category "WindowsTemplates"
# Run Samples tests
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category "Samples"
# Run multiple categories
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -TestFilter "Category=Build|Category=Blazor"Before running integration tests, you must provision the local .NET SDK and MAUI workloads:
# Step 1: Restore dotnet tools
dotnet tool restore
# Step 2: Provision local SDK and install workloads (~5 minutes)
dotnet cake --target=dotnet
# Step 3: Install MAUI local workloads
dotnet cake --target=dotnet-local-workloadsVerification:
# Check SDK exists
ls .dotnet/dotnet
# Check MAUI SDK version
ls .dotnet/packs/Microsoft.Maui.SdkNote: The old
./build.sh --target=dotnetsyntax no longer works. Usedotnet cakedirectly.
<ResultsDirectory>/artifacts/ directory| Issue | Solution |
|---|---|
| "MAUI_PACKAGE_VERSION was not set" | Ensure build step completed successfully |
| "Local .dotnet SDK not found" | Run dotnet tool restore && dotnet cake --target=dotnet && dotnet cake --target=dotnet-local-workloads |
| Template not found | Workload installation may have failed |
| Build failures | Check artifacts/log/ for detailed build logs |
| "Cannot proceed with locked .dotnet folder" | Kill processes using .dotnet: Get-Process | Where-Object { $_.Path -like "*\.dotnet\*" } | ForEach-Object { Stop-Process -Id $_.Id -Force } |
| Session times out / becomes invalid | Integration tests are long-running (15-60+ min). Run manually in a terminal window instead of via Copilot CLI |
| Tests take too long | Start with Build category (fastest), then run others. Use -SkipBuild -SkipInstall if workloads are already installed |
| iOS tests fail with "mlaunch exited with 1" | Simulator state issue. Run individual tests instead of the whole category (see below) |
| iOS simulator state errors (code 137/149) | Reset simulator: xcrun simctl shutdown all && xcrun simctl erase all or run tests individually |
Integration tests can take 15-60+ minutes depending on the category. For best results, run directly in a terminal:
cd D:\repos\dotnet\maui
# Option 1: Use the skill script
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category "Build" -SkipBuild -SkipInstall
# Option 2: Run dotnet test directly (if workloads already installed)
$env:MAUI_PACKAGE_VERSION = (Get-ChildItem .dotnet\packs\Microsoft.Maui.Sdk -Directory | Sort-Object Name -Descending | Select-Object -First 1).Name
.dotnet\dotnet test src\TestUtils\src\Microsoft.Maui.IntegrationTests --filter "Category=Build"# Windows categories (run on Windows)
$categories = @("Build", "WindowsTemplates", "Blazor", "MultiProject", "Samples")
foreach ($cat in $categories) {
Write-Host "Running $cat..." -ForegroundColor Cyan
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -Category $cat -SkipBuild -SkipInstall
}Running all iOS tests together (-Category "RunOniOS") can cause simulator state issues. For better reliability, run tests individually:
# Available iOS tests
$iosTests = @(
"RunOniOS_MauiDebug",
"RunOniOS_MauiRelease",
"RunOniOS_MauiReleaseTrimFull",
"RunOniOS_BlazorDebug",
"RunOniOS_BlazorRelease",
"RunOniOS_MauiNativeAOT"
)
# Run a specific iOS test
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -TestFilter "FullyQualifiedName~RunOniOS_MauiDebug" -SkipBuild -SkipInstall -SkipXcodeVersionCheck
# Run all iOS tests individually (more reliable than running category)
foreach ($test in $iosTests) {
Write-Host "Running $test..." -ForegroundColor Cyan
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -TestFilter "FullyQualifiedName~$test" -SkipBuild -SkipInstall -SkipXcodeVersionCheck
}© dotnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (scripts) in .github/skills/run-integration-tests of dotnet/maui.
Open the folder on GitHubat commit 7d38fd0
MAUI Integration Test Runner next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| MAUI Integration Test Runner this skilldotnet/maui | 23k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Maui AI DebuggingRedth/Maui.Gtk | 101 | — | ~4.1k | Automated safety check: Pass | MIT | |
| Maui Safe Areadotnet/skills | 5.6k | 1 repos | ~3.2k | Automated safety check: Pass | MIT | |
| Maui Aspiredavidortinau/maui-skills | 174 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Maui Safe Areadavidortinau/maui-skills | 174 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Maui Authenticationdavidortinau/maui-skills | 174 | — | ~1.5k | Automated safety check: Pass | MIT |
Redth/Maui.Gtk
End-to-end workflow for building, deploying, inspecting, and debugging .NET MAUI and MAUI Blazor Hybrid apps as an AI agent.
dotnet/skills
.NET MAUI safe area and edge-to-edge layout guidance for .NET 10+.
davidortinau/maui-skills
Guide for .NET MAUI apps consuming .NET Aspire-hosted backend services.
davidortinau/maui-skills
.NET MAUI safe area and edge-to-edge layout guidance for .NET 10+.
davidortinau/maui-skills
Add authentication to .NET MAUI apps. An agent skill from davidortinau/maui-skills.
davidortinau/maui-skills
WORKFLOW SKILL - Guide for migrating Xamarin.Android native apps to .NET for Android.
dotnet/maui
Mines local Copilot CLI session logs for dotnet/maui to rank costly or failing runs, tag recurring failure modes, propose repo edits and emit guard evals.
dotnet/maui
Reviews the tests added in a pull request for fix coverage, quality, edge cases and test type, and recommends lighter test types where they would do.
dotnet/maui
Produces evidence-backed ship-readiness verdicts for .NET MAUI Servicing Releases and Previews, and drafts public-safe release handoff pages from the result.
dotnet/maui
Interprets pinned managed benchmark evidence for a dotnet/maui pull request and writes a narrative for the performance review workflow, without running or publishing anything.
dotnet/maui
Checks that a pull request's title and description match its implementation and reviews the code for best practices before merge, without posting anything.
dotnet/maui
Adds MAUI-specific guardrails on top of the maestro-cli skill and Maestro MCP tools for darc, BAR, and channel or feed lookups in dotnet/maui.
Works with
Categories
Builds and packs .NET MAUI, installs the local workloads and runs integration tests for templates, samples and end-to-end scenarios by category. ps1 performs four steps: it builds and packs the product, installs workloads from the repo's own SDK project, reads the package version from the installed packs, and runs dotnet test with a category filter. Categories include Build, WindowsTemplates, macOSTemplates, Blazor, MultiProject, Samples, AOT, RunOnAndroid and RunOniOS.
MAUI Integration Test Runner fits situations like: validating that a change does not break the project templates; running one integration category such as Samples or Blazor locally; checking the Android or iOS run scenarios on a Mac.
Run `npx skills add dotnet/maui --skill run-integration-tests -a claude-code`. Or copy the skill folder (.github/skills/run-integration-tests in dotnet/maui) into .claude/skills/run-integration-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add dotnet/maui --skill run-integration-tests -a codex`. Or copy the skill folder (.github/skills/run-integration-tests in dotnet/maui) into .agents/skills/run-integration-tests in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dotnet/maui --skill run-integration-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/run-integration-tests, .gemini/skills/run-integration-tests, .github/skills/run-integration-tests and .opencode/skills/run-integration-tests in your project.
Going by SKILL.md and its folder, MAUI Integration Test Runner needs PowerShell for the scripts in its folder and the command-line tools its instructions call (pwsh, dotnet and xcrun). Our summary lists: PowerShell; The repository's .NET build tooling; Windows for WindowsTemplates, macOS for the macOS and device scenarios. Compatibility (from SKILL.md): Requires Windows for WindowsTemplates category. macOS for macOSTemplates, RunOniOS, RunOnAndroid..
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
MAUI Integration Test Runner is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with MAUI Integration Test Runner: Maui AI Debugging (Redth/Maui.Gtk, 101 stars), Maui Safe Area (dotnet/skills, 5.6k stars), Maui Aspire (davidortinau/maui-skills, 174 stars) and Maui Safe Area (davidortinau/maui-skills, 174 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
dotnet (a GitHub organization, an official publisher) maintains it in dotnet/maui, which has 23,322 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on October 7, 2026.
Source: dotnet/maui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.