maui-ui-patterns

maui-ui-patterns is a skill for Claude Code, Codex from dotnet/maui-labs. It costs 82 tokens per session (1,112 once invoked), scanned A, original, MIT.

A set of tools for solving problems by comparing them with situations from the same or different fields. It helps choose between testing an analogy, importing a solution, changing perspective, or checking structural similarity.

In plain words
What is it for?
Use it to find relevant comparisons, borrow ideas from another field, examine a problem through a different perspective, or test whether two situations are genuinely alike.
Why use it?
It gives you a way to decide what kind of comparison is useful instead of applying an analogy without checking it.

Skill for Claude CodeCodex

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

Good fit Use it to find relevant comparisons, borrow ideas from another field, examine a problem through a different perspective, or test whether two situations are genuinely alike.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dotnet/maui-labs/maui-ui-patterns
Install

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.

Any agent
npx skills add dotnet/maui-labs --skill maui-ui-patterns
Clone the repo
git clone --depth 1 https://github.com/dotnet/maui-labs

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-ui-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-ui-patterns.svg)](https://agentmods.dev/skills/dotnet/maui-labs/maui-ui-patterns)
Your own site
<a href="https://agentmods.dev/skills/dotnet/maui-labs/maui-ui-patterns"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-ui-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,112 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00082 $0.01112
Opus 5 $0.00041 $0.00556
Sonnet 5 $0.00016 $0.00222
Haiku 4.5 $0.00008 $0.00111

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

Security

Grade A, and why

maui-ui-patterns 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 5d 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.

plugins/dotnet-maui/skills/maui-ui-patterns/SKILL.md · 117 lines

How it starts

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

MAUI UI Patterns

Use this skill when creating or reshaping a MAUI page or reusable component. Prefer readable layouts, shared resources, stable automation hooks, and explicit UI states over coordinate-based or screenshot-only UI.

Workflow

  1. Inspect the existing UI style: XAML, C# Markup, MauiReactor, or Blazor Hybrid. If the requested page/component cannot be found but the user asked for a UI pattern, still provide a self-contained snippet or create the requested file at a sensible path instead of stopping with only a clarification request.
  2. Choose layout primitives based on content:
    • Grid for structured forms and dashboards.
    • FlexLayout for wrapping content and responsive chip/card layouts.
    • VerticalStackLayout / HorizontalStackLayout for simple linear groups.
    • CollectionView for repeated data; avoid wrapping it in ScrollView.
  3. Move repeated colors, spacing, and text styles into resources.
  4. Add AutomationId to important interactive elements.
  5. Add loading, empty, error, and success states for data-driven screens. For CollectionView loading/empty-state requests, show a visible loading element such as ActivityIndicator, a CollectionView.EmptyView, and stable AutomationId values for loading/list/empty elements.
  6. Add basic accessibility hooks while building the UI; route deeper audits to maui-accessibility.
  7. Verify with build plus DevFlow tree/screenshot when available.

Layout Guardrails

Avoid Prefer
Absolute coordinates for normal app UI Grid, FlexLayout, and adaptive resources
Nested ScrollView around CollectionView CollectionView scrolling directly
Fixed HeightRequest to force list scrolling Star-sized Grid row so the list receives remaining space
Repeated inline colors/margins everywhere ResourceDictionary styles and spacing resources
Text-only UI automation Stable AutomationId values
One giant page without states Loading, empty, error, and content states
BindableLayout for long or incremental lists CollectionView virtualization and incremental loading

Read the full file on GitHub · 117 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. 5d ago Changed · -48 tokens per session d48c60c5353e
  2. 8d ago First seen · 117 lines · 130 tokens per session scan A bce4771e6b35

Subscribe to this mod's changes

maui-ui-patterns is a skill published in the GitHub repository dotnet/maui-labs (213 stars, last pushed yesterday), licensed MIT. It adds 82 tokens to every session and 1,112 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

argent-metro-debugger

Debug a JS runtime via CDP using argent debugger tools. Primary path is React Native via Metro (iOS / Android / Vega); a subset of the tools (debugger-connect, debugger-status, debugger-evaluate, debugger-log-registry) also drive a Chromium (CDP) app's renderer (an Electron app, or any Chromium browser exposing CDP)…

software-mansion/argent · 104 tokens

argent-react-native-optimization

Optimizes a React Native app by profiling first to find real bottlenecks, then sweeping for mechanical issues. Entry-point for all performance work. Use when the app feels slow, user asks to optimize, fix re-renders, reduce jank, or improve startup. Delegates to argent-react-native-profiler for measurement.

software-mansion/argent · 71 tokens

argent-native-profiler

Native profiling for CPU hotspots, UI hangs, memory issues. iOS via xctrace; Android via Perfetto. Use when diagnosing native-level performance issues.

software-mansion/argent · 37 tokens

symbolication-setup

Configure crash symbolication for readable stack traces. Use when setting up dSYMs (iOS), ProGuard/R8 mappings (Android), or source maps (React Native).

nexus-labs-automation/mobile-observability · 40 tokens

network-tracing

Instrument API requests with spans and distributed tracing. Use when tracking request latency, correlating client-backend traces, or debugging API issues.

nexus-labs-automation/mobile-observability · 31 tokens

argent-react-native-app-workflow

Step-by-step workflows for developing or debugging React Native apps on iOS simulator or Android emulator. Use when starting the app, debugging Metro, fixing builds, diagnosing runtime errors, or running tests.

software-mansion/argent · 46 tokens