[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-maui-platform-invoke":3,"mdc-497ozi-key":50,"related-repo-dotnet-maui-platform-invoke":988,"related-org-dotnet-maui-platform-invoke":1093},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":31,"repoUrl":32,"updatedAt":33,"license":34,"forks":35,"topics":36,"repo":45,"sourceUrl":48,"mdContent":49},"maui-platform-invoke","integrate native platform APIs in MAUI","Add native platform APIs through MAUI services\u002Flifecycle hooks. USE FOR: DI wrappers (`IAppReviewService`, `ICameraService`), `Permissions.CheckStatusAsync`\u002F`RequestAsync`, AndroidManifest.xml, Info.plist, entitlements, partial platform files, `ConfigureLifecycleEvents` `AddAndroid`\u002F`AddiOS`\u002F`AddWindows`, services vs handlers vs bindings. DO NOT USE FOR: visual handlers, native SDK bindings, backend.",{"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,25,28],{"name":13,"slug":14,"type":15},"Android","android","tag",{"name":17,"slug":18,"type":15},"MAUI","maui",{"name":20,"slug":21,"type":15},"iOS","ios",{"name":23,"slug":24,"type":15},".NET","net",{"name":26,"slug":27,"type":15},"Mobile","mobile",{"name":29,"slug":30,"type":15},"API Development","api-development",190,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmaui-labs","2026-07-12T08:22:22.979098",null,21,[37,14,38,8,21,39,18,40,41,27,42,43,44],"ai","desktop","maccatalyst","mcp","microsoft","multi-platform","user-interface","winui",{"repoUrl":32,"stars":31,"forks":35,"topics":46,"description":47},[37,14,38,8,21,39,18,40,41,27,42,43,44],"Experimental and pre-release tools for .NET MAUI","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmaui-labs\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-maui-app\u002Fskills\u002Fmaui-platform-invoke","---\nname: maui-platform-invoke\ndescription: >-\n  Add native platform APIs through MAUI services\u002Flifecycle hooks. USE FOR: DI wrappers (`IAppReviewService`, `ICameraService`), `Permissions.CheckStatusAsync`\u002F`RequestAsync`, AndroidManifest.xml, Info.plist, entitlements, partial platform files, `ConfigureLifecycleEvents` `AddAndroid`\u002F`AddiOS`\u002F`AddWindows`, services vs handlers vs bindings. DO NOT USE FOR: visual handlers, native SDK bindings, backend.\n---\n\n# MAUI Platform Invoke\n\nUse this skill when a MAUI app needs platform APIs that are not already exposed\nby a cross-platform MAUI API. Prefer small, testable abstractions over scattered\n`#if` blocks.\n\n## Response Checklist\n\n- Define a DI abstraction first (for example `IAppReviewService`) and inject it\n  into app services or view models.\n- Mention required permission flow and platform metadata files\n  (`AndroidManifest.xml`, `Info.plist`, capabilities\u002Fentitlements).\n- Put lifecycle guidance in `ConfigureLifecycleEvents` (`AddAndroid`, `AddiOS`,\n  `AddWindows`) instead of page constructors.\n\n## Choose the Right Extension Point\n\n| Need | Prefer |\n| --- | --- |\n| Existing cross-platform Essentials API covers it | `Microsoft.Maui.ApplicationModel`, `Devices`, `Storage`, etc. |\n| Non-visual platform API or OS service | DI interface with per-platform implementation |\n| Native view\u002Fcontrol behavior | Handler mapper or custom handler |\n| Platform lifecycle callback | `ConfigureLifecycleEvents` |\n| Third-party SDK with many native types | Slim binding plus a narrow app service |\n| One small compile-time constant | `#if` or `OnPlatform` |\n\n## Platform Service Pattern\n\n1. Define an interface in shared code:\n\n   ```csharp\n   public interface IAppReviewService\n   {\n       Task RequestReviewAsync(CancellationToken cancellationToken = default);\n   }\n   ```\n\n2. Implement it per platform using target-specific files:\n\n   ```csharp\n   \u002F\u002F Platforms\u002FAndroid\u002FAppReviewService.android.cs\n   public sealed class AppReviewService : IAppReviewService\n   {\n       public Task RequestReviewAsync(CancellationToken cancellationToken = default)\n       {\n           \u002F\u002F Call Android APIs or a bound SDK here.\n           return Task.CompletedTask;\n       }\n   }\n   ```\n\n3. Register only the platforms that have implementations in `MauiProgram.cs`:\n\n   ```csharp\n   #if ANDROID\n   builder.Services.AddSingleton\u003CIAppReviewService, AppReviewService>();\n   #endif\n   ```\n\n   When adding iOS, Mac Catalyst, Windows, or MAUI Labs AppKit support, add the\n   matching platform implementation file first and then extend the guard, for\n   example `#if IOS || MACCATALYST` or `#if MACOS`.\n\n4. Inject `IAppReviewService` into view models or application services. Keep page\n   constructors simple.\n\n## Partial Classes and Conditional Compilation\n\n- Prefer platform-specific files under `Platforms\u002F\u003CPlatform>\u002F` for code that\n  imports native namespaces.\n- Use `partial` classes when one cross-platform type needs per-platform method\n  bodies.\n- Use `#if ANDROID`, `#if IOS`, `#if MACCATALYST`, `#if IOS || MACCATALYST`,\n  `#if MACOS`, and `#if WINDOWS` intentionally. iOS and Mac Catalyst often share\n  UIKit APIs, but AppKit macOS does not.\n- Avoid `Device.RuntimePlatform` for behavior that can be decided at compile\n  time.\n\n## Permissions and Capabilities\n\nBefore calling a platform API:\n\n1. Check whether MAUI has a `Permissions.*` helper for the capability.\n2. Add required manifest, Info.plist, entitlements, or package declarations.\n3. Request permission from UI-safe code before invoking the service.\n4. Handle denied\u002Frestricted states explicitly and surface user-actionable\n   recovery instructions.\n\n```csharp\nvar status = await Permissions.CheckStatusAsync\u003CPermissions.Camera>();\nif (status != PermissionStatus.Granted)\n    status = await Permissions.RequestAsync\u003CPermissions.Camera>();\n\nif (status != PermissionStatus.Granted)\n{\n    if (Shell.Current is not null)\n    {\n        await Shell.Current.DisplayAlert(\n            \"Camera permission required\",\n            \"Enable camera access in Settings to use this feature.\",\n            \"OK\");\n    }\n    return;\n}\n```\n\nDo not swallow permission failures or return fake success. In a service layer,\nreturn a result such as `PermissionStatus` or `bool` and let the caller surface\nthe denial in UI.\n\n## Lifecycle Hooks\n\nUse lifecycle hooks when the native API depends on app\u002Fwindow lifecycle:\n\n```csharp\nbuilder.ConfigureLifecycleEvents(events =>\n{\n#if ANDROID\n    events.AddAndroid(android => android\n        .OnResume(activity => { \u002F* refresh platform state *\u002F }));\n#elif IOS || MACCATALYST\n    events.AddiOS(ios => ios\n        .OnActivated(application => { \u002F* refresh platform state *\u002F }));\n#elif WINDOWS\n    events.AddWindows(windows => windows\n        .OnWindowCreated(window => { \u002F* configure native window *\u002F }));\n#endif\n});\n```\n\nKeep lifecycle code small. Forward work into registered services when state must\nbe shared with view models.\n\n## Validation Checklist\n\n- A cross-platform interface isolates native API calls.\n- Platform implementation files compile only for their intended target.\n- Required permissions, manifests, plist entries, entitlements, or capabilities\n  are documented and added.\n- Denied permissions are handled explicitly.\n- Native lifecycle subscriptions are paired with cleanup where applicable.\n- Visual customization is not implemented as a generic platform service.\n",{"data":51,"body":52},{"name":4,"description":6},{"type":53,"children":54},"root",[55,63,78,85,160,166,306,312,534,540,628,634,639,670,799,819,825,830,938,943,949,982],{"type":56,"tag":57,"props":58,"children":59},"element","h1",{"id":4},[60],{"type":61,"value":62},"text","MAUI Platform Invoke",{"type":56,"tag":64,"props":65,"children":66},"p",{},[67,69,76],{"type":61,"value":68},"Use this skill when a MAUI app needs platform APIs that are not already exposed\nby a cross-platform MAUI API. Prefer small, testable abstractions over scattered\n",{"type":56,"tag":70,"props":71,"children":73},"code",{"className":72},[],[74],{"type":61,"value":75},"#if",{"type":61,"value":77}," blocks.",{"type":56,"tag":79,"props":80,"children":82},"h2",{"id":81},"response-checklist",[83],{"type":61,"value":84},"Response Checklist",{"type":56,"tag":86,"props":87,"children":88},"ul",{},[89,103,124],{"type":56,"tag":90,"props":91,"children":92},"li",{},[93,95,101],{"type":61,"value":94},"Define a DI abstraction first (for example ",{"type":56,"tag":70,"props":96,"children":98},{"className":97},[],[99],{"type":61,"value":100},"IAppReviewService",{"type":61,"value":102},") and inject it\ninto app services or view models.",{"type":56,"tag":90,"props":104,"children":105},{},[106,108,114,116,122],{"type":61,"value":107},"Mention required permission flow and platform metadata files\n(",{"type":56,"tag":70,"props":109,"children":111},{"className":110},[],[112],{"type":61,"value":113},"AndroidManifest.xml",{"type":61,"value":115},", ",{"type":56,"tag":70,"props":117,"children":119},{"className":118},[],[120],{"type":61,"value":121},"Info.plist",{"type":61,"value":123},", capabilities\u002Fentitlements).",{"type":56,"tag":90,"props":125,"children":126},{},[127,129,135,137,143,144,150,152,158],{"type":61,"value":128},"Put lifecycle guidance in ",{"type":56,"tag":70,"props":130,"children":132},{"className":131},[],[133],{"type":61,"value":134},"ConfigureLifecycleEvents",{"type":61,"value":136}," (",{"type":56,"tag":70,"props":138,"children":140},{"className":139},[],[141],{"type":61,"value":142},"AddAndroid",{"type":61,"value":115},{"type":56,"tag":70,"props":145,"children":147},{"className":146},[],[148],{"type":61,"value":149},"AddiOS",{"type":61,"value":151},",\n",{"type":56,"tag":70,"props":153,"children":155},{"className":154},[],[156],{"type":61,"value":157},"AddWindows",{"type":61,"value":159},") instead of page constructors.",{"type":56,"tag":79,"props":161,"children":163},{"id":162},"choose-the-right-extension-point",[164],{"type":61,"value":165},"Choose the Right Extension Point",{"type":56,"tag":167,"props":168,"children":169},"table",{},[170,189],{"type":56,"tag":171,"props":172,"children":173},"thead",{},[174],{"type":56,"tag":175,"props":176,"children":177},"tr",{},[178,184],{"type":56,"tag":179,"props":180,"children":181},"th",{},[182],{"type":61,"value":183},"Need",{"type":56,"tag":179,"props":185,"children":186},{},[187],{"type":61,"value":188},"Prefer",{"type":56,"tag":190,"props":191,"children":192},"tbody",{},[193,227,240,253,269,282],{"type":56,"tag":175,"props":194,"children":195},{},[196,202],{"type":56,"tag":197,"props":198,"children":199},"td",{},[200],{"type":61,"value":201},"Existing cross-platform Essentials API covers it",{"type":56,"tag":197,"props":203,"children":204},{},[205,211,212,218,219,225],{"type":56,"tag":70,"props":206,"children":208},{"className":207},[],[209],{"type":61,"value":210},"Microsoft.Maui.ApplicationModel",{"type":61,"value":115},{"type":56,"tag":70,"props":213,"children":215},{"className":214},[],[216],{"type":61,"value":217},"Devices",{"type":61,"value":115},{"type":56,"tag":70,"props":220,"children":222},{"className":221},[],[223],{"type":61,"value":224},"Storage",{"type":61,"value":226},", etc.",{"type":56,"tag":175,"props":228,"children":229},{},[230,235],{"type":56,"tag":197,"props":231,"children":232},{},[233],{"type":61,"value":234},"Non-visual platform API or OS service",{"type":56,"tag":197,"props":236,"children":237},{},[238],{"type":61,"value":239},"DI interface with per-platform implementation",{"type":56,"tag":175,"props":241,"children":242},{},[243,248],{"type":56,"tag":197,"props":244,"children":245},{},[246],{"type":61,"value":247},"Native view\u002Fcontrol behavior",{"type":56,"tag":197,"props":249,"children":250},{},[251],{"type":61,"value":252},"Handler mapper or custom handler",{"type":56,"tag":175,"props":254,"children":255},{},[256,261],{"type":56,"tag":197,"props":257,"children":258},{},[259],{"type":61,"value":260},"Platform lifecycle callback",{"type":56,"tag":197,"props":262,"children":263},{},[264],{"type":56,"tag":70,"props":265,"children":267},{"className":266},[],[268],{"type":61,"value":134},{"type":56,"tag":175,"props":270,"children":271},{},[272,277],{"type":56,"tag":197,"props":273,"children":274},{},[275],{"type":61,"value":276},"Third-party SDK with many native types",{"type":56,"tag":197,"props":278,"children":279},{},[280],{"type":61,"value":281},"Slim binding plus a narrow app service",{"type":56,"tag":175,"props":283,"children":284},{},[285,290],{"type":56,"tag":197,"props":286,"children":287},{},[288],{"type":61,"value":289},"One small compile-time constant",{"type":56,"tag":197,"props":291,"children":292},{},[293,298,300],{"type":56,"tag":70,"props":294,"children":296},{"className":295},[],[297],{"type":61,"value":75},{"type":61,"value":299}," or ",{"type":56,"tag":70,"props":301,"children":303},{"className":302},[],[304],{"type":61,"value":305},"OnPlatform",{"type":56,"tag":79,"props":307,"children":309},{"id":308},"platform-service-pattern",[310],{"type":61,"value":311},"Platform Service Pattern",{"type":56,"tag":313,"props":314,"children":315},"ol",{},[316,370,457,522],{"type":56,"tag":90,"props":317,"children":318},{},[319,321],{"type":61,"value":320},"Define an interface in shared code:",{"type":56,"tag":322,"props":323,"children":328},"pre",{"className":324,"code":325,"language":326,"meta":327,"style":327},"language-csharp shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","public interface IAppReviewService\n{\n    Task RequestReviewAsync(CancellationToken cancellationToken = default);\n}\n","csharp","",[329],{"type":56,"tag":70,"props":330,"children":331},{"__ignoreMap":327},[332,343,352,361],{"type":56,"tag":333,"props":334,"children":337},"span",{"class":335,"line":336},"line",1,[338],{"type":56,"tag":333,"props":339,"children":340},{},[341],{"type":61,"value":342},"public interface IAppReviewService\n",{"type":56,"tag":333,"props":344,"children":346},{"class":335,"line":345},2,[347],{"type":56,"tag":333,"props":348,"children":349},{},[350],{"type":61,"value":351},"{\n",{"type":56,"tag":333,"props":353,"children":355},{"class":335,"line":354},3,[356],{"type":56,"tag":333,"props":357,"children":358},{},[359],{"type":61,"value":360},"    Task RequestReviewAsync(CancellationToken cancellationToken = default);\n",{"type":56,"tag":333,"props":362,"children":364},{"class":335,"line":363},4,[365],{"type":56,"tag":333,"props":366,"children":367},{},[368],{"type":61,"value":369},"}\n",{"type":56,"tag":90,"props":371,"children":372},{},[373,375],{"type":61,"value":374},"Implement it per platform using target-specific files:",{"type":56,"tag":322,"props":376,"children":378},{"className":324,"code":377,"language":326,"meta":327,"style":327},"\u002F\u002F Platforms\u002FAndroid\u002FAppReviewService.android.cs\npublic sealed class AppReviewService : IAppReviewService\n{\n    public Task RequestReviewAsync(CancellationToken cancellationToken = default)\n    {\n        \u002F\u002F Call Android APIs or a bound SDK here.\n        return Task.CompletedTask;\n    }\n}\n",[379],{"type":56,"tag":70,"props":380,"children":381},{"__ignoreMap":327},[382,390,398,405,413,422,431,440,449],{"type":56,"tag":333,"props":383,"children":384},{"class":335,"line":336},[385],{"type":56,"tag":333,"props":386,"children":387},{},[388],{"type":61,"value":389},"\u002F\u002F Platforms\u002FAndroid\u002FAppReviewService.android.cs\n",{"type":56,"tag":333,"props":391,"children":392},{"class":335,"line":345},[393],{"type":56,"tag":333,"props":394,"children":395},{},[396],{"type":61,"value":397},"public sealed class AppReviewService : IAppReviewService\n",{"type":56,"tag":333,"props":399,"children":400},{"class":335,"line":354},[401],{"type":56,"tag":333,"props":402,"children":403},{},[404],{"type":61,"value":351},{"type":56,"tag":333,"props":406,"children":407},{"class":335,"line":363},[408],{"type":56,"tag":333,"props":409,"children":410},{},[411],{"type":61,"value":412},"    public Task RequestReviewAsync(CancellationToken cancellationToken = default)\n",{"type":56,"tag":333,"props":414,"children":416},{"class":335,"line":415},5,[417],{"type":56,"tag":333,"props":418,"children":419},{},[420],{"type":61,"value":421},"    {\n",{"type":56,"tag":333,"props":423,"children":425},{"class":335,"line":424},6,[426],{"type":56,"tag":333,"props":427,"children":428},{},[429],{"type":61,"value":430},"        \u002F\u002F Call Android APIs or a bound SDK here.\n",{"type":56,"tag":333,"props":432,"children":434},{"class":335,"line":433},7,[435],{"type":56,"tag":333,"props":436,"children":437},{},[438],{"type":61,"value":439},"        return Task.CompletedTask;\n",{"type":56,"tag":333,"props":441,"children":443},{"class":335,"line":442},8,[444],{"type":56,"tag":333,"props":445,"children":446},{},[447],{"type":61,"value":448},"    }\n",{"type":56,"tag":333,"props":450,"children":452},{"class":335,"line":451},9,[453],{"type":56,"tag":333,"props":454,"children":455},{},[456],{"type":61,"value":369},{"type":56,"tag":90,"props":458,"children":459},{},[460,462,468,470,501,505,507,513,514,520],{"type":61,"value":461},"Register only the platforms that have implementations in ",{"type":56,"tag":70,"props":463,"children":465},{"className":464},[],[466],{"type":61,"value":467},"MauiProgram.cs",{"type":61,"value":469},":",{"type":56,"tag":322,"props":471,"children":473},{"className":324,"code":472,"language":326,"meta":327,"style":327},"#if ANDROID\nbuilder.Services.AddSingleton\u003CIAppReviewService, AppReviewService>();\n#endif\n",[474],{"type":56,"tag":70,"props":475,"children":476},{"__ignoreMap":327},[477,485,493],{"type":56,"tag":333,"props":478,"children":479},{"class":335,"line":336},[480],{"type":56,"tag":333,"props":481,"children":482},{},[483],{"type":61,"value":484},"#if ANDROID\n",{"type":56,"tag":333,"props":486,"children":487},{"class":335,"line":345},[488],{"type":56,"tag":333,"props":489,"children":490},{},[491],{"type":61,"value":492},"builder.Services.AddSingleton\u003CIAppReviewService, AppReviewService>();\n",{"type":56,"tag":333,"props":494,"children":495},{"class":335,"line":354},[496],{"type":56,"tag":333,"props":497,"children":498},{},[499],{"type":61,"value":500},"#endif\n",{"type":56,"tag":502,"props":503,"children":504},"br",{},[],{"type":61,"value":506},"When adding iOS, Mac Catalyst, Windows, or MAUI Labs AppKit support, add the\nmatching platform implementation file first and then extend the guard, for\nexample ",{"type":56,"tag":70,"props":508,"children":510},{"className":509},[],[511],{"type":61,"value":512},"#if IOS || MACCATALYST",{"type":61,"value":299},{"type":56,"tag":70,"props":515,"children":517},{"className":516},[],[518],{"type":61,"value":519},"#if MACOS",{"type":61,"value":521},".",{"type":56,"tag":90,"props":523,"children":524},{},[525,527,532],{"type":61,"value":526},"Inject ",{"type":56,"tag":70,"props":528,"children":530},{"className":529},[],[531],{"type":61,"value":100},{"type":61,"value":533}," into view models or application services. Keep page\nconstructors simple.",{"type":56,"tag":79,"props":535,"children":537},{"id":536},"partial-classes-and-conditional-compilation",[538],{"type":61,"value":539},"Partial Classes and Conditional Compilation",{"type":56,"tag":86,"props":541,"children":542},{},[543,556,569,615],{"type":56,"tag":90,"props":544,"children":545},{},[546,548,554],{"type":61,"value":547},"Prefer platform-specific files under ",{"type":56,"tag":70,"props":549,"children":551},{"className":550},[],[552],{"type":61,"value":553},"Platforms\u002F\u003CPlatform>\u002F",{"type":61,"value":555}," for code that\nimports native namespaces.",{"type":56,"tag":90,"props":557,"children":558},{},[559,561,567],{"type":61,"value":560},"Use ",{"type":56,"tag":70,"props":562,"children":564},{"className":563},[],[565],{"type":61,"value":566},"partial",{"type":61,"value":568}," classes when one cross-platform type needs per-platform method\nbodies.",{"type":56,"tag":90,"props":570,"children":571},{},[572,573,579,580,586,587,593,594,599,600,605,607,613],{"type":61,"value":560},{"type":56,"tag":70,"props":574,"children":576},{"className":575},[],[577],{"type":61,"value":578},"#if ANDROID",{"type":61,"value":115},{"type":56,"tag":70,"props":581,"children":583},{"className":582},[],[584],{"type":61,"value":585},"#if IOS",{"type":61,"value":115},{"type":56,"tag":70,"props":588,"children":590},{"className":589},[],[591],{"type":61,"value":592},"#if MACCATALYST",{"type":61,"value":115},{"type":56,"tag":70,"props":595,"children":597},{"className":596},[],[598],{"type":61,"value":512},{"type":61,"value":151},{"type":56,"tag":70,"props":601,"children":603},{"className":602},[],[604],{"type":61,"value":519},{"type":61,"value":606},", and ",{"type":56,"tag":70,"props":608,"children":610},{"className":609},[],[611],{"type":61,"value":612},"#if WINDOWS",{"type":61,"value":614}," intentionally. iOS and Mac Catalyst often share\nUIKit APIs, but AppKit macOS does not.",{"type":56,"tag":90,"props":616,"children":617},{},[618,620,626],{"type":61,"value":619},"Avoid ",{"type":56,"tag":70,"props":621,"children":623},{"className":622},[],[624],{"type":61,"value":625},"Device.RuntimePlatform",{"type":61,"value":627}," for behavior that can be decided at compile\ntime.",{"type":56,"tag":79,"props":629,"children":631},{"id":630},"permissions-and-capabilities",[632],{"type":61,"value":633},"Permissions and Capabilities",{"type":56,"tag":64,"props":635,"children":636},{},[637],{"type":61,"value":638},"Before calling a platform API:",{"type":56,"tag":313,"props":640,"children":641},{},[642,655,660,665],{"type":56,"tag":90,"props":643,"children":644},{},[645,647,653],{"type":61,"value":646},"Check whether MAUI has a ",{"type":56,"tag":70,"props":648,"children":650},{"className":649},[],[651],{"type":61,"value":652},"Permissions.*",{"type":61,"value":654}," helper for the capability.",{"type":56,"tag":90,"props":656,"children":657},{},[658],{"type":61,"value":659},"Add required manifest, Info.plist, entitlements, or package declarations.",{"type":56,"tag":90,"props":661,"children":662},{},[663],{"type":61,"value":664},"Request permission from UI-safe code before invoking the service.",{"type":56,"tag":90,"props":666,"children":667},{},[668],{"type":61,"value":669},"Handle denied\u002Frestricted states explicitly and surface user-actionable\nrecovery instructions.",{"type":56,"tag":322,"props":671,"children":673},{"className":324,"code":672,"language":326,"meta":327,"style":327},"var status = await Permissions.CheckStatusAsync\u003CPermissions.Camera>();\nif (status != PermissionStatus.Granted)\n    status = await Permissions.RequestAsync\u003CPermissions.Camera>();\n\nif (status != PermissionStatus.Granted)\n{\n    if (Shell.Current is not null)\n    {\n        await Shell.Current.DisplayAlert(\n            \"Camera permission required\",\n            \"Enable camera access in Settings to use this feature.\",\n            \"OK\");\n    }\n    return;\n}\n",[674],{"type":56,"tag":70,"props":675,"children":676},{"__ignoreMap":327},[677,685,693,701,710,717,724,732,739,747,756,765,774,782,791],{"type":56,"tag":333,"props":678,"children":679},{"class":335,"line":336},[680],{"type":56,"tag":333,"props":681,"children":682},{},[683],{"type":61,"value":684},"var status = await Permissions.CheckStatusAsync\u003CPermissions.Camera>();\n",{"type":56,"tag":333,"props":686,"children":687},{"class":335,"line":345},[688],{"type":56,"tag":333,"props":689,"children":690},{},[691],{"type":61,"value":692},"if (status != PermissionStatus.Granted)\n",{"type":56,"tag":333,"props":694,"children":695},{"class":335,"line":354},[696],{"type":56,"tag":333,"props":697,"children":698},{},[699],{"type":61,"value":700},"    status = await Permissions.RequestAsync\u003CPermissions.Camera>();\n",{"type":56,"tag":333,"props":702,"children":703},{"class":335,"line":363},[704],{"type":56,"tag":333,"props":705,"children":707},{"emptyLinePlaceholder":706},true,[708],{"type":61,"value":709},"\n",{"type":56,"tag":333,"props":711,"children":712},{"class":335,"line":415},[713],{"type":56,"tag":333,"props":714,"children":715},{},[716],{"type":61,"value":692},{"type":56,"tag":333,"props":718,"children":719},{"class":335,"line":424},[720],{"type":56,"tag":333,"props":721,"children":722},{},[723],{"type":61,"value":351},{"type":56,"tag":333,"props":725,"children":726},{"class":335,"line":433},[727],{"type":56,"tag":333,"props":728,"children":729},{},[730],{"type":61,"value":731},"    if (Shell.Current is not null)\n",{"type":56,"tag":333,"props":733,"children":734},{"class":335,"line":442},[735],{"type":56,"tag":333,"props":736,"children":737},{},[738],{"type":61,"value":421},{"type":56,"tag":333,"props":740,"children":741},{"class":335,"line":451},[742],{"type":56,"tag":333,"props":743,"children":744},{},[745],{"type":61,"value":746},"        await Shell.Current.DisplayAlert(\n",{"type":56,"tag":333,"props":748,"children":750},{"class":335,"line":749},10,[751],{"type":56,"tag":333,"props":752,"children":753},{},[754],{"type":61,"value":755},"            \"Camera permission required\",\n",{"type":56,"tag":333,"props":757,"children":759},{"class":335,"line":758},11,[760],{"type":56,"tag":333,"props":761,"children":762},{},[763],{"type":61,"value":764},"            \"Enable camera access in Settings to use this feature.\",\n",{"type":56,"tag":333,"props":766,"children":768},{"class":335,"line":767},12,[769],{"type":56,"tag":333,"props":770,"children":771},{},[772],{"type":61,"value":773},"            \"OK\");\n",{"type":56,"tag":333,"props":775,"children":777},{"class":335,"line":776},13,[778],{"type":56,"tag":333,"props":779,"children":780},{},[781],{"type":61,"value":448},{"type":56,"tag":333,"props":783,"children":785},{"class":335,"line":784},14,[786],{"type":56,"tag":333,"props":787,"children":788},{},[789],{"type":61,"value":790},"    return;\n",{"type":56,"tag":333,"props":792,"children":794},{"class":335,"line":793},15,[795],{"type":56,"tag":333,"props":796,"children":797},{},[798],{"type":61,"value":369},{"type":56,"tag":64,"props":800,"children":801},{},[802,804,810,811,817],{"type":61,"value":803},"Do not swallow permission failures or return fake success. In a service layer,\nreturn a result such as ",{"type":56,"tag":70,"props":805,"children":807},{"className":806},[],[808],{"type":61,"value":809},"PermissionStatus",{"type":61,"value":299},{"type":56,"tag":70,"props":812,"children":814},{"className":813},[],[815],{"type":61,"value":816},"bool",{"type":61,"value":818}," and let the caller surface\nthe denial in UI.",{"type":56,"tag":79,"props":820,"children":822},{"id":821},"lifecycle-hooks",[823],{"type":61,"value":824},"Lifecycle Hooks",{"type":56,"tag":64,"props":826,"children":827},{},[828],{"type":61,"value":829},"Use lifecycle hooks when the native API depends on app\u002Fwindow lifecycle:",{"type":56,"tag":322,"props":831,"children":833},{"className":324,"code":832,"language":326,"meta":327,"style":327},"builder.ConfigureLifecycleEvents(events =>\n{\n#if ANDROID\n    events.AddAndroid(android => android\n        .OnResume(activity => { \u002F* refresh platform state *\u002F }));\n#elif IOS || MACCATALYST\n    events.AddiOS(ios => ios\n        .OnActivated(application => { \u002F* refresh platform state *\u002F }));\n#elif WINDOWS\n    events.AddWindows(windows => windows\n        .OnWindowCreated(window => { \u002F* configure native window *\u002F }));\n#endif\n});\n",[834],{"type":56,"tag":70,"props":835,"children":836},{"__ignoreMap":327},[837,845,852,859,867,875,883,891,899,907,915,923,930],{"type":56,"tag":333,"props":838,"children":839},{"class":335,"line":336},[840],{"type":56,"tag":333,"props":841,"children":842},{},[843],{"type":61,"value":844},"builder.ConfigureLifecycleEvents(events =>\n",{"type":56,"tag":333,"props":846,"children":847},{"class":335,"line":345},[848],{"type":56,"tag":333,"props":849,"children":850},{},[851],{"type":61,"value":351},{"type":56,"tag":333,"props":853,"children":854},{"class":335,"line":354},[855],{"type":56,"tag":333,"props":856,"children":857},{},[858],{"type":61,"value":484},{"type":56,"tag":333,"props":860,"children":861},{"class":335,"line":363},[862],{"type":56,"tag":333,"props":863,"children":864},{},[865],{"type":61,"value":866},"    events.AddAndroid(android => android\n",{"type":56,"tag":333,"props":868,"children":869},{"class":335,"line":415},[870],{"type":56,"tag":333,"props":871,"children":872},{},[873],{"type":61,"value":874},"        .OnResume(activity => { \u002F* refresh platform state *\u002F }));\n",{"type":56,"tag":333,"props":876,"children":877},{"class":335,"line":424},[878],{"type":56,"tag":333,"props":879,"children":880},{},[881],{"type":61,"value":882},"#elif IOS || MACCATALYST\n",{"type":56,"tag":333,"props":884,"children":885},{"class":335,"line":433},[886],{"type":56,"tag":333,"props":887,"children":888},{},[889],{"type":61,"value":890},"    events.AddiOS(ios => ios\n",{"type":56,"tag":333,"props":892,"children":893},{"class":335,"line":442},[894],{"type":56,"tag":333,"props":895,"children":896},{},[897],{"type":61,"value":898},"        .OnActivated(application => { \u002F* refresh platform state *\u002F }));\n",{"type":56,"tag":333,"props":900,"children":901},{"class":335,"line":451},[902],{"type":56,"tag":333,"props":903,"children":904},{},[905],{"type":61,"value":906},"#elif WINDOWS\n",{"type":56,"tag":333,"props":908,"children":909},{"class":335,"line":749},[910],{"type":56,"tag":333,"props":911,"children":912},{},[913],{"type":61,"value":914},"    events.AddWindows(windows => windows\n",{"type":56,"tag":333,"props":916,"children":917},{"class":335,"line":758},[918],{"type":56,"tag":333,"props":919,"children":920},{},[921],{"type":61,"value":922},"        .OnWindowCreated(window => { \u002F* configure native window *\u002F }));\n",{"type":56,"tag":333,"props":924,"children":925},{"class":335,"line":767},[926],{"type":56,"tag":333,"props":927,"children":928},{},[929],{"type":61,"value":500},{"type":56,"tag":333,"props":931,"children":932},{"class":335,"line":776},[933],{"type":56,"tag":333,"props":934,"children":935},{},[936],{"type":61,"value":937},"});\n",{"type":56,"tag":64,"props":939,"children":940},{},[941],{"type":61,"value":942},"Keep lifecycle code small. Forward work into registered services when state must\nbe shared with view models.",{"type":56,"tag":79,"props":944,"children":946},{"id":945},"validation-checklist",[947],{"type":61,"value":948},"Validation Checklist",{"type":56,"tag":86,"props":950,"children":951},{},[952,957,962,967,972,977],{"type":56,"tag":90,"props":953,"children":954},{},[955],{"type":61,"value":956},"A cross-platform interface isolates native API calls.",{"type":56,"tag":90,"props":958,"children":959},{},[960],{"type":61,"value":961},"Platform implementation files compile only for their intended target.",{"type":56,"tag":90,"props":963,"children":964},{},[965],{"type":61,"value":966},"Required permissions, manifests, plist entries, entitlements, or capabilities\nare documented and added.",{"type":56,"tag":90,"props":968,"children":969},{},[970],{"type":61,"value":971},"Denied permissions are handled explicitly.",{"type":56,"tag":90,"props":973,"children":974},{},[975],{"type":61,"value":976},"Native lifecycle subscriptions are paired with cleanup where applicable.",{"type":56,"tag":90,"props":978,"children":979},{},[980],{"type":61,"value":981},"Visual customization is not implemented as a generic platform service.",{"type":56,"tag":983,"props":984,"children":985},"style",{},[986],{"type":61,"value":987},"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":989,"total":1092},[990,1006,1019,1033,1049,1065,1081],{"slug":991,"name":991,"fn":992,"description":993,"org":994,"tags":995,"stars":31,"repoUrl":32,"updatedAt":1005},"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},[996,997,998,1001,1004],{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},{"name":999,"slug":1000,"type":15},"Java","java",{"name":1002,"slug":1003,"type":15},"Kotlin","kotlin",{"name":26,"slug":27,"type":15},"2026-07-12T08:22:54.006105",{"slug":1007,"name":1007,"fn":1008,"description":1009,"org":1010,"tags":1011,"stars":31,"repoUrl":32,"updatedAt":1018},"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},[1012,1013,1016,1017],{"name":23,"slug":24,"type":15},{"name":1014,"slug":1015,"type":15},"Automation","automation",{"name":17,"slug":18,"type":15},{"name":26,"slug":27,"type":15},"2026-07-12T08:22:56.616564",{"slug":1020,"name":1020,"fn":1021,"description":1022,"org":1023,"tags":1024,"stars":31,"repoUrl":32,"updatedAt":1032},"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},[1025,1028,1029],{"name":1026,"slug":1027,"type":15},"Debugging","debugging",{"name":17,"slug":18,"type":15},{"name":1030,"slug":1031,"type":15},"Networking","networking","2026-07-12T08:22:48.847431",{"slug":1034,"name":1034,"fn":1035,"description":1036,"org":1037,"tags":1038,"stars":31,"repoUrl":32,"updatedAt":1048},"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},[1039,1041,1044,1047],{"name":1040,"slug":326,"type":15},"C#",{"name":1042,"slug":1043,"type":15},"CLI","cli",{"name":1045,"slug":1046,"type":15},"Engineering","engineering",{"name":17,"slug":18,"type":15},"2026-07-12T08:22:46.318953",{"slug":1050,"name":1050,"fn":1051,"description":1052,"org":1053,"tags":1054,"stars":31,"repoUrl":32,"updatedAt":1064},"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},[1055,1056,1057,1058,1061],{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},{"name":1059,"slug":1060,"type":15},"Swift","swift",{"name":1062,"slug":1063,"type":15},"Xcode","xcode","2026-07-12T08:22:50.128667",{"slug":1066,"name":1066,"fn":1067,"description":1068,"org":1069,"tags":1070,"stars":31,"repoUrl":32,"updatedAt":1080},"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},[1071,1072,1075,1076,1077],{"name":23,"slug":24,"type":15},{"name":1073,"slug":1074,"type":15},"Accessibility","accessibility",{"name":17,"slug":18,"type":15},{"name":26,"slug":27,"type":15},{"name":1078,"slug":1079,"type":15},"WCAG","wcag","2026-07-12T08:22:17.823583",{"slug":1082,"name":1082,"fn":1083,"description":1084,"org":1085,"tags":1086,"stars":31,"repoUrl":32,"updatedAt":1091},"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},[1087,1088,1089,1090],{"name":23,"slug":24,"type":15},{"name":1026,"slug":1027,"type":15},{"name":17,"slug":18,"type":15},{"name":26,"slug":27,"type":15},"2026-07-12T08:22:52.634889",32,{"items":1094,"total":1250},[1095,1109,1124,1136,1152,1166,1184,1194,1206,1216,1229,1240],{"slug":1096,"name":1096,"fn":1097,"description":1098,"org":1099,"tags":1100,"stars":1106,"repoUrl":1107,"updatedAt":1108},"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},[1101,1102,1103],{"name":23,"slug":24,"type":15},{"name":1045,"slug":1046,"type":15},{"name":1104,"slug":1105,"type":15},"Performance","performance",5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":1110,"name":1110,"fn":1111,"description":1112,"org":1113,"tags":1114,"stars":1121,"repoUrl":1122,"updatedAt":1123},"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},[1115,1116,1119,1120],{"name":23,"slug":24,"type":15},{"name":1117,"slug":1118,"type":15},"Code Analysis","code-analysis",{"name":1026,"slug":1027,"type":15},{"name":1104,"slug":1105,"type":15},4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-12T08:23:25.400375",{"slug":1125,"name":1125,"fn":1126,"description":1127,"org":1128,"tags":1129,"stars":1121,"repoUrl":1122,"updatedAt":1135},"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},[1130,1131,1132,1133],{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},{"name":1026,"slug":1027,"type":15},{"name":1134,"slug":41,"type":15},"Microsoft","2026-07-12T08:23:21.595572",{"slug":1137,"name":1137,"fn":1138,"description":1139,"org":1140,"tags":1141,"stars":1121,"repoUrl":1122,"updatedAt":1151},"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},[1142,1143,1144,1145,1148],{"name":23,"slug":24,"type":15},{"name":1026,"slug":1027,"type":15},{"name":20,"slug":21,"type":15},{"name":1146,"slug":1147,"type":15},"macOS","macos",{"name":1149,"slug":1150,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":1153,"name":1153,"fn":1154,"description":1155,"org":1156,"tags":1157,"stars":1121,"repoUrl":1122,"updatedAt":1165},"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},[1158,1159,1162],{"name":1117,"slug":1118,"type":15},{"name":1160,"slug":1161,"type":15},"QA","qa",{"name":1163,"slug":1164,"type":15},"Testing","testing","2026-07-12T08:23:51.277743",{"slug":1167,"name":1167,"fn":1168,"description":1169,"org":1170,"tags":1171,"stars":1121,"repoUrl":1122,"updatedAt":1183},"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},[1172,1173,1176,1177,1180],{"name":23,"slug":24,"type":15},{"name":1174,"slug":1175,"type":15},"Blazor","blazor",{"name":1040,"slug":326,"type":15},{"name":1178,"slug":1179,"type":15},"UI Components","ui-components",{"name":1181,"slug":1182,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":1185,"name":1185,"fn":1186,"description":1187,"org":1188,"tags":1189,"stars":1121,"repoUrl":1122,"updatedAt":1193},"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},[1190,1191,1192],{"name":1117,"slug":1118,"type":15},{"name":1026,"slug":1027,"type":15},{"name":1134,"slug":41,"type":15},"2026-07-12T08:21:34.637923",{"slug":1195,"name":1195,"fn":1196,"description":1197,"org":1198,"tags":1199,"stars":1121,"repoUrl":1122,"updatedAt":1205},"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},[1200,1203,1204],{"name":1201,"slug":1202,"type":15},"Build","build",{"name":1026,"slug":1027,"type":15},{"name":1045,"slug":1046,"type":15},"2026-07-19T05:38:19.340791",{"slug":1207,"name":1207,"fn":1208,"description":1209,"org":1210,"tags":1211,"stars":1121,"repoUrl":1122,"updatedAt":1215},"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},[1212,1213,1214],{"name":23,"slug":24,"type":15},{"name":1045,"slug":1046,"type":15},{"name":1104,"slug":1105,"type":15},"2026-07-19T05:38:18.364937",{"slug":1217,"name":1217,"fn":1218,"description":1219,"org":1220,"tags":1221,"stars":1121,"repoUrl":1122,"updatedAt":1228},"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},[1222,1223,1226,1227],{"name":1045,"slug":1046,"type":15},{"name":1224,"slug":1225,"type":15},"Monitoring","monitoring",{"name":1104,"slug":1105,"type":15},{"name":1163,"slug":1164,"type":15},"2026-07-12T08:21:35.865649",{"slug":1230,"name":1230,"fn":1231,"description":1232,"org":1233,"tags":1234,"stars":1121,"repoUrl":1122,"updatedAt":1239},"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},[1235,1236,1237,1238],{"name":23,"slug":24,"type":15},{"name":1026,"slug":1027,"type":15},{"name":1045,"slug":1046,"type":15},{"name":1104,"slug":1105,"type":15},"2026-07-12T08:21:40.961722",{"slug":1241,"name":1241,"fn":1242,"description":1243,"org":1244,"tags":1245,"stars":1121,"repoUrl":1122,"updatedAt":1249},"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},[1246,1247,1248],{"name":1026,"slug":1027,"type":15},{"name":1045,"slug":1046,"type":15},{"name":1160,"slug":1161,"type":15},"2026-07-19T05:38:14.336279",144]