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.
git clone --depth 1 https://github.com/dotnet/maui-labsnpx agentmods add skills/dotnet/maui-labs/maui-labs-platform-targetingWrote 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.
[](https://agentmods.dev/skills/dotnet/maui-labs/maui-labs-platform-targeting)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00085 | $0.01426 |
| Opus 5.5 | $0.00034 | $0.00570 |
| Sonnet 5.5 | $0.00017 | $0.00285 |
| Haiku 4.5 | $0.00009 | $0.00143 |
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 2mo 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 \ 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, orUseMauiAppWPF). - Distinguish AppKit (
MACOS) from Mac Catalyst and call out experimental parity validation.
Workflow
- Confirm the app target: Linux GTK4, macOS AppKit, WPF, or a comparison between those experimental backends.
- Choose the template/head-project pattern for that backend before editing app code.
- Wire the backend-specific hosting call and optional Essentials package.
- Audit shared code for platform conditionals and unsupported Essentials APIs.
- 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
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.
- 2mo ago Changed · -13 tokens per session ad3575e1393e
- 3mo ago First seen · 153 lines · 98 tokens per session scan B 9f2bd21e5e61
maui-labs-platform-targeting is a skill published in the GitHub repository dotnet/maui-labs (244 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 1,426 once invoked, about $0.0003 per session on Opus 5.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.
maui-labs-platform-targeting compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| maui-labs-platform-targetingdotnet/maui-labs | Skill | 244 | today | MIT | B | 85 | Claude Code, Codex |
| syncfusion-maui-toolkit-chipssyncfusion/maui-toolkit-ui-components-skills | Skill | 39 | 2mo ago | none | A | 81 | Claude Code, Codex |
| syncfusion-maui-toolkit-otp-inputsyncfusion/maui-toolkit-ui-components-skills | Skill | 39 | 2mo ago | none | A | 75 | Claude Code, Codex |
| author-testAzure/azure-sdk-for-net | Skill | 6.1k | yesterday | MIT | A | 68 | Claude Code, Codex |
| compose-multiplatformericrisco/rsc-harness | Skill | 682 | 4d ago | MIT | A | 80 | Claude Code, Codex |
| add-sliceSSWConsulting/SSW.VerticalSliceArchitecture | Skill | 418 | 2d ago | MIT | A | 125 | Claude Code |
| wpfmanagedcode/dotnet-skills | Skill | 527 | 16d ago | MIT | A | 122 | Claude Code, Codex |