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 | $0.00043 | $0.00713 |
| Sonnet 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 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 \ 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.
- 7d ago Changed · -13 tokens per session ad3575e1393e
- 11d 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 (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.
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-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…
generate-code-cs
Generate the code from typespec for C#. Parameter: C# SDK repository root location .
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.
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…
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…