maui-networking-offline-data

maui-networking-offline-data is a skill for Claude Code, Codex from dotnet/maui-labs. It costs 87 tokens per session (1,787 once invoked), scanned A, original, MIT.

A .NET MAUI guide for connecting apps to web services, storing data locally, and working when the network is unavailable. Offline support means the app can keep using selected data without an active connection.

In plain words
What is it for?
Use it for typed HTTP clients, JSON data, emulator networking, SQLite storage, offline edits, synchronization, and error handling.
Why use it?
It helps define networking, local storage, retries, cancellation, and synchronization boundaries before they become scattered or unreliable.

Skill for Claude CodeCodex

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

Good fit Use it for typed HTTP clients, JSON data, emulator networking, SQLite storage, offline edits, synchronization, and error handling.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dotnet/maui-labs/maui-networking-offline-data"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/maui-networking-offline-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,787 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 warn 7 Sept 2026
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 Data Exfiltration · line 45
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00087 $0.01787
Opus 5 $0.00044 $0.00894
Sonnet 5 $0.00017 $0.00357
Haiku 4.5 $0.00009 $0.00179

Measured 7d ago against content hash 48f90488a69c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

maui-networking-offline-data 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 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.

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-networking-offline-data/SKILL.md · 177 lines

How it starts

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

MAUI Networking and Offline Data

Use this skill when a MAUI feature calls backend APIs, works against local services during development, persists local data, or must behave well offline.

Workflow

  1. Inspect MauiProgram.cs, existing API clients, model serialization, and data storage packages.
  2. Register API clients through DI. Prefer typed clients or named clients over constructing HttpClient in pages.
  3. Define request/response DTOs and serialization options once. Prefer System.Text.Json source generation for trimmed or NativeAOT-sensitive apps.
  4. Decide the local development address by runtime platform and environment.
  5. Keep cleartext HTTP exceptions debug-only and platform-scoped.
  6. Define offline boundaries before schema/code: name the read-only cached reference data, the entities users can edit while offline, and the fields that remain server-authoritative.
  7. For SQLite/offline sync answers, show the storage initialization API before the entity schema: explicitly name SQLiteAsyncConnection plus CreateTableAsync<T> for sqlite-net, or an EF Core DbContext setup. Do not only show POCO models, sqlite-net attributes, or db.Table<T>() queries.
  8. In every offline-sync design, include a security line: if cached data is sensitive, regulated, or contains customer/business PII, encrypt the local SQLite store, for example with SQLCipher/provider encryption, and keep the database key in SecureStorage rather than source code or Preferences.
  9. In every offline-sync design, include a background performance line: drain queued sync work in bounded batches/chunks off the UI thread, and marshal only UI updates through MainThread when needed.
  10. Store local data in SQLite or app data files behind a repository/service abstraction.
  11. Add cancellation, timeout, retry, and user-facing error states.

HttpClient DI Pattern

builder.Services.AddHttpClient<IProductsApi, ProductsApi>(client =>
{
    client.BaseAddress = new Uri("https://api.contoso.dev/");
});

Read the full file on GitHub · 177 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. 7d ago Changed · -44 tokens per session 48f90488a69c
  2. 11d ago First seen · 177 lines · 131 tokens per session scan A a738003e7105

Subscribe to this mod's changes

maui-networking-offline-data is a skill published in the GitHub repository dotnet/maui-labs (213 stars, last pushed yesterday), licensed MIT. It adds 87 tokens to every session and 1,787 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

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

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.

TalissonVitorino/kmp-ios-skills · 26 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