Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add dotnet/maui-labs --skill maui-custom-handlersgit clone --depth 1 https://github.com/dotnet/maui-labsWrote 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-custom-handlers)<a href="https://agentmods.dev/skills/dotnet/maui-labs/maui-custom-handlers"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-custom-handlers/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-custom-handlers"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-custom-handlers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00088 | $0.01348 |
| Opus 5.5 | $0.00035 | $0.00539 |
| Sonnet 5.5 | $0.00018 | $0.00270 |
| Haiku 4.5 | $0.00009 | $0.00135 |
Grade A, and why
maui-custom-handlers scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MAUI Custom Handlers
Use this skill when a MAUI visual element needs native platform behavior. Keep handlers focused on views. Route non-visual APIs to platform services and route large native SDK surfaces to slim bindings.
Response Checklist
- Use handler language explicitly:
AppendToMapping,PropertyMapper,CommandMapper, andViewHandler. - For renderer migration, map subscription/setup to
ConnectHandlerand cleanup toDisconnectHandler. - Keep mapper changes scoped to the intended control type, not all controls.
Decision Tree
| Need | Prefer |
|---|---|
| Tweak an existing control for the whole app | EntryHandler.Mapper.AppendToMapping in MauiProgram.cs (or the matching concrete control handler mapper) |
| Tweak only specific control instances | Subclass the control and guard mapper logic with if (view is MyControl) |
| Add a reusable cross-platform control | Custom ViewHandler<TVirtualView,TPlatformView> |
| Map bindable properties to native properties | PropertyMapper entries |
| Invoke actions such as play/pause/scroll | CommandMapper entries |
| Use camera, sensors, payment, health, or background APIs | Platform service through DI |
| Wrap a third-party Android/iOS/macOS SDK | Slim binding plus a platform service facade |
Workflow
-
Inspect the target frameworks and existing UI architecture.
-
Define the cross-platform view API first: bindable properties, commands, and events that make sense to app code.
-
Choose global mapper customization, subclass-scoped mapper customization, or a full custom handler.
-
Put native implementation in partial handler files or
#ifguarded blocks for the exact platforms supported by the project. -
Register handlers in
MauiProgram.cs:builder.ConfigureMauiHandlers(handlers => { handlers.AddHandler<CameraPreview, CameraPreviewHandler>(); }); -
Use
ConnectHandlerto subscribe native events and allocate native resources. -
Use
DisconnectHandlerto unsubscribe, stop timers, clear delegates, and dispose only native objects owned by the handler. Callbase.DisconnectHandler(platformView)as the final statement so the base handler clears its own state. -
Build each targeted platform and verify the behavior with UI automation or DevFlow when available.
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 · -30 tokens per session a26fba4963df
- 3mo ago First seen · 167 lines · 118 tokens per session scan A 3be3b5b240d3
maui-custom-handlers is a skill published in the GitHub repository dotnet/maui-labs (244 stars, last pushed today), licensed MIT. It adds 88 tokens to every session and 1,348 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
maui-custom-handlers compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| maui-custom-handlersdotnet/maui-labs | Skill | 244 | today | MIT | A | 88 | Claude Code, Codex |
| argent-react-native-app-workflowsoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 41 | Claude Code, Codex |
| argent-react-native-optimizationsoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 46 | Claude Code, Codex |
| mobile-automationmobile-next/mobile-mcp | Skill | 11k | 5d ago | Apache-2.0 | A | 58 | Claude Code, Codex |
| argent-metro-debuggersoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 50 | Claude Code, Codex |
| argent-native-profilersoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 41 | Claude Code, Codex |
| argent-screen-recordingsoftware-mansion/argent | Skill | 3.3k | today | Apache-2.0 | A | 38 | Claude Code, Codex |