rimblehelm/.net-maui-skills · Archived

maui-platform-apis

Provides cross-platform patterns and best practices for using device capabilities in .NET MAUI apps.

First seen Jan 27, 2026

Installation

$ npx skills add rimblehelm/.net-maui-skills --skill maui-platform-apis

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from rimblehelm/.net-maui-skills.

npx skills add rimblehelm/.net-maui-skills

Browse all from rimblehelm/.net-maui-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch master
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,119 B
  • docs SUMMARY.md 126 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 6 installs

SKILL.md

.NET MAUI — Platform APIs Skill

Purpose

This skill provides agents with best practices, patterns, and cross-platform abstractions for using device capabilities in .NET MAUI applications. It covers permissions, sensors, file pickers, geolocation, camera access, notifications, and platform-specific APIs.

The goal is to ensure that all platform API usage is safe, consistent, and aligned with MAUI’s cross-platform architecture.

Core Principles

  1. Permission-first design

Always request and check permissions before accessing device capabilities.

  1. Cross-platform abstractions

Use MAUI Essentials APIs whenever possible.

  1. Graceful degradation

If a capability is unavailable on a platform, handle it cleanly.

  1. Separation of concerns

Wrap platform API calls in services and interfaces.

  1. User transparency

Provide clear explanations when requesting permissions.

Supported Platform Capabilities

  • Geolocation
  • Camera & Media Picker
  • File Picker
  • Clipboard
  • Vibration
  • Flashlight
  • Connectivity
  • Sensors (accelerometer, compass, gyroscope)
  • Notifications (local)
  • Permissions

Recommended Folder Structure

Services
└─ Platform
   ├─ Implementations
   └─ Interfaces

Agent Usage Guidelines

  • When generating code that uses device capabilities:

- Always check permissions first. - Use Permissions.RequestAsync<T>(). - Use MAUI Essentials APIs (e.g., Geolocation, MediaPicker). - Wrap logic in a service (e.g., IGeolocationService).

  • When asked to “access the camera,” generate:

- A service abstraction - A platform-safe implementation - Permission checks

  • When asked to “get the user’s location,” apply:

- Permission checks - Fallback handling - Cancellation tokens

Out of Scope

  • Authentication (covered in maui-authentication)
  • UI layout (covered in maui-ui-best-practices)
  • Database storage (covered in maui-data-storage)