maui-device-capabilities
Installation
SKILL.md
MAUI Device Capabilities
Use this skill when a MAUI app needs device services such as files, media, camera, location, or maps. Always pair runtime API calls with platform declarations and a user-friendly denied/cancelled path.
Workflow
- Inspect target platforms and existing files under
Platforms/Android,Platforms/iOS,Platforms/MacCatalyst, andPlatforms/Windows. - Identify the exact capability and minimum permission needed.
- Add platform declarations before requesting runtime permissions.
- Request permissions close to the feature that needs them, after explaining why the app needs access.
- Treat cancellation as normal user choice.
- Keep device APIs behind services if ViewModels or tests should not depend on MAUI static APIs directly.
- Validate on every target platform because permission names and UX differ.