[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77TSRYT6EX7GXVKZJ4T5MW1":3,"skill-same:01M77TSRYT6EX7GXVKZJ4T5MW1":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M77TSRYT6EX7GXVKZJ4T5MW1","mvvm-toolkit-di",null,"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.","Reihantt6\u002Fsns-myagent","Reihantt6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219822095?v=4","01M77KK94PV8B7C2D9XWXNS8DJ","Mohamad Reihan tegar prasetya","01M77KK958QFMTHYXGXFV7KZ79",2,"MIT","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit-di\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\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# 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",{"description":7},"main","58843b159d7a4050d6b785a98b908cce505c0b92","agent\u002Fskills\u002Fmvvm-toolkit-di",0,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent","https:\u002F\u002Fgithub.com\u002FReihantt6","reihsns.web.id","2026-08-19 20:08:18",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Reihantt6\u002Fsns-myagent --skill mvvm-toolkit-di",{"tool":38,"command":39},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill mvvm-toolkit-di",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill mvvm-toolkit-di","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit-di\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fdependency-injection.md","REFERENCE","参考文档",8186,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit-di\u002Freferences\u002Fdependency-injection.md",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M77XDCYZ407XYMF2T4P6F7VT","youtube-transcript","Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com\u002Fwatch?v=, youtu.be\u002F, or similar). Supports output with or without timestamps.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M77XD7PBC98J6MXGJJ2TJ8DX","youtube-thumbnail-design","YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A\u002FB testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-thumbnail-design\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M77XD2541C8HXJ6RHYZP4NGJ","youtube-short-maker","Make YouTube Shorts that hold attention with Pexo — vertical 9:16, fast-paced, hook in the first 3 seconds. Describe your topic and Pexo writes the script, generates the shots, picks the models, and assembles a finished Short with music and captions. Use for YouTube Shorts: \"youtube short\", \"make a youtube short\", \"shorts video\", \"short-form video\". NOT for long-form or landscape video.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-short-maker\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M77XCXKVSYK7KTZ3PQBVVGFD","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fxcode-project-setup\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M77XCR1DV8ZQK2NHWKVY4EWX","x402","Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — \"just use it\" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing touches your codebase) or \"build it in\" (install the SDK and write the key + code into your project). Walks through wallet setup, funding, .env, and a ~$1 test run. Use when the user asks about x402, pay-per-use, USDC payments, or wants Browser Use Cloud without an API key. For the free-tier signup (reverse-CAPTCHA → API key), use `browser-use cloud signup` or the `cloud` skill instead.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M77XCMD3R3ZBZQQSW6E0793B","x-twitter-scraper","Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx-twitter-scraper\u002FSKILL.md",[],[]]