[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-maui-ai-tool-bindings":3,"mdc--vjqrs8-key":47,"related-repo-dotnet-maui-ai-tool-bindings":1034,"related-org-dotnet-maui-ai-tool-bindings":1142},{"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":42,"sourceUrl":45,"mdContent":46},"maui-ai-tool-bindings","generate AI tools for .NET MAUI apps","Use `Microsoft.Maui.AI.Attributes` to source-generate `Microsoft.Extensions.AI` tools for MAUI apps. USE FOR: `ExportAIFunction`, `AIToolSource`, `AIToolContext`, `Default.Tools`, DI-bound parameters, chat-session scopes, AOT-safe tools, and `IChatClient.UseFunctionInvocation`. DO NOT USE FOR: Essentials.AI chat or embeddings, native bindings, or theory.",{"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},"LLM","llm","tag",{"name":17,"slug":18,"type":15},"MAUI","maui",{"name":20,"slug":21,"type":15},".NET","net",{"name":23,"slug":24,"type":15},"API Development","api-development",190,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmaui-labs","2026-07-12T08:22:25.43458",null,21,[31,32,33,8,34,35,18,36,37,38,39,40,41],"ai","android","desktop","ios","maccatalyst","mcp","microsoft","mobile","multi-platform","user-interface","winui",{"repoUrl":26,"stars":25,"forks":29,"topics":43,"description":44},[31,32,33,8,34,35,18,36,37,38,39,40,41],"Experimental and pre-release tools for .NET MAUI","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmaui-labs\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-maui-app\u002Fskills\u002Fmaui-ai-tool-bindings","---\nname: maui-ai-tool-bindings\ndescription: >-\n  Use `Microsoft.Maui.AI.Attributes` to source-generate `Microsoft.Extensions.AI` tools for MAUI apps. USE FOR: `ExportAIFunction`, `AIToolSource`, `AIToolContext`, `Default.Tools`, DI-bound parameters, chat-session scopes, AOT-safe tools, and `IChatClient.UseFunctionInvocation`. DO NOT USE FOR: Essentials.AI chat or embeddings, native bindings, or theory.\n---\n\n# MAUI AI Tool Bindings\n\nUse this skill when a MAUI app needs AI-callable tools backed by app services,\nview models, or static utility methods. `Microsoft.Maui.AI.Attributes` generates\n`Microsoft.Extensions.AI` tools at compile time to avoid reflection-heavy\ninvocation paths.\n\n## Basic Workflow\n\n1. Install the package:\n\n   ```bash\n   dotnet add package Microsoft.Maui.AI.Attributes --prerelease\n   ```\n\n2. Annotate methods or property accessors:\n\n   ```csharp\n   using System.ComponentModel;\n   using Microsoft.Maui.AI.Attributes;\n\n   public sealed class PlantCatalogService\n   {\n       [Description(\"Searches the plant catalog by name or category.\")]\n       [ExportAIFunction(\"search_plants\")]\n       public IReadOnlyList\u003CPlantInfo> SearchPlants(\n           [Description(\"Optional filter text\")] string? query = null)\n       {\n           return [];\n       }\n   }\n   ```\n\n3. Create a curated tool context:\n\n   ```csharp\n   [AIToolSource(typeof(PlantCatalogService))]\n   public partial class GardenTools : AIToolContext\n   {\n   }\n   ```\n\n4. Register services normally in `MauiProgram.cs`:\n\n   ```csharp\n   builder.Services.AddSingleton\u003CPlantCatalogService>();\n   ```\n\n5. Pass generated tools into an `IChatClient`:\n\n   ```csharp\n   var client = innerClient.AsBuilder()\n       .UseFunctionInvocation()\n       .ConfigureOptions(options =>\n       {\n           options.Tools ??= [];\n           foreach (var tool in GardenTools.Default.Tools)\n               options.Tools.Add(tool);\n       })\n       .Build(serviceProvider);\n   ```\n\n## Tool Context Choices\n\n| Need | Pattern |\n| --- | --- |\n| Curated feature-specific tools | Explicit partial `AIToolContext` with `[AIToolSource]` |\n| Small prototype exposing all exported tools | Assembly-wide `\u003CAssemblyName>ToolContext.Default.Tools` |\n| Sensitive mutation | `[ExportAIFunction(ApprovalRequired = true)]` |\n| Static utility tool | Static `[ExportAIFunction]` method |\n| Service-backed tool | Instance method on a DI-registered service |\n\nPrefer explicit contexts for production features so tool names and scope stay\nstable.\n\n## DI Parameter Binding\n\nThe generator classifies parameters at compile time:\n\n| Parameter | Binding |\n| --- | --- |\n| Plain `string`, `int`, records, enums | JSON argument in the tool schema |\n| `CancellationToken` | Function invocation cancellation token |\n| `IServiceProvider` | `AIFunctionArguments.Services` |\n| `[FromServices] IMyService service` | Resolved from the provider, excluded from schema |\n| `[FromKeyedServices(\"key\")] IMyService service` | Resolved from keyed DI, excluded from schema |\n\nFor instance methods, the host service itself is resolved from the provider. If\nthe provider is missing, generated tools throw a clear `InvalidOperationException`\ninstead of returning fake success.\n\n## Scope and Lifetime\n\nThe library does not create DI scopes. Keep the scope alive for as long as the\nchat session can invoke tools, then dispose it when the session ends:\n\n`AdditionalTools` on the invocation middleware injects tools into every request\nautomatically, which is idiomatic for a session-scoped tool set.\n\n```csharp\nprivate IServiceScope? _sessionScope;\nprivate IChatClient? _sessionClient;\n\nif (_sessionClient is IAsyncDisposable asyncDisposable)\n    await asyncDisposable.DisposeAsync();\nelse\n    _sessionClient?.Dispose();\n\n_sessionScope?.Dispose();\n_sessionScope = serviceScopeFactory.CreateScope(); \u002F\u002F Inject IServiceScopeFactory.\n\n_sessionClient = innerClient.AsBuilder()\n    .UseFunctionInvocation(configure: invocation =>\n        invocation.AdditionalTools = [.. GardenTools.Default.Tools])\n    .Build(_sessionScope.ServiceProvider);\n\n\u002F\u002F Also dispose _sessionClient and _sessionScope when the chat session or view model ends.\n```\n\nUse a per-chat-session scope when tools hold conversational state.\n\n## AOT and Analyzer Guardrails\n\n- Use declared methods on declared types. Lambdas, local functions, and dynamic\n  methods are not source-generated tools.\n- Add `[Description]` to tools and user-visible parameters.\n- Avoid generic methods, `ref`\u002F`out`\u002F`in` parameters, delegates, pointers, and\n  shapes that cannot round-trip through JSON.\n- Materialize `IAsyncEnumerable\u003CT>` results to arrays\u002Flists if the consumer\n  expects JSON array output.\n- Watch diagnostics such as `MAUIAI002`, `MAUIAI003`, and `MAUIAI004`.\n\n## Validation Checklist\n\n- Tool names are stable and safe for the assistant to call.\n- Sensitive tools require approval.\n- DI services used by tools are registered with the intended lifetime.\n- `UseFunctionInvocation().Build(serviceProvider)` flows a provider to tool\n  invocations.\n- The app builds so the generator emits the context and diagnostics.\n- Tool output is deterministic enough for the app's AI UX.\n",{"data":48,"body":49},{"name":4,"description":6},{"type":50,"children":51},"root",[52,60,83,90,433,439,564,569,575,580,703,716,722,727,738,881,886,892,983,989,1028],{"type":53,"tag":54,"props":55,"children":56},"element","h1",{"id":4},[57],{"type":58,"value":59},"text","MAUI AI Tool Bindings",{"type":53,"tag":61,"props":62,"children":63},"p",{},[64,66,73,75,81],{"type":58,"value":65},"Use this skill when a MAUI app needs AI-callable tools backed by app services,\nview models, or static utility methods. ",{"type":53,"tag":67,"props":68,"children":70},"code",{"className":69},[],[71],{"type":58,"value":72},"Microsoft.Maui.AI.Attributes",{"type":58,"value":74}," generates\n",{"type":53,"tag":67,"props":76,"children":78},{"className":77},[],[79],{"type":58,"value":80},"Microsoft.Extensions.AI",{"type":58,"value":82}," tools at compile time to avoid reflection-heavy\ninvocation paths.",{"type":53,"tag":84,"props":85,"children":87},"h2",{"id":86},"basic-workflow",[88],{"type":58,"value":89},"Basic Workflow",{"type":53,"tag":91,"props":92,"children":93},"ol",{},[94,143,274,316,343],{"type":53,"tag":95,"props":96,"children":97},"li",{},[98,100],{"type":58,"value":99},"Install the package:",{"type":53,"tag":101,"props":102,"children":107},"pre",{"className":103,"code":104,"language":105,"meta":106,"style":106},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","dotnet add package Microsoft.Maui.AI.Attributes --prerelease\n","bash","",[108],{"type":53,"tag":67,"props":109,"children":110},{"__ignoreMap":106},[111],{"type":53,"tag":112,"props":113,"children":116},"span",{"class":114,"line":115},"line",1,[117,122,128,133,138],{"type":53,"tag":112,"props":118,"children":120},{"style":119},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[121],{"type":58,"value":8},{"type":53,"tag":112,"props":123,"children":125},{"style":124},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[126],{"type":58,"value":127}," add",{"type":53,"tag":112,"props":129,"children":130},{"style":124},[131],{"type":58,"value":132}," package",{"type":53,"tag":112,"props":134,"children":135},{"style":124},[136],{"type":58,"value":137}," Microsoft.Maui.AI.Attributes",{"type":53,"tag":112,"props":139,"children":140},{"style":124},[141],{"type":58,"value":142}," --prerelease\n",{"type":53,"tag":95,"props":144,"children":145},{},[146,148],{"type":58,"value":147},"Annotate methods or property accessors:",{"type":53,"tag":101,"props":149,"children":153},{"className":150,"code":151,"language":152,"meta":106,"style":106},"language-csharp shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","using System.ComponentModel;\nusing Microsoft.Maui.AI.Attributes;\n\npublic sealed class PlantCatalogService\n{\n    [Description(\"Searches the plant catalog by name or category.\")]\n    [ExportAIFunction(\"search_plants\")]\n    public IReadOnlyList\u003CPlantInfo> SearchPlants(\n        [Description(\"Optional filter text\")] string? query = null)\n    {\n        return [];\n    }\n}\n","csharp",[154],{"type":53,"tag":67,"props":155,"children":156},{"__ignoreMap":106},[157,165,174,184,193,202,211,220,229,238,247,256,265],{"type":53,"tag":112,"props":158,"children":159},{"class":114,"line":115},[160],{"type":53,"tag":112,"props":161,"children":162},{},[163],{"type":58,"value":164},"using System.ComponentModel;\n",{"type":53,"tag":112,"props":166,"children":168},{"class":114,"line":167},2,[169],{"type":53,"tag":112,"props":170,"children":171},{},[172],{"type":58,"value":173},"using Microsoft.Maui.AI.Attributes;\n",{"type":53,"tag":112,"props":175,"children":177},{"class":114,"line":176},3,[178],{"type":53,"tag":112,"props":179,"children":181},{"emptyLinePlaceholder":180},true,[182],{"type":58,"value":183},"\n",{"type":53,"tag":112,"props":185,"children":187},{"class":114,"line":186},4,[188],{"type":53,"tag":112,"props":189,"children":190},{},[191],{"type":58,"value":192},"public sealed class PlantCatalogService\n",{"type":53,"tag":112,"props":194,"children":196},{"class":114,"line":195},5,[197],{"type":53,"tag":112,"props":198,"children":199},{},[200],{"type":58,"value":201},"{\n",{"type":53,"tag":112,"props":203,"children":205},{"class":114,"line":204},6,[206],{"type":53,"tag":112,"props":207,"children":208},{},[209],{"type":58,"value":210},"    [Description(\"Searches the plant catalog by name or category.\")]\n",{"type":53,"tag":112,"props":212,"children":214},{"class":114,"line":213},7,[215],{"type":53,"tag":112,"props":216,"children":217},{},[218],{"type":58,"value":219},"    [ExportAIFunction(\"search_plants\")]\n",{"type":53,"tag":112,"props":221,"children":223},{"class":114,"line":222},8,[224],{"type":53,"tag":112,"props":225,"children":226},{},[227],{"type":58,"value":228},"    public IReadOnlyList\u003CPlantInfo> SearchPlants(\n",{"type":53,"tag":112,"props":230,"children":232},{"class":114,"line":231},9,[233],{"type":53,"tag":112,"props":234,"children":235},{},[236],{"type":58,"value":237},"        [Description(\"Optional filter text\")] string? query = null)\n",{"type":53,"tag":112,"props":239,"children":241},{"class":114,"line":240},10,[242],{"type":53,"tag":112,"props":243,"children":244},{},[245],{"type":58,"value":246},"    {\n",{"type":53,"tag":112,"props":248,"children":250},{"class":114,"line":249},11,[251],{"type":53,"tag":112,"props":252,"children":253},{},[254],{"type":58,"value":255},"        return [];\n",{"type":53,"tag":112,"props":257,"children":259},{"class":114,"line":258},12,[260],{"type":53,"tag":112,"props":261,"children":262},{},[263],{"type":58,"value":264},"    }\n",{"type":53,"tag":112,"props":266,"children":268},{"class":114,"line":267},13,[269],{"type":53,"tag":112,"props":270,"children":271},{},[272],{"type":58,"value":273},"}\n",{"type":53,"tag":95,"props":275,"children":276},{},[277,279],{"type":58,"value":278},"Create a curated tool context:",{"type":53,"tag":101,"props":280,"children":282},{"className":150,"code":281,"language":152,"meta":106,"style":106},"[AIToolSource(typeof(PlantCatalogService))]\npublic partial class GardenTools : AIToolContext\n{\n}\n",[283],{"type":53,"tag":67,"props":284,"children":285},{"__ignoreMap":106},[286,294,302,309],{"type":53,"tag":112,"props":287,"children":288},{"class":114,"line":115},[289],{"type":53,"tag":112,"props":290,"children":291},{},[292],{"type":58,"value":293},"[AIToolSource(typeof(PlantCatalogService))]\n",{"type":53,"tag":112,"props":295,"children":296},{"class":114,"line":167},[297],{"type":53,"tag":112,"props":298,"children":299},{},[300],{"type":58,"value":301},"public partial class GardenTools : AIToolContext\n",{"type":53,"tag":112,"props":303,"children":304},{"class":114,"line":176},[305],{"type":53,"tag":112,"props":306,"children":307},{},[308],{"type":58,"value":201},{"type":53,"tag":112,"props":310,"children":311},{"class":114,"line":186},[312],{"type":53,"tag":112,"props":313,"children":314},{},[315],{"type":58,"value":273},{"type":53,"tag":95,"props":317,"children":318},{},[319,321,327,329],{"type":58,"value":320},"Register services normally in ",{"type":53,"tag":67,"props":322,"children":324},{"className":323},[],[325],{"type":58,"value":326},"MauiProgram.cs",{"type":58,"value":328},":",{"type":53,"tag":101,"props":330,"children":332},{"className":150,"code":331,"language":152,"meta":106,"style":106},"builder.Services.AddSingleton\u003CPlantCatalogService>();\n",[333],{"type":53,"tag":67,"props":334,"children":335},{"__ignoreMap":106},[336],{"type":53,"tag":112,"props":337,"children":338},{"class":114,"line":115},[339],{"type":53,"tag":112,"props":340,"children":341},{},[342],{"type":58,"value":331},{"type":53,"tag":95,"props":344,"children":345},{},[346,348,354,355],{"type":58,"value":347},"Pass generated tools into an ",{"type":53,"tag":67,"props":349,"children":351},{"className":350},[],[352],{"type":58,"value":353},"IChatClient",{"type":58,"value":328},{"type":53,"tag":101,"props":356,"children":358},{"className":150,"code":357,"language":152,"meta":106,"style":106},"var client = innerClient.AsBuilder()\n    .UseFunctionInvocation()\n    .ConfigureOptions(options =>\n    {\n        options.Tools ??= [];\n        foreach (var tool in GardenTools.Default.Tools)\n            options.Tools.Add(tool);\n    })\n    .Build(serviceProvider);\n",[359],{"type":53,"tag":67,"props":360,"children":361},{"__ignoreMap":106},[362,370,378,386,393,401,409,417,425],{"type":53,"tag":112,"props":363,"children":364},{"class":114,"line":115},[365],{"type":53,"tag":112,"props":366,"children":367},{},[368],{"type":58,"value":369},"var client = innerClient.AsBuilder()\n",{"type":53,"tag":112,"props":371,"children":372},{"class":114,"line":167},[373],{"type":53,"tag":112,"props":374,"children":375},{},[376],{"type":58,"value":377},"    .UseFunctionInvocation()\n",{"type":53,"tag":112,"props":379,"children":380},{"class":114,"line":176},[381],{"type":53,"tag":112,"props":382,"children":383},{},[384],{"type":58,"value":385},"    .ConfigureOptions(options =>\n",{"type":53,"tag":112,"props":387,"children":388},{"class":114,"line":186},[389],{"type":53,"tag":112,"props":390,"children":391},{},[392],{"type":58,"value":246},{"type":53,"tag":112,"props":394,"children":395},{"class":114,"line":195},[396],{"type":53,"tag":112,"props":397,"children":398},{},[399],{"type":58,"value":400},"        options.Tools ??= [];\n",{"type":53,"tag":112,"props":402,"children":403},{"class":114,"line":204},[404],{"type":53,"tag":112,"props":405,"children":406},{},[407],{"type":58,"value":408},"        foreach (var tool in GardenTools.Default.Tools)\n",{"type":53,"tag":112,"props":410,"children":411},{"class":114,"line":213},[412],{"type":53,"tag":112,"props":413,"children":414},{},[415],{"type":58,"value":416},"            options.Tools.Add(tool);\n",{"type":53,"tag":112,"props":418,"children":419},{"class":114,"line":222},[420],{"type":53,"tag":112,"props":421,"children":422},{},[423],{"type":58,"value":424},"    })\n",{"type":53,"tag":112,"props":426,"children":427},{"class":114,"line":231},[428],{"type":53,"tag":112,"props":429,"children":430},{},[431],{"type":58,"value":432},"    .Build(serviceProvider);\n",{"type":53,"tag":84,"props":434,"children":436},{"id":435},"tool-context-choices",[437],{"type":58,"value":438},"Tool Context Choices",{"type":53,"tag":440,"props":441,"children":442},"table",{},[443,462],{"type":53,"tag":444,"props":445,"children":446},"thead",{},[447],{"type":53,"tag":448,"props":449,"children":450},"tr",{},[451,457],{"type":53,"tag":452,"props":453,"children":454},"th",{},[455],{"type":58,"value":456},"Need",{"type":53,"tag":452,"props":458,"children":459},{},[460],{"type":58,"value":461},"Pattern",{"type":53,"tag":463,"props":464,"children":465},"tbody",{},[466,494,513,530,551],{"type":53,"tag":448,"props":467,"children":468},{},[469,475],{"type":53,"tag":470,"props":471,"children":472},"td",{},[473],{"type":58,"value":474},"Curated feature-specific tools",{"type":53,"tag":470,"props":476,"children":477},{},[478,480,486,488],{"type":58,"value":479},"Explicit partial ",{"type":53,"tag":67,"props":481,"children":483},{"className":482},[],[484],{"type":58,"value":485},"AIToolContext",{"type":58,"value":487}," with ",{"type":53,"tag":67,"props":489,"children":491},{"className":490},[],[492],{"type":58,"value":493},"[AIToolSource]",{"type":53,"tag":448,"props":495,"children":496},{},[497,502],{"type":53,"tag":470,"props":498,"children":499},{},[500],{"type":58,"value":501},"Small prototype exposing all exported tools",{"type":53,"tag":470,"props":503,"children":504},{},[505,507],{"type":58,"value":506},"Assembly-wide ",{"type":53,"tag":67,"props":508,"children":510},{"className":509},[],[511],{"type":58,"value":512},"\u003CAssemblyName>ToolContext.Default.Tools",{"type":53,"tag":448,"props":514,"children":515},{},[516,521],{"type":53,"tag":470,"props":517,"children":518},{},[519],{"type":58,"value":520},"Sensitive mutation",{"type":53,"tag":470,"props":522,"children":523},{},[524],{"type":53,"tag":67,"props":525,"children":527},{"className":526},[],[528],{"type":58,"value":529},"[ExportAIFunction(ApprovalRequired = true)]",{"type":53,"tag":448,"props":531,"children":532},{},[533,538],{"type":53,"tag":470,"props":534,"children":535},{},[536],{"type":58,"value":537},"Static utility tool",{"type":53,"tag":470,"props":539,"children":540},{},[541,543,549],{"type":58,"value":542},"Static ",{"type":53,"tag":67,"props":544,"children":546},{"className":545},[],[547],{"type":58,"value":548},"[ExportAIFunction]",{"type":58,"value":550}," method",{"type":53,"tag":448,"props":552,"children":553},{},[554,559],{"type":53,"tag":470,"props":555,"children":556},{},[557],{"type":58,"value":558},"Service-backed tool",{"type":53,"tag":470,"props":560,"children":561},{},[562],{"type":58,"value":563},"Instance method on a DI-registered service",{"type":53,"tag":61,"props":565,"children":566},{},[567],{"type":58,"value":568},"Prefer explicit contexts for production features so tool names and scope stay\nstable.",{"type":53,"tag":84,"props":570,"children":572},{"id":571},"di-parameter-binding",[573],{"type":58,"value":574},"DI Parameter Binding",{"type":53,"tag":61,"props":576,"children":577},{},[578],{"type":58,"value":579},"The generator classifies parameters at compile time:",{"type":53,"tag":440,"props":581,"children":582},{},[583,599],{"type":53,"tag":444,"props":584,"children":585},{},[586],{"type":53,"tag":448,"props":587,"children":588},{},[589,594],{"type":53,"tag":452,"props":590,"children":591},{},[592],{"type":58,"value":593},"Parameter",{"type":53,"tag":452,"props":595,"children":596},{},[597],{"type":58,"value":598},"Binding",{"type":53,"tag":463,"props":600,"children":601},{},[602,631,648,669,686],{"type":53,"tag":448,"props":603,"children":604},{},[605,626],{"type":53,"tag":470,"props":606,"children":607},{},[608,610,616,618,624],{"type":58,"value":609},"Plain ",{"type":53,"tag":67,"props":611,"children":613},{"className":612},[],[614],{"type":58,"value":615},"string",{"type":58,"value":617},", ",{"type":53,"tag":67,"props":619,"children":621},{"className":620},[],[622],{"type":58,"value":623},"int",{"type":58,"value":625},", records, enums",{"type":53,"tag":470,"props":627,"children":628},{},[629],{"type":58,"value":630},"JSON argument in the tool schema",{"type":53,"tag":448,"props":632,"children":633},{},[634,643],{"type":53,"tag":470,"props":635,"children":636},{},[637],{"type":53,"tag":67,"props":638,"children":640},{"className":639},[],[641],{"type":58,"value":642},"CancellationToken",{"type":53,"tag":470,"props":644,"children":645},{},[646],{"type":58,"value":647},"Function invocation cancellation token",{"type":53,"tag":448,"props":649,"children":650},{},[651,660],{"type":53,"tag":470,"props":652,"children":653},{},[654],{"type":53,"tag":67,"props":655,"children":657},{"className":656},[],[658],{"type":58,"value":659},"IServiceProvider",{"type":53,"tag":470,"props":661,"children":662},{},[663],{"type":53,"tag":67,"props":664,"children":666},{"className":665},[],[667],{"type":58,"value":668},"AIFunctionArguments.Services",{"type":53,"tag":448,"props":670,"children":671},{},[672,681],{"type":53,"tag":470,"props":673,"children":674},{},[675],{"type":53,"tag":67,"props":676,"children":678},{"className":677},[],[679],{"type":58,"value":680},"[FromServices] IMyService service",{"type":53,"tag":470,"props":682,"children":683},{},[684],{"type":58,"value":685},"Resolved from the provider, excluded from schema",{"type":53,"tag":448,"props":687,"children":688},{},[689,698],{"type":53,"tag":470,"props":690,"children":691},{},[692],{"type":53,"tag":67,"props":693,"children":695},{"className":694},[],[696],{"type":58,"value":697},"[FromKeyedServices(\"key\")] IMyService service",{"type":53,"tag":470,"props":699,"children":700},{},[701],{"type":58,"value":702},"Resolved from keyed DI, excluded from schema",{"type":53,"tag":61,"props":704,"children":705},{},[706,708,714],{"type":58,"value":707},"For instance methods, the host service itself is resolved from the provider. If\nthe provider is missing, generated tools throw a clear ",{"type":53,"tag":67,"props":709,"children":711},{"className":710},[],[712],{"type":58,"value":713},"InvalidOperationException",{"type":58,"value":715},"\ninstead of returning fake success.",{"type":53,"tag":84,"props":717,"children":719},{"id":718},"scope-and-lifetime",[720],{"type":58,"value":721},"Scope and Lifetime",{"type":53,"tag":61,"props":723,"children":724},{},[725],{"type":58,"value":726},"The library does not create DI scopes. Keep the scope alive for as long as the\nchat session can invoke tools, then dispose it when the session ends:",{"type":53,"tag":61,"props":728,"children":729},{},[730,736],{"type":53,"tag":67,"props":731,"children":733},{"className":732},[],[734],{"type":58,"value":735},"AdditionalTools",{"type":58,"value":737}," on the invocation middleware injects tools into every request\nautomatically, which is idiomatic for a session-scoped tool set.",{"type":53,"tag":101,"props":739,"children":741},{"className":150,"code":740,"language":152,"meta":106,"style":106},"private IServiceScope? _sessionScope;\nprivate IChatClient? _sessionClient;\n\nif (_sessionClient is IAsyncDisposable asyncDisposable)\n    await asyncDisposable.DisposeAsync();\nelse\n    _sessionClient?.Dispose();\n\n_sessionScope?.Dispose();\n_sessionScope = serviceScopeFactory.CreateScope(); \u002F\u002F Inject IServiceScopeFactory.\n\n_sessionClient = innerClient.AsBuilder()\n    .UseFunctionInvocation(configure: invocation =>\n        invocation.AdditionalTools = [.. GardenTools.Default.Tools])\n    .Build(_sessionScope.ServiceProvider);\n\n\u002F\u002F Also dispose _sessionClient and _sessionScope when the chat session or view model ends.\n",[742],{"type":53,"tag":67,"props":743,"children":744},{"__ignoreMap":106},[745,753,761,768,776,784,792,800,807,815,823,830,838,846,855,864,872],{"type":53,"tag":112,"props":746,"children":747},{"class":114,"line":115},[748],{"type":53,"tag":112,"props":749,"children":750},{},[751],{"type":58,"value":752},"private IServiceScope? _sessionScope;\n",{"type":53,"tag":112,"props":754,"children":755},{"class":114,"line":167},[756],{"type":53,"tag":112,"props":757,"children":758},{},[759],{"type":58,"value":760},"private IChatClient? _sessionClient;\n",{"type":53,"tag":112,"props":762,"children":763},{"class":114,"line":176},[764],{"type":53,"tag":112,"props":765,"children":766},{"emptyLinePlaceholder":180},[767],{"type":58,"value":183},{"type":53,"tag":112,"props":769,"children":770},{"class":114,"line":186},[771],{"type":53,"tag":112,"props":772,"children":773},{},[774],{"type":58,"value":775},"if (_sessionClient is IAsyncDisposable asyncDisposable)\n",{"type":53,"tag":112,"props":777,"children":778},{"class":114,"line":195},[779],{"type":53,"tag":112,"props":780,"children":781},{},[782],{"type":58,"value":783},"    await asyncDisposable.DisposeAsync();\n",{"type":53,"tag":112,"props":785,"children":786},{"class":114,"line":204},[787],{"type":53,"tag":112,"props":788,"children":789},{},[790],{"type":58,"value":791},"else\n",{"type":53,"tag":112,"props":793,"children":794},{"class":114,"line":213},[795],{"type":53,"tag":112,"props":796,"children":797},{},[798],{"type":58,"value":799},"    _sessionClient?.Dispose();\n",{"type":53,"tag":112,"props":801,"children":802},{"class":114,"line":222},[803],{"type":53,"tag":112,"props":804,"children":805},{"emptyLinePlaceholder":180},[806],{"type":58,"value":183},{"type":53,"tag":112,"props":808,"children":809},{"class":114,"line":231},[810],{"type":53,"tag":112,"props":811,"children":812},{},[813],{"type":58,"value":814},"_sessionScope?.Dispose();\n",{"type":53,"tag":112,"props":816,"children":817},{"class":114,"line":240},[818],{"type":53,"tag":112,"props":819,"children":820},{},[821],{"type":58,"value":822},"_sessionScope = serviceScopeFactory.CreateScope(); \u002F\u002F Inject IServiceScopeFactory.\n",{"type":53,"tag":112,"props":824,"children":825},{"class":114,"line":249},[826],{"type":53,"tag":112,"props":827,"children":828},{"emptyLinePlaceholder":180},[829],{"type":58,"value":183},{"type":53,"tag":112,"props":831,"children":832},{"class":114,"line":258},[833],{"type":53,"tag":112,"props":834,"children":835},{},[836],{"type":58,"value":837},"_sessionClient = innerClient.AsBuilder()\n",{"type":53,"tag":112,"props":839,"children":840},{"class":114,"line":267},[841],{"type":53,"tag":112,"props":842,"children":843},{},[844],{"type":58,"value":845},"    .UseFunctionInvocation(configure: invocation =>\n",{"type":53,"tag":112,"props":847,"children":849},{"class":114,"line":848},14,[850],{"type":53,"tag":112,"props":851,"children":852},{},[853],{"type":58,"value":854},"        invocation.AdditionalTools = [.. GardenTools.Default.Tools])\n",{"type":53,"tag":112,"props":856,"children":858},{"class":114,"line":857},15,[859],{"type":53,"tag":112,"props":860,"children":861},{},[862],{"type":58,"value":863},"    .Build(_sessionScope.ServiceProvider);\n",{"type":53,"tag":112,"props":865,"children":867},{"class":114,"line":866},16,[868],{"type":53,"tag":112,"props":869,"children":870},{"emptyLinePlaceholder":180},[871],{"type":58,"value":183},{"type":53,"tag":112,"props":873,"children":875},{"class":114,"line":874},17,[876],{"type":53,"tag":112,"props":877,"children":878},{},[879],{"type":58,"value":880},"\u002F\u002F Also dispose _sessionClient and _sessionScope when the chat session or view model ends.\n",{"type":53,"tag":61,"props":882,"children":883},{},[884],{"type":58,"value":885},"Use a per-chat-session scope when tools hold conversational state.",{"type":53,"tag":84,"props":887,"children":889},{"id":888},"aot-and-analyzer-guardrails",[890],{"type":58,"value":891},"AOT and Analyzer Guardrails",{"type":53,"tag":893,"props":894,"children":895},"ul",{},[896,901,914,942,955],{"type":53,"tag":95,"props":897,"children":898},{},[899],{"type":58,"value":900},"Use declared methods on declared types. Lambdas, local functions, and dynamic\nmethods are not source-generated tools.",{"type":53,"tag":95,"props":902,"children":903},{},[904,906,912],{"type":58,"value":905},"Add ",{"type":53,"tag":67,"props":907,"children":909},{"className":908},[],[910],{"type":58,"value":911},"[Description]",{"type":58,"value":913}," to tools and user-visible parameters.",{"type":53,"tag":95,"props":915,"children":916},{},[917,919,925,927,933,934,940],{"type":58,"value":918},"Avoid generic methods, ",{"type":53,"tag":67,"props":920,"children":922},{"className":921},[],[923],{"type":58,"value":924},"ref",{"type":58,"value":926},"\u002F",{"type":53,"tag":67,"props":928,"children":930},{"className":929},[],[931],{"type":58,"value":932},"out",{"type":58,"value":926},{"type":53,"tag":67,"props":935,"children":937},{"className":936},[],[938],{"type":58,"value":939},"in",{"type":58,"value":941}," parameters, delegates, pointers, and\nshapes that cannot round-trip through JSON.",{"type":53,"tag":95,"props":943,"children":944},{},[945,947,953],{"type":58,"value":946},"Materialize ",{"type":53,"tag":67,"props":948,"children":950},{"className":949},[],[951],{"type":58,"value":952},"IAsyncEnumerable\u003CT>",{"type":58,"value":954}," results to arrays\u002Flists if the consumer\nexpects JSON array output.",{"type":53,"tag":95,"props":956,"children":957},{},[958,960,966,967,973,975,981],{"type":58,"value":959},"Watch diagnostics such as ",{"type":53,"tag":67,"props":961,"children":963},{"className":962},[],[964],{"type":58,"value":965},"MAUIAI002",{"type":58,"value":617},{"type":53,"tag":67,"props":968,"children":970},{"className":969},[],[971],{"type":58,"value":972},"MAUIAI003",{"type":58,"value":974},", and ",{"type":53,"tag":67,"props":976,"children":978},{"className":977},[],[979],{"type":58,"value":980},"MAUIAI004",{"type":58,"value":982},".",{"type":53,"tag":84,"props":984,"children":986},{"id":985},"validation-checklist",[987],{"type":58,"value":988},"Validation Checklist",{"type":53,"tag":893,"props":990,"children":991},{},[992,997,1002,1007,1018,1023],{"type":53,"tag":95,"props":993,"children":994},{},[995],{"type":58,"value":996},"Tool names are stable and safe for the assistant to call.",{"type":53,"tag":95,"props":998,"children":999},{},[1000],{"type":58,"value":1001},"Sensitive tools require approval.",{"type":53,"tag":95,"props":1003,"children":1004},{},[1005],{"type":58,"value":1006},"DI services used by tools are registered with the intended lifetime.",{"type":53,"tag":95,"props":1008,"children":1009},{},[1010,1016],{"type":53,"tag":67,"props":1011,"children":1013},{"className":1012},[],[1014],{"type":58,"value":1015},"UseFunctionInvocation().Build(serviceProvider)",{"type":58,"value":1017}," flows a provider to tool\ninvocations.",{"type":53,"tag":95,"props":1019,"children":1020},{},[1021],{"type":58,"value":1022},"The app builds so the generator emits the context and diagnostics.",{"type":53,"tag":95,"props":1024,"children":1025},{},[1026],{"type":58,"value":1027},"Tool output is deterministic enough for the app's AI UX.",{"type":53,"tag":1029,"props":1030,"children":1031},"style",{},[1032],{"type":58,"value":1033},"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":1035,"total":1141},[1036,1054,1067,1081,1097,1114,1130],{"slug":1037,"name":1037,"fn":1038,"description":1039,"org":1040,"tags":1041,"stars":25,"repoUrl":26,"updatedAt":1053},"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},[1042,1043,1045,1048,1051],{"name":20,"slug":21,"type":15},{"name":1044,"slug":32,"type":15},"Android",{"name":1046,"slug":1047,"type":15},"Java","java",{"name":1049,"slug":1050,"type":15},"Kotlin","kotlin",{"name":1052,"slug":38,"type":15},"Mobile","2026-07-12T08:22:54.006105",{"slug":1055,"name":1055,"fn":1056,"description":1057,"org":1058,"tags":1059,"stars":25,"repoUrl":26,"updatedAt":1066},"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},[1060,1061,1064,1065],{"name":20,"slug":21,"type":15},{"name":1062,"slug":1063,"type":15},"Automation","automation",{"name":17,"slug":18,"type":15},{"name":1052,"slug":38,"type":15},"2026-07-12T08:22:56.616564",{"slug":1068,"name":1068,"fn":1069,"description":1070,"org":1071,"tags":1072,"stars":25,"repoUrl":26,"updatedAt":1080},"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},[1073,1076,1077],{"name":1074,"slug":1075,"type":15},"Debugging","debugging",{"name":17,"slug":18,"type":15},{"name":1078,"slug":1079,"type":15},"Networking","networking","2026-07-12T08:22:48.847431",{"slug":1082,"name":1082,"fn":1083,"description":1084,"org":1085,"tags":1086,"stars":25,"repoUrl":26,"updatedAt":1096},"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},[1087,1089,1092,1095],{"name":1088,"slug":152,"type":15},"C#",{"name":1090,"slug":1091,"type":15},"CLI","cli",{"name":1093,"slug":1094,"type":15},"Engineering","engineering",{"name":17,"slug":18,"type":15},"2026-07-12T08:22:46.318953",{"slug":1098,"name":1098,"fn":1099,"description":1100,"org":1101,"tags":1102,"stars":25,"repoUrl":26,"updatedAt":1113},"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},[1103,1104,1106,1107,1110],{"name":20,"slug":21,"type":15},{"name":1105,"slug":34,"type":15},"iOS",{"name":17,"slug":18,"type":15},{"name":1108,"slug":1109,"type":15},"Swift","swift",{"name":1111,"slug":1112,"type":15},"Xcode","xcode","2026-07-12T08:22:50.128667",{"slug":1115,"name":1115,"fn":1116,"description":1117,"org":1118,"tags":1119,"stars":25,"repoUrl":26,"updatedAt":1129},"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},[1120,1121,1124,1125,1126],{"name":20,"slug":21,"type":15},{"name":1122,"slug":1123,"type":15},"Accessibility","accessibility",{"name":17,"slug":18,"type":15},{"name":1052,"slug":38,"type":15},{"name":1127,"slug":1128,"type":15},"WCAG","wcag","2026-07-12T08:22:17.823583",{"slug":1131,"name":1131,"fn":1132,"description":1133,"org":1134,"tags":1135,"stars":25,"repoUrl":26,"updatedAt":1140},"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},[1136,1137,1138,1139],{"name":20,"slug":21,"type":15},{"name":1074,"slug":1075,"type":15},{"name":17,"slug":18,"type":15},{"name":1052,"slug":38,"type":15},"2026-07-12T08:22:52.634889",32,{"items":1143,"total":1299},[1144,1158,1173,1185,1201,1215,1233,1243,1255,1265,1278,1289],{"slug":1145,"name":1145,"fn":1146,"description":1147,"org":1148,"tags":1149,"stars":1155,"repoUrl":1156,"updatedAt":1157},"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},[1150,1151,1152],{"name":20,"slug":21,"type":15},{"name":1093,"slug":1094,"type":15},{"name":1153,"slug":1154,"type":15},"Performance","performance",5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":1159,"name":1159,"fn":1160,"description":1161,"org":1162,"tags":1163,"stars":1170,"repoUrl":1171,"updatedAt":1172},"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},[1164,1165,1168,1169],{"name":20,"slug":21,"type":15},{"name":1166,"slug":1167,"type":15},"Code Analysis","code-analysis",{"name":1074,"slug":1075,"type":15},{"name":1153,"slug":1154,"type":15},4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-12T08:23:25.400375",{"slug":1174,"name":1174,"fn":1175,"description":1176,"org":1177,"tags":1178,"stars":1170,"repoUrl":1171,"updatedAt":1184},"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},[1179,1180,1181,1182],{"name":20,"slug":21,"type":15},{"name":1044,"slug":32,"type":15},{"name":1074,"slug":1075,"type":15},{"name":1183,"slug":37,"type":15},"Microsoft","2026-07-12T08:23:21.595572",{"slug":1186,"name":1186,"fn":1187,"description":1188,"org":1189,"tags":1190,"stars":1170,"repoUrl":1171,"updatedAt":1200},"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},[1191,1192,1193,1194,1197],{"name":20,"slug":21,"type":15},{"name":1074,"slug":1075,"type":15},{"name":1105,"slug":34,"type":15},{"name":1195,"slug":1196,"type":15},"macOS","macos",{"name":1198,"slug":1199,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":1202,"name":1202,"fn":1203,"description":1204,"org":1205,"tags":1206,"stars":1170,"repoUrl":1171,"updatedAt":1214},"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},[1207,1208,1211],{"name":1166,"slug":1167,"type":15},{"name":1209,"slug":1210,"type":15},"QA","qa",{"name":1212,"slug":1213,"type":15},"Testing","testing","2026-07-12T08:23:51.277743",{"slug":1216,"name":1216,"fn":1217,"description":1218,"org":1219,"tags":1220,"stars":1170,"repoUrl":1171,"updatedAt":1232},"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},[1221,1222,1225,1226,1229],{"name":20,"slug":21,"type":15},{"name":1223,"slug":1224,"type":15},"Blazor","blazor",{"name":1088,"slug":152,"type":15},{"name":1227,"slug":1228,"type":15},"UI Components","ui-components",{"name":1230,"slug":1231,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":1234,"name":1234,"fn":1235,"description":1236,"org":1237,"tags":1238,"stars":1170,"repoUrl":1171,"updatedAt":1242},"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},[1239,1240,1241],{"name":1166,"slug":1167,"type":15},{"name":1074,"slug":1075,"type":15},{"name":1183,"slug":37,"type":15},"2026-07-12T08:21:34.637923",{"slug":1244,"name":1244,"fn":1245,"description":1246,"org":1247,"tags":1248,"stars":1170,"repoUrl":1171,"updatedAt":1254},"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},[1249,1252,1253],{"name":1250,"slug":1251,"type":15},"Build","build",{"name":1074,"slug":1075,"type":15},{"name":1093,"slug":1094,"type":15},"2026-07-19T05:38:19.340791",{"slug":1256,"name":1256,"fn":1257,"description":1258,"org":1259,"tags":1260,"stars":1170,"repoUrl":1171,"updatedAt":1264},"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},[1261,1262,1263],{"name":20,"slug":21,"type":15},{"name":1093,"slug":1094,"type":15},{"name":1153,"slug":1154,"type":15},"2026-07-19T05:38:18.364937",{"slug":1266,"name":1266,"fn":1267,"description":1268,"org":1269,"tags":1270,"stars":1170,"repoUrl":1171,"updatedAt":1277},"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},[1271,1272,1275,1276],{"name":1093,"slug":1094,"type":15},{"name":1273,"slug":1274,"type":15},"Monitoring","monitoring",{"name":1153,"slug":1154,"type":15},{"name":1212,"slug":1213,"type":15},"2026-07-12T08:21:35.865649",{"slug":1279,"name":1279,"fn":1280,"description":1281,"org":1282,"tags":1283,"stars":1170,"repoUrl":1171,"updatedAt":1288},"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},[1284,1285,1286,1287],{"name":20,"slug":21,"type":15},{"name":1074,"slug":1075,"type":15},{"name":1093,"slug":1094,"type":15},{"name":1153,"slug":1154,"type":15},"2026-07-12T08:21:40.961722",{"slug":1290,"name":1290,"fn":1291,"description":1292,"org":1293,"tags":1294,"stars":1170,"repoUrl":1171,"updatedAt":1298},"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},[1295,1296,1297],{"name":1074,"slug":1075,"type":15},{"name":1093,"slug":1094,"type":15},{"name":1209,"slug":1210,"type":15},"2026-07-19T05:38:14.336279",144]