maui-labs-platform-targeting

maui-labs-platform-targeting is a skill for Claude Code, Codex from dotnet/maui-labs. It costs 85 tokens per session (1,426 once invoked), scanned B, original, MIT.

A .NET MAUI guide for targeting experimental desktop backends: Linux with GTK4, macOS with AppKit, and Windows with WPF. AppKit is macOS’s native UI framework, unlike Mac Catalyst, which adapts iPad apps for macOS.

In plain words
What is it for?
Use it when creating or comparing MAUI desktop targets, wiring their startup code, checking platform-specific APIs, and testing feature parity.
Why use it?
It helps set up the correct desktop project and identify platform gaps before relying on shared app code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is <ProjectReference Include="../MyApp/MyApp.csproj" />.

Good fit Use it when creating or comparing MAUI desktop targets, wiring their startup code, checking platform-specific APIs, and testing feature parity.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dotnet/maui-labs
agentmods
npx agentmods add skills/dotnet/maui-labs/maui-labs-platform-targeting

Made for: Claude Code, Codex.

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 maui-labs-platform-targeting

README.md
[![agentmods](https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-labs-platform-targeting/github.svg)](https://agentmods.dev/skills/dotnet/maui-labs/maui-labs-platform-targeting)
Your own site
<a href="https://agentmods.dev/skills/dotnet/maui-labs/maui-labs-platform-targeting"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-labs-platform-targeting/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 maui-labs-platform-targeting

Your own site · 80×15
<a href="https://agentmods.dev/skills/dotnet/maui-labs/maui-labs-platform-targeting"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-labs-platform-targeting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,426 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 50
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
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.00085 $0.01426
Opus 5 $0.00043 $0.00713
Sonnet 5 $0.00017 $0.00285
Haiku 4.5 $0.00009 $0.00143

Measured 7d ago against content hash ad3575e1393e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

maui-labs-platform-targeting scanned grade B with 1 finding 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 7d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install libgtk-4-dev libwebkitgtk-6.0-dev \
plugins/dotnet-maui/skills/maui-labs-platform-targeting/SKILL.md · 153 lines

How it starts

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

MAUI Labs Platform Targeting

Use this skill when an app developer wants to run a MAUI app on experimental MAUI Labs backends such as Linux GTK4, native macOS AppKit, or WPF. This is for consuming backends, not implementing them.

Response Checklist

  • Keep backend terms explicit: maui-linux-gtk4, maui-macos, maui-wpf.
  • Show the hosting call for the selected backend (UseMauiAppLinuxGtk4, UseMauiAppMacOS, or UseMauiAppWPF).
  • Distinguish AppKit (MACOS) from Mac Catalyst and call out experimental parity validation.

Workflow

  1. Confirm the app target: Linux GTK4, macOS AppKit, WPF, or a comparison between those experimental backends.
  2. Choose the template/head-project pattern for that backend before editing app code.
  3. Wire the backend-specific hosting call and optional Essentials package.
  4. Audit shared code for platform conditionals and unsupported Essentials APIs.
  5. Build and launch the selected backend, then record experimental parity gaps.

Platform Choices

Target When to choose it Key package/template
Linux GTK4 Native Linux desktop app using GTK4 widgets Microsoft.Maui.Platforms.Linux.Gtk4 / maui-linux-gtk4
macOS AppKit Native AppKit app instead of Mac Catalyst Microsoft.Maui.Platforms.MacOS / maui-macos
WPF Windows desktop app using WPF instead of WinUI Microsoft.Maui.Platforms.Windows.WPF / maui-wpf

These backends are experimental. Ask the user which controls, Essentials APIs, and desktop integrations are required before promising parity.

Linux GTK4

Linux uses a separate head project because there is no official net10.0-linux MAUI TFM.

Ubuntu/Debian:

sudo apt install libgtk-4-dev libwebkitgtk-6.0-dev \
  gobject-introspection libgirepository1.0-dev \
  gir1.2-gtk-4.0 gir1.2-webkit-6.0 pkg-config

Adjust package names for other distributions, for example Fedora/RHEL commonly use gtk4-devel and webkitgtk6.0-devel.

dotnet new install Microsoft.Maui.Platforms.Linux.Gtk4.Templates --prerelease
dotnet new maui-linux-gtk4 -n MyApp.Linux
dotnet run --project MyApp.Linux

Read the full file on GitHub · 153 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. 7d ago Changed · -13 tokens per session ad3575e1393e
  2. 11d ago First seen · 153 lines · 98 tokens per session scan B 9f2bd21e5e61

Subscribe to this mod's changes

maui-labs-platform-targeting is a skill published in the GitHub repository dotnet/maui-labs (214 stars, last pushed yesterday), licensed MIT. It adds 85 tokens to every session and 1,426 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

syncfusion-maui-toolkit-chips

Implements Syncfusion .NET MAUI Chips (SfChip or SfChipGroup). Use when working with chips, tags, tag controls, selection chips, input chips, or filter chips in .NET MAUI applications. Covers chip types, chip customization, chip events, chip selection, chip groups, remove chips, close button chips, and chip data…

syncfusion/maui-toolkit-ui-components-skills · 81 tokens

syncfusion-maui-toolkit-otp-input

Implement OTP Input controls in .NET MAUI applications for authentication flows. Covers input types (Number, Text, Password), styling modes (Outlined, Filled, Underlined), event handling, value binding, validation patterns, and accessibility. Use this skill when building SMS/email OTP verification, multi-step…

syncfusion/maui-toolkit-ui-components-skills · 75 tokens

generate-code-cs

Generate the code from typespec for C#. Parameter: C# SDK repository root location .

Azure/azure-sdk-for-net · 26 tokens

author-test

Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.

Azure/azure-sdk-for-net · 68 tokens

wpf

Build and modernize WPF applications on .NET with correct XAML, data binding, commands, threading, styling, and Windows desktop migration decisions. USE FOR: working on WPF UI, MVVM, binding, commands, or desktop modernization; migrating WPF from .NET Framework to .NET; integrating newer Windows capabilities into a…

managedcode/dotnet-skills · 122 tokens

migrate-xunit-to-mstest

Convert .NET tests from xUnit.net v2/v3 to MSTest v4 while preserving VSTest or MTP. Use for replacing xunit packages, Fact/Theory/InlineData/MemberData, assertions, IClassFixture/ICollectionFixture, ITestOutputHelper, TestContext cancellation, traits/Owner, skips, timeouts, and xUnit parallelization. Also use when a…

managedcode/dotnet-skills · 141 tokens