[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADWD29GA1F5CWPBKS2DED7":3,"skill-same:01M6ADWD29GA1F5CWPBKS2DED7":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":53,"linkOnly":54,"markdownContent":55,"markdownBody":56,"frontMatter":57,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6ADWD29GA1F5CWPBKS2DED7","mvvm-toolkit-di","MVVM Toolkit 依赖注入集成","Wire CommunityToolkit.Mvvm ViewModels into Microsoft.Extensions.DependencyInjection. Covers the .NET Generic Host composition root, constructor injection, service lifetimes (Singleton \u002F Transient \u002F Scoped), IMessenger registration, resolving ViewModels in Views, keyed services, testing seams, and the legacy Ioc.Default escape hatch. Use across WPF, WinUI 3, .NET MAUI, Uno, and Avalonia.","将 CommunityToolkit.Mvvm 的 ViewModel 接入 Microsoft.Extensions.DependencyInjection。涵盖 .NET Generic Host 组合根、构造函数注入、服务生命周期（Singleton \u002F Transient \u002F Scoped）、IMessenger 注册、在 View 中解析 ViewModel、键控服务、测试接缝，以及遗留的 Ioc.Default 应急通道。适用于 WPF、WinUI 3、.NET MAUI、Uno 和 Avalonia。","github\u002Fawesome-copilot","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3PBDYPK7NVFJNJ66Y8RS",41162,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fmvvm-toolkit-di\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],"mvvm","di","mvvm toolkit","mvvm toolkit di","toolkit","default","microsoft","generic","singleton","scoped","avalonia","host","hatch","registration","wpf","Legacy","testing","use","Composition","winui","ioc","services","2026-11-10 10:12:30",false,"---\nname: mvvm-toolkit-di\ndescription: 'Wire CommunityToolkit.Mvvm ViewModels into Microsoft.Extensions.DependencyInjection. Covers the .NET Generic Host composition root, constructor injection, service lifetimes (Singleton \u002F Transient \u002F Scoped), IMessenger registration, resolving ViewModels in Views, keyed services, testing seams, and the legacy Ioc.Default escape hatch. Use across WPF, WinUI 3, .NET MAUI, Uno, and Avalonia.'\n---\n\n# CommunityToolkit.Mvvm + `Microsoft.Extensions.DependencyInjection`\n\nThe MVVM Toolkit deliberately ships **no DI container** — it composes with\n`Microsoft.Extensions.DependencyInjection`, the same container ASP.NET\nCore, Worker services, and the .NET Generic Host use.\n\n> **TL;DR.** Build the service provider once at startup (prefer\n> `Host.CreateDefaultBuilder()`). Register services and ViewModels.\n> Inject through constructors. Avoid `Ioc.Default.GetService\u003CT>()`\n> in user code.\n\n---\n\n## When to use this skill\n\n- Standing up the composition root for a new XAML app (WPF, WinUI 3,\n  MAUI, Uno, Avalonia)\n- Choosing service\u002FVM lifetimes\n- Wiring `IMessenger` once and injecting it into `ObservableRecipient`\n  ViewModels\n- Resolving a page's ViewModel without coupling to a service locator\n- Diagnosing \"Unable to resolve service for type X while attempting to\n  activate Y\"\n\nFor source generators and ViewModel patterns see the **`mvvm-toolkit`**\nskill. For Messenger pub\u002Fsub see **`mvvm-toolkit-messenger`**.\n\n---\n\n## Recommended composition root (Generic Host)\n\n```csharp\nusing Microsoft.Extensions.DependencyInjection;\nusing Microsoft.Extensions.Hosting;\nusing CommunityToolkit.Mvvm.Messaging;\n\npublic partial class App : Application\n{\n    public IHost Host { get; }\n\n    public App()\n    {\n        Host = Microsoft.Extensions.Hosting.Host\n            .CreateDefaultBuilder()\n            .ConfigureServices((_, services) =>\n            {\n                services.AddSingleton\u003CIFilesService, FilesService>();\n                services.AddSingleton\u003CISettingsService, SettingsService>();\n                services.AddSingleton\u003CIMessenger>(WeakReferenceMessenger.Default);\n\n                services.AddSingleton\u003CShellViewModel>();\n                services.AddTransient\u003CContactViewModel>();\n                services.AddTransient\u003CEditorViewModel>();\n            })\n            .Build();\n    }\n\n    public static T GetService\u003CT>() where T : class =>\n        ((App)Current).Host.Services.GetRequiredService\u003CT>();\n}\n```\n\nGeneric Host benefits:\n\n- `appsettings.json` binding via `Microsoft.Extensions.Configuration`\n- Logging via `Microsoft.Extensions.Logging`\n- Hosted services (`IHostedService`) for background work\n- Scope validation in development builds\n\n> WPF and Windows Forms must integrate the host lifetime with the app\n> lifetime — see\n> [Use the .NET Generic Host in a WPF app](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fdesktop\u002Fwpf\u002Fapp-development\u002Fhow-to-use-host-builder).\n\n### Without Generic Host\n\nWhen you only need a service container and want zero extra dependencies:\n\n```csharp\nvar services = new ServiceCollection();\nservices.AddSingleton\u003CIFilesService, FilesService>();\nservices.AddTransient\u003CContactViewModel>();\nServiceProvider provider = services.BuildServiceProvider();\n```\n\n---\n\n## Constructor injection\n\nInject services and child ViewModels through the constructor:\n\n```csharp\npublic sealed partial class ContactViewModel(\n    IFilesService files,\n    IMessenger messenger,\n    ILogger\u003CContactViewModel> logger)\n    : ObservableRecipient(messenger)\n{\n    [ObservableProperty]\n    private string? name;\n\n    [RelayCommand]\n    private async Task SaveAsync()\n    {\n        logger.LogInformation(\"Saving {Name}\", Name);\n        await files.SaveAsync(Name!);\n    }\n}\n```\n\nWhy constructor injection beats a service locator:\n\n- Dependencies are explicit and visible at the call site\n- Unit tests inject fakes\u002Fmocks directly\n- The DI container validates the dependency graph at startup\n- Missing registrations throw immediately, not at first use\n\n---\n\n## Lifetimes\n\n| Lifetime | Method | Typical use in XAML apps |\n|----------|--------|--------------------------|\n| Singleton | `AddSingleton\u003CT>` | Shell\u002Fmain-window VM, settings, file\u002FHTTP services, the shared `IMessenger`, app-wide caches |\n| Transient | `AddTransient\u003CT>` | Per-page or per-document ViewModels (a fresh instance every resolve) |\n| Scoped | `AddScoped\u003CT>` | Rarely needed in client apps; useful with explicit `IServiceScope` (e.g., per-window scopes) |\n\n```csharp\nservices.AddSingleton\u003CShellViewModel>();   \u002F\u002F 1 instance for app lifetime\nservices.AddTransient\u003CNoteViewModel>();    \u002F\u002F new instance per resolve\nservices.AddScoped\u003CDialogService>();       \u002F\u002F 1 per scope (rare)\n```\n\n---\n\n## Resolving in a View\n\nResolve the page's root ViewModel in code-behind, then let it pull its\nown dependencies:\n\n```csharp\npublic sealed partial class ContactPage : Page\n{\n    public ContactViewModel ViewModel { get; }\n\n    public ContactPage()\n    {\n        ViewModel = App.GetService\u003CContactViewModel>();\n        InitializeComponent();\n    }\n}\n```\n\nBind in XAML with `{x:Bind ViewModel.Xxx}` (compiled bindings) or\n`{Binding Xxx}` against `DataContext`.\n\nFor navigation frameworks (WinUI 3 `Frame.Navigate`, MAUI Shell, Prism,\nMVVMCross), let the framework resolve the page and the page resolves its\nViewModel from DI. Don't `new` ViewModels manually.\n\n---\n\n## `IMessenger` registration\n\nRegister the messenger you want once, inject `IMessenger` everywhere:\n\n```csharp\nservices.AddSingleton\u003CIMessenger>(WeakReferenceMessenger.Default);\n\u002F\u002F or\nservices.AddSingleton\u003CIMessenger>(StrongReferenceMessenger.Default);\n```\n\nThen:\n\n```csharp\npublic sealed partial class MyViewModel(IMessenger messenger)\n    : ObservableRecipient(messenger) { }\n```\n\nFor per-window messengers, register with keyed services or as scoped\ninstances and inject into per-window ViewModels.\n\nSee the **`mvvm-toolkit-messenger`** skill for the messenger surface area.\n\n---\n\n## Keyed services (.NET 8+)\n\nResolve different implementations of the same interface by key:\n\n```csharp\nservices.AddKeyedSingleton\u003CIExporter, CsvExporter>(\"csv\");\nservices.AddKeyedSingleton\u003CIExporter, JsonExporter>(\"json\");\n\npublic sealed partial class ExportViewModel(\n    [FromKeyedServices(\"csv\")] IExporter csvExporter,\n    [FromKeyedServices(\"json\")] IExporter jsonExporter)\n    : ObservableObject { \u002F* ... *\u002F }\n```\n\n---\n\n## Testing seams\n\nConstructor-injected dependencies are trivial to swap in tests. With\n`Moq`:\n\n```csharp\n[Fact]\npublic async Task Save_calls_files_service()\n{\n    var files = new Mock\u003CIFilesService>();\n    var messenger = new WeakReferenceMessenger();\n    var logger = NullLogger\u003CContactViewModel>.Instance;\n\n    var vm = new ContactViewModel(files.Object, messenger, logger)\n    {\n        Name = \"Ada\"\n    };\n\n    await vm.SaveCommand.ExecuteAsync(null);\n\n    files.Verify(f => f.SaveAsync(\"Ada\"), Times.Once);\n}\n```\n\nIf you're mocking `Ioc.Default` or static state, the ViewModel is using a\nservice locator — refactor to constructor injection.\n\n---\n\n## Legacy: `Ioc.Default`\n\n`CommunityToolkit.Mvvm.DependencyInjection.Ioc` is an escape hatch for\ncases where constructor injection is impossible — XAML-instantiated VMs\nfor design-time data, `ValueConverter`s, control templates.\n\n```csharp\nIoc.Default.ConfigureServices(\n    new ServiceCollection()\n        .AddSingleton\u003CIFilesService, FilesService>()\n        .AddTransient\u003CContactViewModel>()\n        .BuildServiceProvider());\n\nvar files = Ioc.Default.GetRequiredService\u003CIFilesService>();\n```\n\nTreat it as the last resort. Inside ViewModels, services, and any class\nthe DI container can construct, prefer constructor injection.\n\n---\n\n## Common pitfalls\n\n1. **`Ioc.Default.GetService\u003CT>()` inside a VM constructor.** Hides the\n   dependency, breaks unit tests, prevents startup graph validation.\n2. **Everything `Singleton`.** A \"per-document\" VM registered as singleton\n   becomes shared state across all documents — subtle data corruption.\n   Use `AddTransient` for per-instance VMs.\n3. **Multiple `BuildServiceProvider()` calls.** Each call is a fresh\n   container — singletons aren't shared. Build once at startup.\n4. **Capturing `IServiceProvider` in long-lived objects.** Indicates a\n   service-locator pattern. Inject the specific dependencies you need.\n5. **No scope validation in development.** Use `Host.CreateDefaultBuilder()`\n   (which sets `ValidateScopes` and `ValidateOnBuild` in development) so\n   registration mistakes fail at startup, not at first use.\n6. **Resolving scoped services from the root provider.** They're\n   effectively promoted to singleton lifetime — the warning is silent\n   without scope validation. Either change the lifetime or resolve from\n   an explicit `IServiceScope`.\n\n---\n\n## References\n\n| Topic | File |\n|-------|------|\n| Full deep dive (Generic Host setup, lifetimes, keyed services, testing patterns, legacy Ioc) | [`references\u002Fdependency-injection.md`](references\u002Fdependency-injection.md) |\n\nExternal:\n\n- DI overview: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcore\u002Fextensions\u002Fdependency-injection>\n- DI usage: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcore\u002Fextensions\u002Fdependency-injection-usage>\n- MVVM Toolkit Ioc page: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcommunitytoolkit\u002Fmvvm\u002Fioc>\n- Generic Host: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcore\u002Fextensions\u002Fgeneric-host>\n","# CommunityToolkit.Mvvm + `Microsoft.Extensions.DependencyInjection`\n\nThe MVVM Toolkit deliberately ships **no DI container** — it composes with\n`Microsoft.Extensions.DependencyInjection`, the same container ASP.NET\nCore, Worker services, and the .NET Generic Host use.\n\n> **TL;DR.** Build the service provider once at startup (prefer\n> `Host.CreateDefaultBuilder()`). Register services and ViewModels.\n> Inject through constructors. Avoid `Ioc.Default.GetService\u003CT>()`\n> in user code.\n\n---\n\n## When to use this skill\n\n- Standing up the composition root for a new XAML app (WPF, WinUI 3,\n  MAUI, Uno, Avalonia)\n- Choosing service\u002FVM lifetimes\n- Wiring `IMessenger` once and injecting it into `ObservableRecipient`\n  ViewModels\n- Resolving a page's ViewModel without coupling to a service locator\n- Diagnosing \"Unable to resolve service for type X while attempting to\n  activate Y\"\n\nFor source generators and ViewModel patterns see the **`mvvm-toolkit`**\nskill. For Messenger pub\u002Fsub see **`mvvm-toolkit-messenger`**.\n\n---\n\n## Recommended composition root (Generic Host)\n\n```csharp\nusing Microsoft.Extensions.DependencyInjection;\nusing Microsoft.Extensions.Hosting;\nusing CommunityToolkit.Mvvm.Messaging;\n\npublic partial class App : Application\n{\n    public IHost Host { get; }\n\n    public App()\n    {\n        Host = Microsoft.Extensions.Hosting.Host\n            .CreateDefaultBuilder()\n            .ConfigureServices((_, services) =>\n            {\n                services.AddSingleton\u003CIFilesService, FilesService>();\n                services.AddSingleton\u003CISettingsService, SettingsService>();\n                services.AddSingleton\u003CIMessenger>(WeakReferenceMessenger.Default);\n\n                services.AddSingleton\u003CShellViewModel>();\n                services.AddTransient\u003CContactViewModel>();\n                services.AddTransient\u003CEditorViewModel>();\n            })\n            .Build();\n    }\n\n    public static T GetService\u003CT>() where T : class =>\n        ((App)Current).Host.Services.GetRequiredService\u003CT>();\n}\n```\n\nGeneric Host benefits:\n\n- `appsettings.json` binding via `Microsoft.Extensions.Configuration`\n- Logging via `Microsoft.Extensions.Logging`\n- Hosted services (`IHostedService`) for background work\n- Scope validation in development builds\n\n> WPF and Windows Forms must integrate the host lifetime with the app\n> lifetime — see\n> [Use the .NET Generic Host in a WPF app](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fdesktop\u002Fwpf\u002Fapp-development\u002Fhow-to-use-host-builder).\n\n### Without Generic Host\n\nWhen you only need a service container and want zero extra dependencies:\n\n```csharp\nvar services = new ServiceCollection();\nservices.AddSingleton\u003CIFilesService, FilesService>();\nservices.AddTransient\u003CContactViewModel>();\nServiceProvider provider = services.BuildServiceProvider();\n```\n\n---\n\n## Constructor injection\n\nInject services and child ViewModels through the constructor:\n\n```csharp\npublic sealed partial class ContactViewModel(\n    IFilesService files,\n    IMessenger messenger,\n    ILogger\u003CContactViewModel> logger)\n    : ObservableRecipient(messenger)\n{\n    [ObservableProperty]\n    private string? name;\n\n    [RelayCommand]\n    private async Task SaveAsync()\n    {\n        logger.LogInformation(\"Saving {Name}\", Name);\n        await files.SaveAsync(Name!);\n    }\n}\n```\n\nWhy constructor injection beats a service locator:\n\n- Dependencies are explicit and visible at the call site\n- Unit tests inject fakes\u002Fmocks directly\n- The DI container validates the dependency graph at startup\n- Missing registrations throw immediately, not at first use\n\n---\n\n## Lifetimes\n\n| Lifetime | Method | Typical use in XAML apps |\n|----------|--------|--------------------------|\n| Singleton | `AddSingleton\u003CT>` | Shell\u002Fmain-window VM, settings, file\u002FHTTP services, the shared `IMessenger`, app-wide caches |\n| Transient | `AddTransient\u003CT>` | Per-page or per-document ViewModels (a fresh instance every resolve) |\n| Scoped | `AddScoped\u003CT>` | Rarely needed in client apps; useful with explicit `IServiceScope` (e.g., per-window scopes) |\n\n```csharp\nservices.AddSingleton\u003CShellViewModel>();   \u002F\u002F 1 instance for app lifetime\nservices.AddTransient\u003CNoteViewModel>();    \u002F\u002F new instance per resolve\nservices.AddScoped\u003CDialogService>();       \u002F\u002F 1 per scope (rare)\n```\n\n---\n\n## Resolving in a View\n\nResolve the page's root ViewModel in code-behind, then let it pull its\nown dependencies:\n\n```csharp\npublic sealed partial class ContactPage : Page\n{\n    public ContactViewModel ViewModel { get; }\n\n    public ContactPage()\n    {\n        ViewModel = App.GetService\u003CContactViewModel>();\n        InitializeComponent();\n    }\n}\n```\n\nBind in XAML with `{x:Bind ViewModel.Xxx}` (compiled bindings) or\n`{Binding Xxx}` against `DataContext`.\n\nFor navigation frameworks (WinUI 3 `Frame.Navigate`, MAUI Shell, Prism,\nMVVMCross), let the framework resolve the page and the page resolves its\nViewModel from DI. Don't `new` ViewModels manually.\n\n---\n\n## `IMessenger` registration\n\nRegister the messenger you want once, inject `IMessenger` everywhere:\n\n```csharp\nservices.AddSingleton\u003CIMessenger>(WeakReferenceMessenger.Default);\n\u002F\u002F or\nservices.AddSingleton\u003CIMessenger>(StrongReferenceMessenger.Default);\n```\n\nThen:\n\n```csharp\npublic sealed partial class MyViewModel(IMessenger messenger)\n    : ObservableRecipient(messenger) { }\n```\n\nFor per-window messengers, register with keyed services or as scoped\ninstances and inject into per-window ViewModels.\n\nSee the **`mvvm-toolkit-messenger`** skill for the messenger surface area.\n\n---\n\n## Keyed services (.NET 8+)\n\nResolve different implementations of the same interface by key:\n\n```csharp\nservices.AddKeyedSingleton\u003CIExporter, CsvExporter>(\"csv\");\nservices.AddKeyedSingleton\u003CIExporter, JsonExporter>(\"json\");\n\npublic sealed partial class ExportViewModel(\n    [FromKeyedServices(\"csv\")] IExporter csvExporter,\n    [FromKeyedServices(\"json\")] IExporter jsonExporter)\n    : ObservableObject { \u002F* ... *\u002F }\n```\n\n---\n\n## Testing seams\n\nConstructor-injected dependencies are trivial to swap in tests. With\n`Moq`:\n\n```csharp\n[Fact]\npublic async Task Save_calls_files_service()\n{\n    var files = new Mock\u003CIFilesService>();\n    var messenger = new WeakReferenceMessenger();\n    var logger = NullLogger\u003CContactViewModel>.Instance;\n\n    var vm = new ContactViewModel(files.Object, messenger, logger)\n    {\n        Name = \"Ada\"\n    };\n\n    await vm.SaveCommand.ExecuteAsync(null);\n\n    files.Verify(f => f.SaveAsync(\"Ada\"), Times.Once);\n}\n```\n\nIf you're mocking `Ioc.Default` or static state, the ViewModel is using a\nservice locator — refactor to constructor injection.\n\n---\n\n## Legacy: `Ioc.Default`\n\n`CommunityToolkit.Mvvm.DependencyInjection.Ioc` is an escape hatch for\ncases where constructor injection is impossible — XAML-instantiated VMs\nfor design-time data, `ValueConverter`s, control templates.\n\n```csharp\nIoc.Default.ConfigureServices(\n    new ServiceCollection()\n        .AddSingleton\u003CIFilesService, FilesService>()\n        .AddTransient\u003CContactViewModel>()\n        .BuildServiceProvider());\n\nvar files = Ioc.Default.GetRequiredService\u003CIFilesService>();\n```\n\nTreat it as the last resort. Inside ViewModels, services, and any class\nthe DI container can construct, prefer constructor injection.\n\n---\n\n## Common pitfalls\n\n1. **`Ioc.Default.GetService\u003CT>()` inside a VM constructor.** Hides the\n   dependency, breaks unit tests, prevents startup graph validation.\n2. **Everything `Singleton`.** A \"per-document\" VM registered as singleton\n   becomes shared state across all documents — subtle data corruption.\n   Use `AddTransient` for per-instance VMs.\n3. **Multiple `BuildServiceProvider()` calls.** Each call is a fresh\n   container — singletons aren't shared. Build once at startup.\n4. **Capturing `IServiceProvider` in long-lived objects.** Indicates a\n   service-locator pattern. Inject the specific dependencies you need.\n5. **No scope validation in development.** Use `Host.CreateDefaultBuilder()`\n   (which sets `ValidateScopes` and `ValidateOnBuild` in development) so\n   registration mistakes fail at startup, not at first use.\n6. **Resolving scoped services from the root provider.** They're\n   effectively promoted to singleton lifetime — the warning is silent\n   without scope validation. Either change the lifetime or resolve from\n   an explicit `IServiceScope`.\n\n---\n\n## References\n\n| Topic | File |\n|-------|------|\n| Full deep dive (Generic Host setup, lifetimes, keyed services, testing patterns, legacy Ioc) | [`references\u002Fdependency-injection.md`](references\u002Fdependency-injection.md) |\n\nExternal:\n\n- DI overview: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcore\u002Fextensions\u002Fdependency-injection>\n- DI usage: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcore\u002Fextensions\u002Fdependency-injection-usage>\n- MVVM Toolkit Ioc page: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcommunitytoolkit\u002Fmvvm\u002Fioc>\n- Generic Host: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcore\u002Fextensions\u002Fgeneric-host>\n",{"name":5,"description":7},"main","5269f7ea2d6c3a9bfda5ed878b6726cf509121fd","skills\u002Fmvvm-toolkit-di",5360,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot","https:\u002F\u002Fawesome-copilot.github.com\u002F","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 04:42:30",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add github\u002Fawesome-copilot --skill mvvm-toolkit-di",{"tool":74,"command":75},"bunx","bunx skills add github\u002Fawesome-copilot --skill mvvm-toolkit-di",{"tool":77,"command":78},"pnpm","pnpm dlx skills add github\u002Fawesome-copilot --skill mvvm-toolkit-di","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fmvvm-toolkit-di\u002FSKILL.md",true,[82,88],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fdependency-injection.md","REFERENCE","参考文档",8186,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fmvvm-toolkit-di\u002Freferences\u002Fdependency-injection.md",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"SKILL.md.tmpl","OTHER","其他",2724,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002Fsetup-browser-cookies\u002FSKILL.md.tmpl",[95,103,110,120,146,173],{"skillNo":96,"name":97,"nameZh":17,"description":98,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":102},"01M7B5D8BRA66G07045DF7WDYA","sap-cloud-integration","SAP Cloud Integration (CPI, part of SAP Integration Suite) runtime-specific guidance for building and troubleshooting iFlows. Use when writing or reviewing CPI Groovy scripts, choosing headers vs. exchange properties, designing exception subprocesses, JMS retry, idempotency or data store patterns, or diagnosing adapter errors (SFTP, HTTP\u002FOAuth, SOAP, IDoc, OData, AS2, Cloud Connector) from Message Processing Log (MPL) text. Not for SAP PI\u002FPO, ABAP development, or generic Java\u002FGroovy outside CPI.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fsap-cloud-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":104,"name":105,"nameZh":17,"description":106,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":102},"01M7B5CYRGSG571NH7EJWT5066","on-device-delegate","Saves cloud-model context by briefing one bounded, read-heavy sub-task (more than about 25 KB of prose, or many files that no single command can answer) to the local-coding plugin's on-device worker, which runs on the local MAI Code 1.1 Flash model. Use for log and test triage, summarizing many files, or extracting facts from large inputs. When the user names this skill, call the skill tool in the same response as your first other tool call, never as a separate step.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fon-device-delegate\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":17,"description":113,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":114,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":119},"01M74CBQ0M3ZKGQH8XKQZ2FHB1","scout-issue","Use when a developer wants to find the best GitHub issues to contribute to in a repository. Invoke with \u002Fscout-issue or ask to find good first issues, beginner-friendly issues, or open source work. Asks about experience level, technical skills, time, and contribution type, then searches GitHub issues, scores them, and presents ranked recommendations with match analysis.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fscout-issue\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fscout-issue\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":121,"name":122,"nameZh":17,"description":123,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":53},"01M70KXZNX9ES38N2A8M58ZZMZ","supabase-rls-policies","Write, review, and test Supabase Row Level Security (RLS) policies so that one user cannot read or change another user's rows. Use when creating or changing tables, policies, views, or security definer functions in a Supabase project, when reviewing a migration that touches RLS, or when asked to prove user isolation with pgTAP tests that sign in as two users.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fsupabase-rls-policies\u002FSKILL.md",[],[127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,48,144,145],"supabase rls policies","supabase rls","supabase","rls","project","with","when","review","change","read","write","security","isolation","tables","as","tests","prove","users","functions",{"skillNo":147,"name":148,"nameZh":17,"description":149,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":53},"01M70KWA5YWXDV6V8DZ19E3T2Y","skill-distribution-audit","Audit a skill collection before release or investigate installer omissions, archived\u002Ftemplate leakage, duplicate identities, and manifest drift. Reconcile the intended public source set, distribution manifest, and actual discovery output for a specified consumer version. Includes a deterministic set-comparison helper.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fskill-distribution-audit\u002FSKILL.md",[],[153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172],"distribution","skill distribution audit","audit","output","reconcile","release","template","duplicate","investigate","drift","SET","deterministic","installer","for","discovery","comparison","helper","manifest","version","collection",{"skillNo":174,"name":175,"nameZh":17,"description":176,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":177,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":53},"01M70KCJPFVW7PPQ49CC5R8JGK","logicapps-custom-code-net10-migration","Migrate Azure Logic Apps Standard local-function custom-code projects from .NET 8 to .NET 10. Use for legacy Logic Apps custom-code workspace upgrades, project\u002Fpackage configuration, custom-worker settings, publication, and integrated VS Code debugging. Not for ordinary .NET applications, standalone Azure Functions, Consumption workflows, or cloud deployment.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Flogicapps-custom-code-net10-migration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Flogicapps-custom-code-net10-migration\u002FSKILL.md",[],[181,182,183,184,46,185,186,166,131,187,188,189,190,191,192,193,48,194,195,196],"code","logicapps custom code net10 migration","migration","custom","projects","standalone","deployment","applications","local","azure","worker","upgrades","package","apps","debugging","workflows"]