[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-maui-device-capabilities":3,"mdc-35u0ba-key":46,"related-repo-dotnet-maui-device-capabilities":746,"related-org-dotnet-maui-device-capabilities":852},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":41,"sourceUrl":44,"mdContent":45},"maui-device-capabilities","implement .NET MAUI device capabilities","Implement .NET MAUI device capabilities with platform permissions and declarations. USE FOR: camera\u002Fphoto\u002Fmedia capture, MediaPicker.IsCaptureSupported, FilePicker.PickAsync durable copies to FileSystem.AppDataDirectory, GeolocationRequest, Permissions.LocationWhenInUse, UseMauiMaps, Android manifest entries, READ_MEDIA_IMAGES\u002FAndroid 13+ Photo Picker migration, NSCameraUsageDescription\u002FNSLocationWhenInUseUsageDescription, runtime permission requests, denied\u002Fcancelled flows, and durable file access. DO NOT USE FOR: notifications, auth, or UI layout.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"dotnet",".NET (Microsoft)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdotnet.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Permissions","permissions","tag",{"name":17,"slug":18,"type":15},"MAUI","maui",{"name":20,"slug":21,"type":15},".NET","net",{"name":23,"slug":24,"type":15},"Mobile","mobile",190,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmaui-labs","2026-07-12T08:22:42.571676",null,21,[31,32,33,8,34,35,18,36,37,24,38,39,40],"ai","android","desktop","ios","maccatalyst","mcp","microsoft","multi-platform","user-interface","winui",{"repoUrl":26,"stars":25,"forks":29,"topics":42,"description":43},[31,32,33,8,34,35,18,36,37,24,38,39,40],"Experimental and pre-release tools for .NET MAUI","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmaui-labs\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-maui-app\u002Fskills\u002Fmaui-device-capabilities","---\nname: maui-device-capabilities\ndescription: >-\n  Implement .NET MAUI device capabilities with platform permissions and declarations. USE FOR: camera\u002Fphoto\u002Fmedia capture, MediaPicker.IsCaptureSupported, FilePicker.PickAsync durable copies to FileSystem.AppDataDirectory, GeolocationRequest, Permissions.LocationWhenInUse, UseMauiMaps, Android manifest entries, READ_MEDIA_IMAGES\u002FAndroid 13+ Photo Picker migration, NSCameraUsageDescription\u002FNSLocationWhenInUseUsageDescription, runtime permission requests, denied\u002Fcancelled flows, and durable file access. DO NOT USE FOR: notifications, auth, or UI layout.\n---\n\n# MAUI Device Capabilities\n\nUse this skill when a MAUI app needs device services such as files, media,\ncamera, location, or maps. Always pair runtime API calls with platform\ndeclarations and a user-friendly denied\u002Fcancelled path.\n\n## Workflow\n\n1. Inspect target platforms and existing files under `Platforms\u002FAndroid`,\n   `Platforms\u002FiOS`, `Platforms\u002FMacCatalyst`, and `Platforms\u002FWindows`.\n2. Identify the exact capability and minimum permission needed.\n3. Add platform declarations before requesting runtime permissions.\n4. Request permissions close to the feature that needs them, after explaining\n   why the app needs access.\n5. Treat cancellation as normal user choice.\n6. Keep device APIs behind services if ViewModels or tests should not depend on\n   MAUI static APIs directly.\n7. Validate on every target platform because permission names and UX differ.\n\n## Permission Pattern\n\n```csharp\nvar status = await Permissions.CheckStatusAsync\u003CPermissions.LocationWhenInUse>();\n\nif (status != PermissionStatus.Granted)\n{\n    status = await Permissions.RequestAsync\u003CPermissions.LocationWhenInUse>();\n}\n\nif (status != PermissionStatus.Granted)\n{\n    PermissionDeniedMessage = \"Location is off. Enable it in Settings to show nearby stores.\";\n    CanOpenSettings = true;\n    SemanticScreenReader.Announce(PermissionDeniedMessage);\n    return;\n}\n```\n\nDo not repeatedly prompt after a user denies access. Show a feature-specific\nempty\u002Fblocked state that screen readers can observe, and when appropriate guide\nthe user to app settings with an explicit button that calls\n`AppInfo.ShowSettingsUI()`.\n\n## Platform Declaration Map\n\n| Capability | Android | iOS\u002FMac Catalyst |\n| --- | --- | --- |\n| Camera\u002Fmedia capture | `CAMERA` and media storage permissions only when needed by target SDK behavior | `NSCameraUsageDescription`, `NSMicrophoneUsageDescription`, `NSPhotoLibraryUsageDescription` as applicable |\n| Gallery\u002Fmedia library access | On Android 12 and earlier, audit `READ_EXTERNAL_STORAGE`; on Android 13+ use granular `READ_MEDIA_IMAGES`, `READ_MEDIA_VIDEO`, or `READ_MEDIA_AUDIO` as applicable, or prefer the system photo picker when it satisfies the scenario | `NSPhotoLibraryUsageDescription` or limited-library APIs when reading the photo library |\n| Geolocation | `ACCESS_COARSE_LOCATION`, `ACCESS_FINE_LOCATION`, and background location only for true background scenarios | `NSLocationWhenInUseUsageDescription`; add always\u002Fbackground keys only when the app truly needs them |\n| File picking | Usually no broad storage permission for system picker flows | Document picker usually needs no photo\u002Fcamera usage key unless media capture\u002Flibrary access is used |\n| Maps | Platform API key\u002Fconfiguration and `UseMauiMaps()` when using MAUI Maps | Platform map entitlement\u002Fconfiguration as required by the map provider |\n\nUse the narrowest platform declaration that matches the feature. Do not add\nbackground location, broad storage, or microphone declarations \"just in case\".\n\n## Picker and Sensor Guardrails\n\n- `FilePicker.PickAsync` and `PickMultipleAsync` should handle null, empty\n  results, cancellation, and `PermissionException`.\n- `MediaPicker` should check `IsCaptureSupported` before camera capture.\n- Copy picked file streams into app storage when the app needs durable access;\n  picker-provided handles can be temporary.\n- `Geolocation.GetLastKnownLocationAsync` can be stale. Use\n  `GetLocationAsync` with a `GeolocationRequest` for current location.\n- Choose `GeolocationRequest.DesiredAccuracy` deliberately. Use medium or low\n  accuracy to conserve battery unless the feature truly requires GPS precision.\n- Pass cancellation tokens to location requests where the UI can cancel or the\n  page can disappear.\n- Migrating apps should audit old Xamarin `READ_EXTERNAL_STORAGE` declarations\n  because Android 13+ media permissions changed runtime behavior.\n\n## Permission UX\n\n- Ask at the moment of need, not on first launch.\n- Explain the user benefit before invoking the platform prompt.\n- Provide a useful fallback when access is denied.\n- Make denied\u002Fblocked states visible and announced with\n  `SemanticProperties.Description`, `SemanticScreenReader.Announce`, or a\n  focused explanatory label.\n- Avoid loops that immediately re-request permission after denial.\n- Make error\u002Fcancelled states visible and testable with `AutomationId` when UI\n  is affected.\n\n## Validation Checklist\n\n- Platform manifests\u002Fplists include only the declarations required by the\n  feature.\n- Runtime permission requests happen before capability APIs that require them.\n- Denied and cancelled flows are handled without crashes.\n- Denied permission UI is visible, accessible, and offers Settings when the\n  platform requires manual re-enable.\n- Picked files\u002Fmedia are copied when durable access is required.\n- Location code handles stale last-known data, timeout, and cancellation.\n",{"data":47,"body":48},{"name":4,"description":6},{"type":49,"children":50},"root",[51,59,65,72,145,151,287,299,305,517,522,528,639,645,701,707,740],{"type":52,"tag":53,"props":54,"children":55},"element","h1",{"id":4},[56],{"type":57,"value":58},"text","MAUI Device Capabilities",{"type":52,"tag":60,"props":61,"children":62},"p",{},[63],{"type":57,"value":64},"Use this skill when a MAUI app needs device services such as files, media,\ncamera, location, or maps. Always pair runtime API calls with platform\ndeclarations and a user-friendly denied\u002Fcancelled path.",{"type":52,"tag":66,"props":67,"children":69},"h2",{"id":68},"workflow",[70],{"type":57,"value":71},"Workflow",{"type":52,"tag":73,"props":74,"children":75},"ol",{},[76,115,120,125,130,135,140],{"type":52,"tag":77,"props":78,"children":79},"li",{},[80,82,89,91,97,99,105,107,113],{"type":57,"value":81},"Inspect target platforms and existing files under ",{"type":52,"tag":83,"props":84,"children":86},"code",{"className":85},[],[87],{"type":57,"value":88},"Platforms\u002FAndroid",{"type":57,"value":90},",\n",{"type":52,"tag":83,"props":92,"children":94},{"className":93},[],[95],{"type":57,"value":96},"Platforms\u002FiOS",{"type":57,"value":98},", ",{"type":52,"tag":83,"props":100,"children":102},{"className":101},[],[103],{"type":57,"value":104},"Platforms\u002FMacCatalyst",{"type":57,"value":106},", and ",{"type":52,"tag":83,"props":108,"children":110},{"className":109},[],[111],{"type":57,"value":112},"Platforms\u002FWindows",{"type":57,"value":114},".",{"type":52,"tag":77,"props":116,"children":117},{},[118],{"type":57,"value":119},"Identify the exact capability and minimum permission needed.",{"type":52,"tag":77,"props":121,"children":122},{},[123],{"type":57,"value":124},"Add platform declarations before requesting runtime permissions.",{"type":52,"tag":77,"props":126,"children":127},{},[128],{"type":57,"value":129},"Request permissions close to the feature that needs them, after explaining\nwhy the app needs access.",{"type":52,"tag":77,"props":131,"children":132},{},[133],{"type":57,"value":134},"Treat cancellation as normal user choice.",{"type":52,"tag":77,"props":136,"children":137},{},[138],{"type":57,"value":139},"Keep device APIs behind services if ViewModels or tests should not depend on\nMAUI static APIs directly.",{"type":52,"tag":77,"props":141,"children":142},{},[143],{"type":57,"value":144},"Validate on every target platform because permission names and UX differ.",{"type":52,"tag":66,"props":146,"children":148},{"id":147},"permission-pattern",[149],{"type":57,"value":150},"Permission Pattern",{"type":52,"tag":152,"props":153,"children":158},"pre",{"className":154,"code":155,"language":156,"meta":157,"style":157},"language-csharp shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","var status = await Permissions.CheckStatusAsync\u003CPermissions.LocationWhenInUse>();\n\nif (status != PermissionStatus.Granted)\n{\n    status = await Permissions.RequestAsync\u003CPermissions.LocationWhenInUse>();\n}\n\nif (status != PermissionStatus.Granted)\n{\n    PermissionDeniedMessage = \"Location is off. Enable it in Settings to show nearby stores.\";\n    CanOpenSettings = true;\n    SemanticScreenReader.Announce(PermissionDeniedMessage);\n    return;\n}\n","csharp","",[159],{"type":52,"tag":83,"props":160,"children":161},{"__ignoreMap":157},[162,173,183,192,201,210,219,227,235,243,252,261,270,279],{"type":52,"tag":163,"props":164,"children":167},"span",{"class":165,"line":166},"line",1,[168],{"type":52,"tag":163,"props":169,"children":170},{},[171],{"type":57,"value":172},"var status = await Permissions.CheckStatusAsync\u003CPermissions.LocationWhenInUse>();\n",{"type":52,"tag":163,"props":174,"children":176},{"class":165,"line":175},2,[177],{"type":52,"tag":163,"props":178,"children":180},{"emptyLinePlaceholder":179},true,[181],{"type":57,"value":182},"\n",{"type":52,"tag":163,"props":184,"children":186},{"class":165,"line":185},3,[187],{"type":52,"tag":163,"props":188,"children":189},{},[190],{"type":57,"value":191},"if (status != PermissionStatus.Granted)\n",{"type":52,"tag":163,"props":193,"children":195},{"class":165,"line":194},4,[196],{"type":52,"tag":163,"props":197,"children":198},{},[199],{"type":57,"value":200},"{\n",{"type":52,"tag":163,"props":202,"children":204},{"class":165,"line":203},5,[205],{"type":52,"tag":163,"props":206,"children":207},{},[208],{"type":57,"value":209},"    status = await Permissions.RequestAsync\u003CPermissions.LocationWhenInUse>();\n",{"type":52,"tag":163,"props":211,"children":213},{"class":165,"line":212},6,[214],{"type":52,"tag":163,"props":215,"children":216},{},[217],{"type":57,"value":218},"}\n",{"type":52,"tag":163,"props":220,"children":222},{"class":165,"line":221},7,[223],{"type":52,"tag":163,"props":224,"children":225},{"emptyLinePlaceholder":179},[226],{"type":57,"value":182},{"type":52,"tag":163,"props":228,"children":230},{"class":165,"line":229},8,[231],{"type":52,"tag":163,"props":232,"children":233},{},[234],{"type":57,"value":191},{"type":52,"tag":163,"props":236,"children":238},{"class":165,"line":237},9,[239],{"type":52,"tag":163,"props":240,"children":241},{},[242],{"type":57,"value":200},{"type":52,"tag":163,"props":244,"children":246},{"class":165,"line":245},10,[247],{"type":52,"tag":163,"props":248,"children":249},{},[250],{"type":57,"value":251},"    PermissionDeniedMessage = \"Location is off. Enable it in Settings to show nearby stores.\";\n",{"type":52,"tag":163,"props":253,"children":255},{"class":165,"line":254},11,[256],{"type":52,"tag":163,"props":257,"children":258},{},[259],{"type":57,"value":260},"    CanOpenSettings = true;\n",{"type":52,"tag":163,"props":262,"children":264},{"class":165,"line":263},12,[265],{"type":52,"tag":163,"props":266,"children":267},{},[268],{"type":57,"value":269},"    SemanticScreenReader.Announce(PermissionDeniedMessage);\n",{"type":52,"tag":163,"props":271,"children":273},{"class":165,"line":272},13,[274],{"type":52,"tag":163,"props":275,"children":276},{},[277],{"type":57,"value":278},"    return;\n",{"type":52,"tag":163,"props":280,"children":282},{"class":165,"line":281},14,[283],{"type":52,"tag":163,"props":284,"children":285},{},[286],{"type":57,"value":218},{"type":52,"tag":60,"props":288,"children":289},{},[290,292,298],{"type":57,"value":291},"Do not repeatedly prompt after a user denies access. Show a feature-specific\nempty\u002Fblocked state that screen readers can observe, and when appropriate guide\nthe user to app settings with an explicit button that calls\n",{"type":52,"tag":83,"props":293,"children":295},{"className":294},[],[296],{"type":57,"value":297},"AppInfo.ShowSettingsUI()",{"type":57,"value":114},{"type":52,"tag":66,"props":300,"children":302},{"id":301},"platform-declaration-map",[303],{"type":57,"value":304},"Platform Declaration Map",{"type":52,"tag":306,"props":307,"children":308},"table",{},[309,333],{"type":52,"tag":310,"props":311,"children":312},"thead",{},[313],{"type":52,"tag":314,"props":315,"children":316},"tr",{},[317,323,328],{"type":52,"tag":318,"props":319,"children":320},"th",{},[321],{"type":57,"value":322},"Capability",{"type":52,"tag":318,"props":324,"children":325},{},[326],{"type":57,"value":327},"Android",{"type":52,"tag":318,"props":329,"children":330},{},[331],{"type":57,"value":332},"iOS\u002FMac Catalyst",{"type":52,"tag":334,"props":335,"children":336},"tbody",{},[337,382,436,473,491],{"type":52,"tag":314,"props":338,"children":339},{},[340,346,357],{"type":52,"tag":341,"props":342,"children":343},"td",{},[344],{"type":57,"value":345},"Camera\u002Fmedia capture",{"type":52,"tag":341,"props":347,"children":348},{},[349,355],{"type":52,"tag":83,"props":350,"children":352},{"className":351},[],[353],{"type":57,"value":354},"CAMERA",{"type":57,"value":356}," and media storage permissions only when needed by target SDK behavior",{"type":52,"tag":341,"props":358,"children":359},{},[360,366,367,373,374,380],{"type":52,"tag":83,"props":361,"children":363},{"className":362},[],[364],{"type":57,"value":365},"NSCameraUsageDescription",{"type":57,"value":98},{"type":52,"tag":83,"props":368,"children":370},{"className":369},[],[371],{"type":57,"value":372},"NSMicrophoneUsageDescription",{"type":57,"value":98},{"type":52,"tag":83,"props":375,"children":377},{"className":376},[],[378],{"type":57,"value":379},"NSPhotoLibraryUsageDescription",{"type":57,"value":381}," as applicable",{"type":52,"tag":314,"props":383,"children":384},{},[385,390,426],{"type":52,"tag":341,"props":386,"children":387},{},[388],{"type":57,"value":389},"Gallery\u002Fmedia library access",{"type":52,"tag":341,"props":391,"children":392},{},[393,395,401,403,409,410,416,418,424],{"type":57,"value":394},"On Android 12 and earlier, audit ",{"type":52,"tag":83,"props":396,"children":398},{"className":397},[],[399],{"type":57,"value":400},"READ_EXTERNAL_STORAGE",{"type":57,"value":402},"; on Android 13+ use granular ",{"type":52,"tag":83,"props":404,"children":406},{"className":405},[],[407],{"type":57,"value":408},"READ_MEDIA_IMAGES",{"type":57,"value":98},{"type":52,"tag":83,"props":411,"children":413},{"className":412},[],[414],{"type":57,"value":415},"READ_MEDIA_VIDEO",{"type":57,"value":417},", or ",{"type":52,"tag":83,"props":419,"children":421},{"className":420},[],[422],{"type":57,"value":423},"READ_MEDIA_AUDIO",{"type":57,"value":425}," as applicable, or prefer the system photo picker when it satisfies the scenario",{"type":52,"tag":341,"props":427,"children":428},{},[429,434],{"type":52,"tag":83,"props":430,"children":432},{"className":431},[],[433],{"type":57,"value":379},{"type":57,"value":435}," or limited-library APIs when reading the photo library",{"type":52,"tag":314,"props":437,"children":438},{},[439,444,462],{"type":52,"tag":341,"props":440,"children":441},{},[442],{"type":57,"value":443},"Geolocation",{"type":52,"tag":341,"props":445,"children":446},{},[447,453,454,460],{"type":52,"tag":83,"props":448,"children":450},{"className":449},[],[451],{"type":57,"value":452},"ACCESS_COARSE_LOCATION",{"type":57,"value":98},{"type":52,"tag":83,"props":455,"children":457},{"className":456},[],[458],{"type":57,"value":459},"ACCESS_FINE_LOCATION",{"type":57,"value":461},", and background location only for true background scenarios",{"type":52,"tag":341,"props":463,"children":464},{},[465,471],{"type":52,"tag":83,"props":466,"children":468},{"className":467},[],[469],{"type":57,"value":470},"NSLocationWhenInUseUsageDescription",{"type":57,"value":472},"; add always\u002Fbackground keys only when the app truly needs them",{"type":52,"tag":314,"props":474,"children":475},{},[476,481,486],{"type":52,"tag":341,"props":477,"children":478},{},[479],{"type":57,"value":480},"File picking",{"type":52,"tag":341,"props":482,"children":483},{},[484],{"type":57,"value":485},"Usually no broad storage permission for system picker flows",{"type":52,"tag":341,"props":487,"children":488},{},[489],{"type":57,"value":490},"Document picker usually needs no photo\u002Fcamera usage key unless media capture\u002Flibrary access is used",{"type":52,"tag":314,"props":492,"children":493},{},[494,499,512],{"type":52,"tag":341,"props":495,"children":496},{},[497],{"type":57,"value":498},"Maps",{"type":52,"tag":341,"props":500,"children":501},{},[502,504,510],{"type":57,"value":503},"Platform API key\u002Fconfiguration and ",{"type":52,"tag":83,"props":505,"children":507},{"className":506},[],[508],{"type":57,"value":509},"UseMauiMaps()",{"type":57,"value":511}," when using MAUI Maps",{"type":52,"tag":341,"props":513,"children":514},{},[515],{"type":57,"value":516},"Platform map entitlement\u002Fconfiguration as required by the map provider",{"type":52,"tag":60,"props":518,"children":519},{},[520],{"type":57,"value":521},"Use the narrowest platform declaration that matches the feature. Do not add\nbackground location, broad storage, or microphone declarations \"just in case\".",{"type":52,"tag":66,"props":523,"children":525},{"id":524},"picker-and-sensor-guardrails",[526],{"type":57,"value":527},"Picker and Sensor Guardrails",{"type":52,"tag":529,"props":530,"children":531},"ul",{},[532,558,577,582,609,622,627],{"type":52,"tag":77,"props":533,"children":534},{},[535,541,543,549,551,557],{"type":52,"tag":83,"props":536,"children":538},{"className":537},[],[539],{"type":57,"value":540},"FilePicker.PickAsync",{"type":57,"value":542}," and ",{"type":52,"tag":83,"props":544,"children":546},{"className":545},[],[547],{"type":57,"value":548},"PickMultipleAsync",{"type":57,"value":550}," should handle null, empty\nresults, cancellation, and ",{"type":52,"tag":83,"props":552,"children":554},{"className":553},[],[555],{"type":57,"value":556},"PermissionException",{"type":57,"value":114},{"type":52,"tag":77,"props":559,"children":560},{},[561,567,569,575],{"type":52,"tag":83,"props":562,"children":564},{"className":563},[],[565],{"type":57,"value":566},"MediaPicker",{"type":57,"value":568}," should check ",{"type":52,"tag":83,"props":570,"children":572},{"className":571},[],[573],{"type":57,"value":574},"IsCaptureSupported",{"type":57,"value":576}," before camera capture.",{"type":52,"tag":77,"props":578,"children":579},{},[580],{"type":57,"value":581},"Copy picked file streams into app storage when the app needs durable access;\npicker-provided handles can be temporary.",{"type":52,"tag":77,"props":583,"children":584},{},[585,591,593,599,601,607],{"type":52,"tag":83,"props":586,"children":588},{"className":587},[],[589],{"type":57,"value":590},"Geolocation.GetLastKnownLocationAsync",{"type":57,"value":592}," can be stale. Use\n",{"type":52,"tag":83,"props":594,"children":596},{"className":595},[],[597],{"type":57,"value":598},"GetLocationAsync",{"type":57,"value":600}," with a ",{"type":52,"tag":83,"props":602,"children":604},{"className":603},[],[605],{"type":57,"value":606},"GeolocationRequest",{"type":57,"value":608}," for current location.",{"type":52,"tag":77,"props":610,"children":611},{},[612,614,620],{"type":57,"value":613},"Choose ",{"type":52,"tag":83,"props":615,"children":617},{"className":616},[],[618],{"type":57,"value":619},"GeolocationRequest.DesiredAccuracy",{"type":57,"value":621}," deliberately. Use medium or low\naccuracy to conserve battery unless the feature truly requires GPS precision.",{"type":52,"tag":77,"props":623,"children":624},{},[625],{"type":57,"value":626},"Pass cancellation tokens to location requests where the UI can cancel or the\npage can disappear.",{"type":52,"tag":77,"props":628,"children":629},{},[630,632,637],{"type":57,"value":631},"Migrating apps should audit old Xamarin ",{"type":52,"tag":83,"props":633,"children":635},{"className":634},[],[636],{"type":57,"value":400},{"type":57,"value":638}," declarations\nbecause Android 13+ media permissions changed runtime behavior.",{"type":52,"tag":66,"props":640,"children":642},{"id":641},"permission-ux",[643],{"type":57,"value":644},"Permission UX",{"type":52,"tag":529,"props":646,"children":647},{},[648,653,658,663,683,688],{"type":52,"tag":77,"props":649,"children":650},{},[651],{"type":57,"value":652},"Ask at the moment of need, not on first launch.",{"type":52,"tag":77,"props":654,"children":655},{},[656],{"type":57,"value":657},"Explain the user benefit before invoking the platform prompt.",{"type":52,"tag":77,"props":659,"children":660},{},[661],{"type":57,"value":662},"Provide a useful fallback when access is denied.",{"type":52,"tag":77,"props":664,"children":665},{},[666,668,674,675,681],{"type":57,"value":667},"Make denied\u002Fblocked states visible and announced with\n",{"type":52,"tag":83,"props":669,"children":671},{"className":670},[],[672],{"type":57,"value":673},"SemanticProperties.Description",{"type":57,"value":98},{"type":52,"tag":83,"props":676,"children":678},{"className":677},[],[679],{"type":57,"value":680},"SemanticScreenReader.Announce",{"type":57,"value":682},", or a\nfocused explanatory label.",{"type":52,"tag":77,"props":684,"children":685},{},[686],{"type":57,"value":687},"Avoid loops that immediately re-request permission after denial.",{"type":52,"tag":77,"props":689,"children":690},{},[691,693,699],{"type":57,"value":692},"Make error\u002Fcancelled states visible and testable with ",{"type":52,"tag":83,"props":694,"children":696},{"className":695},[],[697],{"type":57,"value":698},"AutomationId",{"type":57,"value":700}," when UI\nis affected.",{"type":52,"tag":66,"props":702,"children":704},{"id":703},"validation-checklist",[705],{"type":57,"value":706},"Validation Checklist",{"type":52,"tag":529,"props":708,"children":709},{},[710,715,720,725,730,735],{"type":52,"tag":77,"props":711,"children":712},{},[713],{"type":57,"value":714},"Platform manifests\u002Fplists include only the declarations required by the\nfeature.",{"type":52,"tag":77,"props":716,"children":717},{},[718],{"type":57,"value":719},"Runtime permission requests happen before capability APIs that require them.",{"type":52,"tag":77,"props":721,"children":722},{},[723],{"type":57,"value":724},"Denied and cancelled flows are handled without crashes.",{"type":52,"tag":77,"props":726,"children":727},{},[728],{"type":57,"value":729},"Denied permission UI is visible, accessible, and offers Settings when the\nplatform requires manual re-enable.",{"type":52,"tag":77,"props":731,"children":732},{},[733],{"type":57,"value":734},"Picked files\u002Fmedia are copied when durable access is required.",{"type":52,"tag":77,"props":736,"children":737},{},[738],{"type":57,"value":739},"Location code handles stale last-known data, timeout, and cancellation.",{"type":52,"tag":741,"props":742,"children":743},"style",{},[744],{"type":57,"value":745},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":747,"total":851},[748,764,777,791,807,824,840],{"slug":749,"name":749,"fn":750,"description":751,"org":752,"tags":753,"stars":25,"repoUrl":26,"updatedAt":763},"android-slim-bindings","create Android slim bindings for .NET","Create Android slim bindings for MAUI\u002F.NET Android. USE FOR: slim Android binding, Kotlin\u002FJava wrappers, build.gradle.kts, Maven, AAR\u002FJAR, AndroidMavenLibrary, AndroidLibrary, @JvmStatic, XA4241\u002FXA4242, Xamarin.AndroidX\u002FKotlin NuGets. DO NOT USE FOR: iOS\u002FmacOS bindings, general MAUI apps, or NuGet packaging.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[754,755,756,759,762],{"name":20,"slug":21,"type":15},{"name":327,"slug":32,"type":15},{"name":757,"slug":758,"type":15},"Java","java",{"name":760,"slug":761,"type":15},"Kotlin","kotlin",{"name":23,"slug":24,"type":15},"2026-07-12T08:22:54.006105",{"slug":765,"name":765,"fn":766,"description":767,"org":768,"tags":769,"stars":25,"repoUrl":26,"updatedAt":776},"devflow-automation","automate .NET MAUI app state","Automate MAUI app state through DevFlow Actions. USE FOR: `[DevFlowAction]` shortcuts, login, seed data, deep screens. DO NOT USE FOR: arbitrary methods, DI internals, UI MCP tools, connectivity, or build\u002Fdeploy issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[770,771,774,775],{"name":20,"slug":21,"type":15},{"name":772,"slug":773,"type":15},"Automation","automation",{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},"2026-07-12T08:22:56.616564",{"slug":778,"name":778,"fn":779,"description":780,"org":781,"tags":782,"stars":25,"repoUrl":26,"updatedAt":790},"devflow-connect","diagnose DevFlow agent connectivity issues","Diagnose DevFlow agent connectivity. USE FOR: `maui devflow` connection failures, agent not found, ports, adb forwarding, broker. DO NOT USE FOR: build failures, setup, visual tree, or Blazor CDP.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[783,786,787],{"name":784,"slug":785,"type":15},"Debugging","debugging",{"name":17,"slug":18,"type":15},{"name":788,"slug":789,"type":15},"Networking","networking","2026-07-12T08:22:48.847431",{"slug":792,"name":792,"fn":793,"description":794,"org":795,"tags":796,"stars":25,"repoUrl":26,"updatedAt":806},"dotnet-workload-info","discover MAUI workload metadata","Discover MAUI workload metadata from live NuGet APIs. USE FOR: workload manifest lookup, WorkloadDependencies.json, v3-flatcontainer, CLI-to-NuGet version conversion, Xcode\u002FJDK\u002FAndroid SDK requirements, CI sdkmanager packages, `packageid:Microsoft.Maui.Controls`. DO NOT USE FOR: installing workloads, build debugging, or app version edits.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[797,799,802,805],{"name":798,"slug":156,"type":15},"C#",{"name":800,"slug":801,"type":15},"CLI","cli",{"name":803,"slug":804,"type":15},"Engineering","engineering",{"name":17,"slug":18,"type":15},"2026-07-12T08:22:46.318953",{"slug":808,"name":808,"fn":809,"description":810,"org":811,"tags":812,"stars":25,"repoUrl":26,"updatedAt":823},"ios-slim-bindings","create iOS slim bindings for MAUI","Create iOS slim bindings for MAUI. USE FOR: slim iOS binding, Native Library Interop, Swift\u002FObjective-C wrappers, XcodeGen project.yml, Podfile, CocoaPods static linking, BUILD_LIBRARY_FOR_DISTRIBUTION, XcodeProject MSBuild, `@objc`\u002F`[Export]` selector crashes, async completion handlers. DO NOT USE FOR: Android bindings, general MAUI apps, or NuGet packaging.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[813,814,816,817,820],{"name":20,"slug":21,"type":15},{"name":815,"slug":34,"type":15},"iOS",{"name":17,"slug":18,"type":15},{"name":818,"slug":819,"type":15},"Swift","swift",{"name":821,"slug":822,"type":15},"Xcode","xcode","2026-07-12T08:22:50.128667",{"slug":825,"name":825,"fn":826,"description":827,"org":828,"tags":829,"stars":25,"repoUrl":26,"updatedAt":839},"maui-accessibility","implement accessibility in .NET MAUI apps","Make .NET MAUI apps accessible with semantic properties, screen reader labels\u002Fhints, heading levels, focus, announcements, AutomationProperties, touch targets, and platform checks. USE FOR: accessibility audits, WCAG UI fixes, TalkBack\u002FVoiceOver\u002FNarrator behavior, SemanticProperties.Description\u002FHint\u002FHeadingLevel, SemanticScreenReader.Announce, SetSemanticFocus, avoiding redundant Label metadata, hiding decorative content with IsInAccessibleTree=false, and CollectionView row semantics. DO NOT USE FOR: general layout, UI automation only, or performance tuning.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[830,831,834,835,836],{"name":20,"slug":21,"type":15},{"name":832,"slug":833,"type":15},"Accessibility","accessibility",{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":837,"slug":838,"type":15},"WCAG","wcag","2026-07-12T08:22:17.823583",{"slug":841,"name":841,"fn":842,"description":843,"org":844,"tags":845,"stars":25,"repoUrl":26,"updatedAt":850},"maui-ai-debugging","debug .NET MAUI application issues","Legacy DevFlow debug skill. USE FOR: `maui-ai-debugging`, `maui devflow`, screenshots, visual tree, Blazor CDP, simulator\u002Femulator debugging. DO NOT USE FOR: setup, desktop automation, AppleScript, host `xdotool`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[846,847,848,849],{"name":20,"slug":21,"type":15},{"name":784,"slug":785,"type":15},{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},"2026-07-12T08:22:52.634889",32,{"items":853,"total":1009},[854,868,883,895,911,925,943,953,965,975,988,999],{"slug":855,"name":855,"fn":856,"description":857,"org":858,"tags":859,"stars":865,"repoUrl":866,"updatedAt":867},"multithreaded-task-migration","migrate MSBuild tasks to multithreaded mode","Guide for migrating MSBuild tasks to multithreaded mode support, including compatibility red-team review. Use this when converting tasks to thread-safe versions, implementing IMultiThreadableTask, adding TaskEnvironment support, or auditing migrations for behavioral compatibility.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[860,861,862],{"name":20,"slug":21,"type":15},{"name":803,"slug":804,"type":15},{"name":863,"slug":864,"type":15},"Performance","performance",5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":869,"name":869,"fn":870,"description":871,"org":872,"tags":873,"stars":880,"repoUrl":881,"updatedAt":882},"analyzing-dotnet-performance","analyze .NET code for performance anti-patterns","Scans .NET code for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I\u002FO with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[874,875,878,879],{"name":20,"slug":21,"type":15},{"name":876,"slug":877,"type":15},"Code Analysis","code-analysis",{"name":784,"slug":785,"type":15},{"name":863,"slug":864,"type":15},4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-12T08:23:25.400375",{"slug":884,"name":884,"fn":885,"description":886,"org":887,"tags":888,"stars":880,"repoUrl":881,"updatedAt":894},"android-tombstone-symbolication","symbolicate .NET runtime frames in Android tombstones","Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app crash from a tombstone, resolving native backtrace frames in libmonosgen-2.0.so or libcoreclr.so to .NET runtime source code, or investigating SIGABRT, SIGSEGV, or other native signals originating from the .NET runtime on Android. DO NOT USE FOR pure Java\u002FKotlin crashes, managed .NET exceptions that are already captured in logcat, or iOS crash logs. INVOKES Symbolicate-Tombstone.ps1 script, llvm-symbolizer, Microsoft symbol server.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[889,890,891,892],{"name":20,"slug":21,"type":15},{"name":327,"slug":32,"type":15},{"name":784,"slug":785,"type":15},{"name":893,"slug":37,"type":15},"Microsoft","2026-07-12T08:23:21.595572",{"slug":896,"name":896,"fn":897,"description":898,"org":899,"tags":900,"stars":880,"repoUrl":881,"updatedAt":910},"apple-crash-symbolication","symbolicate .NET runtime frames in crash logs","Symbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, locates dSYM debug symbols, and runs atos to produce function names with source file and line numbers. Automatically downloads .dwarf symbols from the Microsoft symbol server using Mach-O UUIDs. USE FOR triaging a .NET MAUI or Mono app crash from an .ips file on any Apple platform, resolving native backtrace frames in libcoreclr or libmonosgen-2.0 to .NET runtime source code, retrieving .ips crash logs from a connected iOS device or iPhone, or investigating EXC_CRASH, EXC_BAD_ACCESS, SIGABRT, or SIGSEGV originating from the .NET runtime. DO NOT USE FOR pure Swift\u002FObjective-C crashes with no .NET components, or Android tombstone files. INVOKES Symbolicate-Crash.ps1 script, atos, dwarfdump, idevicecrashreport.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[901,902,903,904,907],{"name":20,"slug":21,"type":15},{"name":784,"slug":785,"type":15},{"name":815,"slug":34,"type":15},{"name":905,"slug":906,"type":15},"macOS","macos",{"name":908,"slug":909,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":912,"name":912,"fn":913,"description":914,"org":915,"tags":916,"stars":880,"repoUrl":881,"updatedAt":924},"assertion-quality","evaluate assertion quality in test suites","Analyzes the variety and depth of assertions across test suites in any language. Use when the user asks to evaluate assertion quality, find shallow tests, identify assertion-free tests (no assertions or only trivial ones like Assert.IsNotNull \u002F toBeTruthy()), flag self-referential or tautological assertions, measure assertion diversity, or audit whether tests verify different facets of behavior. Polyglot: .NET, Python, TS\u002FJS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. DO NOT USE FOR: writing new tests (use code-testing-agent \u002F writing-mstest-tests), mutation reasoning about whether tests would catch a bug (use test-gap-analysis), or a general severity-ranked anti-pattern audit (use test-anti-patterns), fixing or rewriting assertions, or writing, fixing, or modernizing MSTest tests, assertions, or attributes (use writing-mstest-tests).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[917,918,921],{"name":876,"slug":877,"type":15},{"name":919,"slug":920,"type":15},"QA","qa",{"name":922,"slug":923,"type":15},"Testing","testing","2026-07-12T08:23:51.277743",{"slug":926,"name":926,"fn":927,"description":928,"org":929,"tags":930,"stars":880,"repoUrl":881,"updatedAt":942},"author-component","create and review Blazor components","Create or review Blazor components (.razor files) with correct architecture. USE FOR: writing new Blazor components that do NOT involve JavaScript interop, implementing parameters and EventCallback, RenderFragment slots, component lifecycle (OnInitializedAsync, OnParametersSet), async patterns, IAsyncDisposable, CancellationToken, CSS isolation, code-behind. DO NOT USE FOR: creating new projects (use create-blazor-project), JavaScript interop or calling browser APIs from Blazor (use use-js-interop), forms and validation (use collect-user-input), prerendering issues (use support-prerendering), HTTP data fetching patterns (use fetch-and-send-data), coordinating state between unrelated components (use coordinate-components).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[931,932,935,936,939],{"name":20,"slug":21,"type":15},{"name":933,"slug":934,"type":15},"Blazor","blazor",{"name":798,"slug":156,"type":15},{"name":937,"slug":938,"type":15},"UI Components","ui-components",{"name":940,"slug":941,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":944,"name":944,"fn":945,"description":946,"org":947,"tags":948,"stars":880,"repoUrl":881,"updatedAt":952},"binlog-failure-analysis","analyze MSBuild binary logs","Analyze MSBuild binary logs to diagnose build failures. USE FOR: build errors that are unclear from console output, diagnosing cascading failures across multi-project builds, tracing MSBuild target execution order, and generally any MSBuild build issues. Requires an existing .binlog file. DO NOT USE FOR: generating binlogs (use binlog-generation), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[949,950,951],{"name":876,"slug":877,"type":15},{"name":784,"slug":785,"type":15},{"name":893,"slug":37,"type":15},"2026-07-12T08:21:34.637923",{"slug":954,"name":954,"fn":955,"description":956,"org":957,"tags":958,"stars":880,"repoUrl":881,"updatedAt":964},"binlog-generation","generate MSBuild binary logs for diagnostics","Generate MSBuild binary logs (binlogs) for build diagnostics and analysis. USE FOR: adding \u002Fbl:{} to any dotnet build, test, pack, publish, or restore command to capture a full build execution trace, prerequisite for binlog-failure-analysis and build-perf-diagnostics skills, enabling post-build investigation of errors or performance. Requires MSBuild 17.8+ \u002F .NET 8 SDK+ for {} placeholder; PowerShell needs -bl:{{}}. DO NOT USE FOR: non-MSBuild build systems (npm, Maven, CMake), analyzing an existing binlog (use binlog-failure-analysis instead).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[959,962,963],{"name":960,"slug":961,"type":15},"Build","build",{"name":784,"slug":785,"type":15},{"name":803,"slug":804,"type":15},"2026-07-19T05:38:19.340791",{"slug":966,"name":966,"fn":967,"description":968,"org":969,"tags":970,"stars":880,"repoUrl":881,"updatedAt":974},"build-parallelism","optimize MSBuild build parallelism","Diagnose and fix under-parallelized MSBuild builds. USE WHEN a multi-project solution build is slower than expected, doesn't speed up when you add cores, pegs a single core while others idle, or you want to know why `-m` isn't helping. Note: `\u002Fmaxcpucount` default is 1 (sequential) — always pass `-m` for parallel builds. Covers finding the critical path (longest serial ProjectReference chain), graph build (`\u002Fgraph`), BuildInParallel, and solution filters (`.slnf`). DO NOT USE FOR: single-project builds, incremental issues (use incremental-build), compilation slowness inside one project (use build-perf-diagnostics), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[971,972,973],{"name":20,"slug":21,"type":15},{"name":803,"slug":804,"type":15},{"name":863,"slug":864,"type":15},"2026-07-19T05:38:18.364937",{"slug":976,"name":976,"fn":977,"description":978,"org":979,"tags":980,"stars":880,"repoUrl":881,"updatedAt":987},"build-perf-baseline","establish and optimize build performance baselines","Establish build performance baselines and apply systematic optimization techniques. USE FOR: diagnosing slow builds, establishing before\u002Fafter measurements (cold, warm, no-op scenarios), applying optimization strategies like MSBuild Server, static graph builds, artifacts output, and dependency graph trimming. Start here before diving into build-perf-diagnostics, incremental-build, or build-parallelism. DO NOT USE FOR: non-MSBuild build systems, detailed bottleneck analysis (use build-perf-diagnostics after baselining).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[981,982,985,986],{"name":803,"slug":804,"type":15},{"name":983,"slug":984,"type":15},"Monitoring","monitoring",{"name":863,"slug":864,"type":15},{"name":922,"slug":923,"type":15},"2026-07-12T08:21:35.865649",{"slug":989,"name":989,"fn":990,"description":991,"org":992,"tags":993,"stars":880,"repoUrl":881,"updatedAt":998},"build-perf-diagnostics","diagnose MSBuild build performance bottlenecks","Diagnose MSBuild build performance bottlenecks using binary log analysis. USE FOR: identifying why builds are slow by analyzing binlog performance summaries, detecting ResolveAssemblyReference (RAR) taking >5s, Roslyn analyzers consuming >30% of Csc time, single targets dominating >50% of build time, node utilization below 80%, excessive Copy tasks, NuGet restore running every build. Covers timeline analysis, Target\u002FTask Performance Summary interpretation, and 7 common bottleneck categories. Use after build-perf-baseline has established measurements. DO NOT USE FOR: establishing initial baselines (use build-perf-baseline first), fixing incremental build issues (use incremental-build), parallelism tuning (use build-parallelism), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[994,995,996,997],{"name":20,"slug":21,"type":15},{"name":784,"slug":785,"type":15},{"name":803,"slug":804,"type":15},{"name":863,"slug":864,"type":15},"2026-07-12T08:21:40.961722",{"slug":1000,"name":1000,"fn":1001,"description":1002,"org":1003,"tags":1004,"stars":880,"repoUrl":881,"updatedAt":1008},"check-bin-obj-clash","detect MSBuild output path conflicts","Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath. USE FOR: builds failing with 'Cannot create a file when that file already exists', 'The process cannot access the file because it is being used by another process', intermittent build failures that succeed on retry, or missing\u002Foverwritten outputs in multi-project or multi-targeting builds where bin\u002Fobj (or project.assets.json) collide. Common causes: shared OutputPath, missing AppendTargetFrameworkToOutputPath, extra global properties (e.g. PublishReadyToRun), or SetTargetFramework on a ProjectReference to a single-targeting project. DO NOT USE FOR: file access errors unrelated to MSBuild (OS-level locking), single-project single-TFM builds, non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1005,1006,1007],{"name":784,"slug":785,"type":15},{"name":803,"slug":804,"type":15},{"name":919,"slug":920,"type":15},"2026-07-19T05:38:14.336279",144]