maui-aspire-client

maui-aspire-client is a skill for Claude Code, Codex from dotnet/maui-labs. It costs 100 tokens per session (984 once invoked), scanned A, original, MIT.

Instructions for connecting a .NET MAUI app to APIs managed by Aspire during development. An API is a service that software calls to request data or perform actions; Aspire helps run related services together.

In plain words
What is it for?
Use it when a MAUI app calls an Aspire-hosted backend. It covers service discovery, typed HTTP clients, device-specific addresses, development certificates, and bearer-token handling.
Why use it?
It accounts for the different network addresses used by emulators, simulators, computers, and physical devices. It also helps keep service discovery, authentication, and API clients configured correctly.

Skill for Claude CodeCodex

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

Good fit Use it when a MAUI app calls an Aspire-hosted backend. It covers service discovery, typed HTTP clients, device-specific addresses, development certificates, and bearer-token handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dotnet/maui-labs/maui-aspire-client
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-aspire-client
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-aspire-client

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dotnet/maui-labs/maui-aspire-client"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-aspire-client.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 984 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.00100 $0.00984
Opus 5 $0.00050 $0.00492
Sonnet 5 $0.00020 $0.00197
Haiku 4.5 $0.00010 $0.00098

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

Security

Grade A, and why

maui-aspire-client 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 11d 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-aspire-client/SKILL.md · 112 lines

How it starts

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

MAUI Aspire Client

Use this skill when a MAUI app consumes APIs or services orchestrated by .NET Aspire during local development or testing.

Workflow

  1. Inspect whether the solution has an Aspire AppHost and a MAUI client project.
  2. Use Aspire service discovery when the MAUI app targets .NET 8 or later and the resolved endpoint configuration is actually available to the app at runtime.
  3. Register service discovery and typed HttpClient clients in MauiProgram.cs.
  4. Use service names such as https+http://apiservice only when the matching Services__... configuration is present.
  5. Provide platform-reachable fallback base addresses for emulator, simulator, desktop, and physical-device launches.
  6. Account for emulator/simulator networking if bypassing Aspire service discovery.
  7. Keep auth, token handlers, and backend API clients in DI.
  8. Validate from Android emulator, iOS simulator, and physical devices as applicable.

Service Discovery Pattern

MAUI apps deployed to emulators, simulators, or physical devices are usually not child processes of the Aspire AppHost, so the AppHost cannot automatically inject service discovery environment variables into the device app. Service-name URIs work only when endpoint configuration is supplied to the MAUI app through configuration, generated settings, or another explicit launch/deploy step.

When your dev flow can launch the MAUI project from the AppHost, wire the API reference there first and pass endpoint configuration to the app:

var api = builder.AddProject<Projects.ApiService>("apiservice");
builder.AddProject<Projects.MauiClient>("mauiclient")
       .WithReference(api);
builder.Services.AddServiceDiscovery();

builder.Services.AddHttpClient<WeatherApiClient>(client =>
{
    // Development only: use "https://" for production endpoints.
    client.BaseAddress = new Uri("https+http://apiservice");
})
.AddServiceDiscovery();

For many clients, configure defaults once:

Read the full file on GitHub · 112 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. 11d ago First seen · 112 lines · 100 tokens per session scan A 189e01fb0a13

Subscribe to this mod's changes

maui-aspire-client is a skill published in the GitHub repository dotnet/maui-labs (214 stars, last pushed yesterday), licensed MIT. It adds 100 tokens to every session and 984 once invoked, about $0.0005 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

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

offline-first

Offline-first architecture patterns - NetworkBoundResource, sync strategies, conflict resolution, cache invalidation, and connectivity monitoring.

TalissonVitorino/kmp-ios-skills · 26 tokens

cloudkit

Implement, review, or debug iCloud sync in iOS/macOS apps with CloudKit. Covers CKContainer + private/public/shared CKDatabase, CKRecord / CKRecord.Reference / CKAsset, CKQuery + CKQueryOperation, CKSubscription (query/database/recordZone) with silent push, CKSyncEngine (iOS 17+: state serialization…

TalissonVitorino/kmp-ios-skills · 209 tokens

offline-first

Offline-first architecture patterns - NetworkBoundResource, sync strategies, conflict resolution, cache invalidation, and connectivity monitoring.

ahmed3elshaer/everything-claude-code-mobile · 26 tokens

pagination-patterns

Pagination patterns for mobile - Paging 3 for Android (PagingSource, RemoteMediator, LazyPagingItems), cursor-based and offset-based strategies.

ahmed3elshaer/everything-claude-code-mobile · 32 tokens

cmp-firebase-connect

Wire a freshly scaffolded CMP/KMP app to its OWN real Firebase project — the #1 post-scaffold manual step. Use this when the user wants to connect their app to Firebase, or asks "connect my app to firebase", "set up google-services.json", "wire firebase", "create a firebase project for this app", "replace the…

kvdm-co-pilot/create-cmp · 170 tokens