[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77TT1YJ9V2ZFQ38NNTY38B3":3,"skill-same:01M77TT1YJ9V2ZFQ38NNTY38B3":68},{"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},"01M77TT1YJ9V2ZFQ38NNTY38B3","mvvm-toolkit",null,"CommunityToolkit.Mvvm (the MVVM Toolkit) core: source generators ([ObservableProperty], [RelayCommand], [NotifyPropertyChangedFor], [NotifyCanExecuteChangedFor], [NotifyDataErrorInfo]), base classes (ObservableObject \u002F ObservableValidator \u002F ObservableRecipient), commands (RelayCommand \u002F AsyncRelayCommand), and validation. Companion skills: mvvm-toolkit-messenger for pub\u002Fsub, mvvm-toolkit-di for Microsoft.Extensions.DependencyInjection wiring. Works across WPF, WinUI 3, 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\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"CommunityToolkit.Mvvm (the MVVM Toolkit) core: source generators ([ObservableProperty], [RelayCommand], [NotifyPropertyChangedFor], [NotifyCanExecuteChangedFor], [NotifyDataErrorInfo]), base classes (ObservableObject \u002F ObservableValidator \u002F ObservableRecipient), commands (RelayCommand \u002F AsyncRelayCommand), and validation. Companion skills: mvvm-toolkit-messenger for pub\u002Fsub, mvvm-toolkit-di for Microsoft.Extensions.DependencyInjection wiring. Works across WPF, WinUI 3, MAUI, Uno, and Avalonia.\"\n---\n# CommunityToolkit.Mvvm (core)\n\nUse this skill when authoring or reviewing ViewModels, properties,\ncommands, or validation in apps that use `CommunityToolkit.Mvvm` 8.x.\n\n> **Companion skills.** Load **`mvvm-toolkit-messenger`** for `IMessenger`\n> pub\u002Fsub patterns. Load **`mvvm-toolkit-di`** for\n> `Microsoft.Extensions.DependencyInjection` integration.\n\n> **Quick recap.** `[ObservableProperty]` on private fields in `partial`\n> classes; `[RelayCommand]` on instance methods; inherit from\n> `ObservableObject` (or `ObservableValidator` for input forms,\n> `ObservableRecipient` when using `IMessenger`).\n\n---\n\n## Package & setup\n\n```xml\n\u003CItemGroup>\n  \u003CPackageReference Include=\"CommunityToolkit.Mvvm\" Version=\"8.*\" \u002F>\n\u003C\u002FItemGroup>\n```\n\nTargets: `netstandard2.0`, `netstandard2.1`, `net6.0`+. Works on .NET, .NET\nFramework, Mono. Source generators ship in the same NuGet — no extra\nanalyzer reference required.\n\nNamespaces:\n\n```csharp\nusing CommunityToolkit.Mvvm.ComponentModel;   \u002F\u002F ObservableObject, [ObservableProperty]\nusing CommunityToolkit.Mvvm.Input;             \u002F\u002F [RelayCommand], RelayCommand, AsyncRelayCommand\n```\n\n> **Universal rule.** Every type that uses `[ObservableProperty]` or\n> `[RelayCommand]` — and every enclosing type, if nested — must be\n> declared `partial`. Without it, the generators emit\n> `MVVMTK0008` \u002F `MVVMTK0042`.\n\n---\n\n## Source generators cheat sheet\n\n| Attribute | Applied to | Generates |\n|-----------|-----------|-----------|\n| `[ObservableProperty]` | private field | Public `INotifyPropertyChanged` property + `OnXxxChanging`\u002F`OnXxxChanged` partial-method hooks |\n| `[NotifyPropertyChangedFor(nameof(Other))]` | observable field | Also raises `PropertyChanged` for the listed property |\n| `[NotifyCanExecuteChangedFor(nameof(MyCommand))]` | observable field | Calls `MyCommand.NotifyCanExecuteChanged()` on change |\n| `[NotifyDataErrorInfo]` | observable field on `ObservableValidator` | Calls `ValidateProperty(value)` from the setter |\n| `[NotifyPropertyChangedRecipients]` | observable field on `ObservableRecipient` | `Broadcast(old, new)` after the change |\n| `[RelayCommand]` | instance method | Lazy `RelayCommand` \u002F `AsyncRelayCommand` exposed as `IRelayCommand` \u002F `IAsyncRelayCommand` |\n| `[RelayCommand(CanExecute = nameof(CanX))]` | instance method | Wires `CanExecute` to a method or property |\n| `[RelayCommand(IncludeCancelCommand = true)]` | async method with `CancellationToken` | Also generates `XxxCancelCommand` |\n| `[RelayCommand(AllowConcurrentExecutions = true)]` | async method | Allows queued\u002Fparallel invocations (default disables while running) |\n| `[RelayCommand(FlowExceptionsToTaskScheduler = true)]` | async method | Surfaces exceptions via `ExecutionTask` instead of awaiting and rethrowing |\n| `[property: SomeAttr]` | observable field or `[RelayCommand]` method | Forwards `SomeAttr` onto the generated property (e.g., `[JsonIgnore]`) |\n\n**Naming.** Field `name` \u002F `_name` \u002F `m_name` → `Name`. Method `LoadAsync` →\n`LoadCommand` (the `Async` suffix is stripped; a leading `On` is also\nstripped).\n\nSee [`references\u002Fsource-generators.md`](references\u002Fsource-generators.md) for\nthe full attribute reference with generated-code samples.\n\n---\n\n## ViewModel patterns\n\n### Simple observable property\n\n```csharp\npublic partial class ContactViewModel : ObservableObject\n{\n    [ObservableProperty]\n    private string? name;\n}\n```\n\n### Hooks: `OnXxxChanging` \u002F `OnXxxChanged`\n\n```csharp\n[ObservableProperty]\nprivate string? name;\n\npartial void OnNameChanged(string? value) =>\n    Logger.LogInformation(\"Name changed to {Name}\", value);\n```\n\nBoth single-arg `(value)` and two-arg `(oldValue, newValue)` overloads\nare available. Implement only the ones you need; unimplemented hooks are\nelided by the compiler (zero runtime cost).\n\n### Dependent properties + dependent commands\n\n```csharp\n[ObservableProperty]\n[NotifyPropertyChangedFor(nameof(FullName))]\n[NotifyCanExecuteChangedFor(nameof(SaveCommand))]\nprivate string? firstName;\n\n[ObservableProperty]\n[NotifyPropertyChangedFor(nameof(FullName))]\n[NotifyCanExecuteChangedFor(nameof(SaveCommand))]\nprivate string? lastName;\n\npublic string FullName => $\"{FirstName} {LastName}\".Trim();\n```\n\n### Wrapping a non-observable model\n\n```csharp\npublic sealed class ObservableUser(User user) : ObservableObject\n{\n    public string Name\n    {\n        get => user.Name;\n        set => SetProperty(user.Name, value, user, (u, n) => u.Name = n);\n    }\n}\n```\n\nPass a static lambda (no captured state) to keep the call allocation-free.\n\n---\n\n## Commands\n\n```csharp\n[RelayCommand]\nprivate void Refresh() => Items.Reset();\n\n[RelayCommand]\nprivate async Task LoadAsync()\n{\n    foreach (var item in await service.GetItemsAsync())\n        Items.Add(item);\n}\n\n[RelayCommand(IncludeCancelCommand = true)]\nprivate async Task DownloadAsync(CancellationToken token)\n{\n    await using var stream = await http.GetStreamAsync(url, token);\n    \u002F\u002F ...\n}\n\n[RelayCommand(CanExecute = nameof(CanSave))]\nprivate Task SaveAsync() => repo.SaveAsync(Name!);\n\nprivate bool CanSave() => !string.IsNullOrWhiteSpace(Name);\n```\n\nReach for manual `RelayCommand` \u002F `AsyncRelayCommand` constructors only\nwhen you must own the command's lifetime explicitly or compose it from\nnon-trivial sources. The attribute style covers ~95% of cases.\n\nSee [`references\u002Frelaycommand-cookbook.md`](references\u002Frelaycommand-cookbook.md)\nfor sync \u002F async \u002F cancellable \u002F concurrency \u002F error-surfacing recipes.\n\n---\n\n## Base class selection\n\n| Base class | Use when |\n|------------|---------|\n| `ObservableObject` | Default. `INotifyPropertyChanged` + `INotifyPropertyChanging` + `SetProperty` overloads + `SetPropertyAndNotifyOnCompletion` for `Task` properties |\n| `ObservableValidator` | The VM needs `INotifyDataErrorInfo` (forms, settings input) |\n| `ObservableRecipient` | The VM sends or receives `IMessenger` messages — see the **`mvvm-toolkit-messenger`** skill |\n\nC# is single-inheritance: `ObservableValidator` and `ObservableRecipient`\nboth extend `ObservableObject`, so combining them requires composition\n(e.g., inject `IMessenger` into an `ObservableValidator`).\n\n---\n\n## Validation\n\n```csharp\nusing System.ComponentModel.DataAnnotations;\n\npublic sealed partial class RegistrationViewModel : ObservableValidator\n{\n    [ObservableProperty]\n    [NotifyDataErrorInfo]\n    [Required, MinLength(2), MaxLength(100)]\n    private string? name;\n\n    [ObservableProperty]\n    [NotifyDataErrorInfo]\n    [Required, EmailAddress]\n    private string? email;\n\n    [RelayCommand]\n    private void Submit()\n    {\n        ValidateAllProperties();\n        if (HasErrors) return;\n        \u002F\u002F submit...\n    }\n}\n```\n\nOther entry points: `TrySetProperty`, `ValidateProperty(value, name)`,\n`ClearAllErrors()`, `GetErrors(propertyName)`. Custom rules support\n`[CustomValidation]` methods and custom `ValidationAttribute` subclasses.\n\nSee [`references\u002Fvalidation.md`](references\u002Fvalidation.md) for the full\nvalidator surface area.\n\n---\n\n## Top pitfalls\n\n1. **Forgetting `partial`.** Class (and every enclosing type) must be\n   `partial`. Compile error `MVVMTK0008` \u002F `MVVMTK0042`.\n2. **PascalCase field name.** `[ObservableProperty] private string Name;`\n   collides with the generated property. Use `name`, `_name`, or `m_name`.\n3. **`async void` on `[RelayCommand]`.** The generator only wraps\n   `Task`-returning methods as `IAsyncRelayCommand`. `async void` becomes\n   a sync `RelayCommand` and exceptions are unobserved. Always return\n   `Task`.\n4. **Forgetting `[NotifyCanExecuteChangedFor]`.** The Save button stays\n   disabled even though `CanSave()` would now return `true`.\n5. **Mutating the same reference held by an `[ObservableProperty]`\n   field.** `EqualityComparer\u003CT>.Default` returns `true`, no notification\n   fires. Replace the instance instead of mutating it.\n\nFor the full diagnostic table (`MVVMTK0xxx`) and more pitfalls, see\n[`references\u002Ftroubleshooting.md`](references\u002Ftroubleshooting.md).\n\n---\n\n## End-to-end mini walkthrough\n\nA two-pane Notes app demonstrating generators + commands +\n`[NotifyCanExecuteChangedFor]`:\n\n```csharp\npublic sealed partial class NoteViewModel(INotesService notes,\n    IMessenger messenger) : ObservableRecipient(messenger)\n{\n    [ObservableProperty]\n    [NotifyCanExecuteChangedFor(nameof(SaveCommand))]\n    [NotifyCanExecuteChangedFor(nameof(DeleteCommand))]\n    private string? filename;\n\n    [ObservableProperty]\n    [NotifyCanExecuteChangedFor(nameof(SaveCommand))]\n    private string? text;\n\n    [RelayCommand(CanExecute = nameof(CanSave))]\n    private Task SaveAsync()\n    {\n        Messenger.Send(new NoteSavedMessage(Filename!));\n        return notes.SaveAsync(Filename!, Text!);\n    }\n\n    [RelayCommand(CanExecute = nameof(CanDelete))]\n    private Task DeleteAsync() => notes.DeleteAsync(Filename!);\n\n    private bool CanSave() =>\n        !string.IsNullOrWhiteSpace(Filename) && !string.IsNullOrEmpty(Text);\n    private bool CanDelete() => !string.IsNullOrWhiteSpace(Filename);\n}\n```\n\nFor the full sample (DI wiring, View code-behind, XAML, unit tests), see\n[`references\u002Fend-to-end-walkthrough.md`](references\u002Fend-to-end-walkthrough.md).\n\n---\n\n## References & companion skills\n\n| Topic | Where |\n|-------|-------|\n| Source generator attribute reference | [`references\u002Fsource-generators.md`](references\u002Fsource-generators.md) |\n| RelayCommand recipes | [`references\u002Frelaycommand-cookbook.md`](references\u002Frelaycommand-cookbook.md) |\n| Validation deep dive | [`references\u002Fvalidation.md`](references\u002Fvalidation.md) |\n| Full Notes-app walkthrough | [`references\u002Fend-to-end-walkthrough.md`](references\u002Fend-to-end-walkthrough.md) |\n| `MVVMTK0xxx` diagnostics & pitfalls | [`references\u002Ftroubleshooting.md`](references\u002Ftroubleshooting.md) |\n| **Messenger pub\u002Fsub** | Companion skill: **`mvvm-toolkit-messenger`** |\n| **`Microsoft.Extensions.DependencyInjection` wiring** | Companion skill: **`mvvm-toolkit-di`** |\n\nExternal sources:\n\n- Toolkit overview: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcommunitytoolkit\u002Fmvvm\u002F>\n- WinUI MVVM Toolkit tutorial: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fwindows\u002Fapps\u002Ftutorials\u002Fwinui-mvvm-toolkit\u002Fintro>\n- Source: \u003Chttps:\u002F\u002Fgithub.com\u002FCommunityToolkit\u002Fdotnet>\n- Samples: \u003Chttps:\u002F\u002Fgithub.com\u002FCommunityToolkit\u002FMVVM-Samples>\n","# CommunityToolkit.Mvvm (core)\n\nUse this skill when authoring or reviewing ViewModels, properties,\ncommands, or validation in apps that use `CommunityToolkit.Mvvm` 8.x.\n\n> **Companion skills.** Load **`mvvm-toolkit-messenger`** for `IMessenger`\n> pub\u002Fsub patterns. Load **`mvvm-toolkit-di`** for\n> `Microsoft.Extensions.DependencyInjection` integration.\n\n> **Quick recap.** `[ObservableProperty]` on private fields in `partial`\n> classes; `[RelayCommand]` on instance methods; inherit from\n> `ObservableObject` (or `ObservableValidator` for input forms,\n> `ObservableRecipient` when using `IMessenger`).\n\n---\n\n## Package & setup\n\n```xml\n\u003CItemGroup>\n  \u003CPackageReference Include=\"CommunityToolkit.Mvvm\" Version=\"8.*\" \u002F>\n\u003C\u002FItemGroup>\n```\n\nTargets: `netstandard2.0`, `netstandard2.1`, `net6.0`+. Works on .NET, .NET\nFramework, Mono. Source generators ship in the same NuGet — no extra\nanalyzer reference required.\n\nNamespaces:\n\n```csharp\nusing CommunityToolkit.Mvvm.ComponentModel;   \u002F\u002F ObservableObject, [ObservableProperty]\nusing CommunityToolkit.Mvvm.Input;             \u002F\u002F [RelayCommand], RelayCommand, AsyncRelayCommand\n```\n\n> **Universal rule.** Every type that uses `[ObservableProperty]` or\n> `[RelayCommand]` — and every enclosing type, if nested — must be\n> declared `partial`. Without it, the generators emit\n> `MVVMTK0008` \u002F `MVVMTK0042`.\n\n---\n\n## Source generators cheat sheet\n\n| Attribute | Applied to | Generates |\n|-----------|-----------|-----------|\n| `[ObservableProperty]` | private field | Public `INotifyPropertyChanged` property + `OnXxxChanging`\u002F`OnXxxChanged` partial-method hooks |\n| `[NotifyPropertyChangedFor(nameof(Other))]` | observable field | Also raises `PropertyChanged` for the listed property |\n| `[NotifyCanExecuteChangedFor(nameof(MyCommand))]` | observable field | Calls `MyCommand.NotifyCanExecuteChanged()` on change |\n| `[NotifyDataErrorInfo]` | observable field on `ObservableValidator` | Calls `ValidateProperty(value)` from the setter |\n| `[NotifyPropertyChangedRecipients]` | observable field on `ObservableRecipient` | `Broadcast(old, new)` after the change |\n| `[RelayCommand]` | instance method | Lazy `RelayCommand` \u002F `AsyncRelayCommand` exposed as `IRelayCommand` \u002F `IAsyncRelayCommand` |\n| `[RelayCommand(CanExecute = nameof(CanX))]` | instance method | Wires `CanExecute` to a method or property |\n| `[RelayCommand(IncludeCancelCommand = true)]` | async method with `CancellationToken` | Also generates `XxxCancelCommand` |\n| `[RelayCommand(AllowConcurrentExecutions = true)]` | async method | Allows queued\u002Fparallel invocations (default disables while running) |\n| `[RelayCommand(FlowExceptionsToTaskScheduler = true)]` | async method | Surfaces exceptions via `ExecutionTask` instead of awaiting and rethrowing |\n| `[property: SomeAttr]` | observable field or `[RelayCommand]` method | Forwards `SomeAttr` onto the generated property (e.g., `[JsonIgnore]`) |\n\n**Naming.** Field `name` \u002F `_name` \u002F `m_name` → `Name`. Method `LoadAsync` →\n`LoadCommand` (the `Async` suffix is stripped; a leading `On` is also\nstripped).\n\nSee [`references\u002Fsource-generators.md`](references\u002Fsource-generators.md) for\nthe full attribute reference with generated-code samples.\n\n---\n\n## ViewModel patterns\n\n### Simple observable property\n\n```csharp\npublic partial class ContactViewModel : ObservableObject\n{\n    [ObservableProperty]\n    private string? name;\n}\n```\n\n### Hooks: `OnXxxChanging` \u002F `OnXxxChanged`\n\n```csharp\n[ObservableProperty]\nprivate string? name;\n\npartial void OnNameChanged(string? value) =>\n    Logger.LogInformation(\"Name changed to {Name}\", value);\n```\n\nBoth single-arg `(value)` and two-arg `(oldValue, newValue)` overloads\nare available. Implement only the ones you need; unimplemented hooks are\nelided by the compiler (zero runtime cost).\n\n### Dependent properties + dependent commands\n\n```csharp\n[ObservableProperty]\n[NotifyPropertyChangedFor(nameof(FullName))]\n[NotifyCanExecuteChangedFor(nameof(SaveCommand))]\nprivate string? firstName;\n\n[ObservableProperty]\n[NotifyPropertyChangedFor(nameof(FullName))]\n[NotifyCanExecuteChangedFor(nameof(SaveCommand))]\nprivate string? lastName;\n\npublic string FullName => $\"{FirstName} {LastName}\".Trim();\n```\n\n### Wrapping a non-observable model\n\n```csharp\npublic sealed class ObservableUser(User user) : ObservableObject\n{\n    public string Name\n    {\n        get => user.Name;\n        set => SetProperty(user.Name, value, user, (u, n) => u.Name = n);\n    }\n}\n```\n\nPass a static lambda (no captured state) to keep the call allocation-free.\n\n---\n\n## Commands\n\n```csharp\n[RelayCommand]\nprivate void Refresh() => Items.Reset();\n\n[RelayCommand]\nprivate async Task LoadAsync()\n{\n    foreach (var item in await service.GetItemsAsync())\n        Items.Add(item);\n}\n\n[RelayCommand(IncludeCancelCommand = true)]\nprivate async Task DownloadAsync(CancellationToken token)\n{\n    await using var stream = await http.GetStreamAsync(url, token);\n    \u002F\u002F ...\n}\n\n[RelayCommand(CanExecute = nameof(CanSave))]\nprivate Task SaveAsync() => repo.SaveAsync(Name!);\n\nprivate bool CanSave() => !string.IsNullOrWhiteSpace(Name);\n```\n\nReach for manual `RelayCommand` \u002F `AsyncRelayCommand` constructors only\nwhen you must own the command's lifetime explicitly or compose it from\nnon-trivial sources. The attribute style covers ~95% of cases.\n\nSee [`references\u002Frelaycommand-cookbook.md`](references\u002Frelaycommand-cookbook.md)\nfor sync \u002F async \u002F cancellable \u002F concurrency \u002F error-surfacing recipes.\n\n---\n\n## Base class selection\n\n| Base class | Use when |\n|------------|---------|\n| `ObservableObject` | Default. `INotifyPropertyChanged` + `INotifyPropertyChanging` + `SetProperty` overloads + `SetPropertyAndNotifyOnCompletion` for `Task` properties |\n| `ObservableValidator` | The VM needs `INotifyDataErrorInfo` (forms, settings input) |\n| `ObservableRecipient` | The VM sends or receives `IMessenger` messages — see the **`mvvm-toolkit-messenger`** skill |\n\nC# is single-inheritance: `ObservableValidator` and `ObservableRecipient`\nboth extend `ObservableObject`, so combining them requires composition\n(e.g., inject `IMessenger` into an `ObservableValidator`).\n\n---\n\n## Validation\n\n```csharp\nusing System.ComponentModel.DataAnnotations;\n\npublic sealed partial class RegistrationViewModel : ObservableValidator\n{\n    [ObservableProperty]\n    [NotifyDataErrorInfo]\n    [Required, MinLength(2), MaxLength(100)]\n    private string? name;\n\n    [ObservableProperty]\n    [NotifyDataErrorInfo]\n    [Required, EmailAddress]\n    private string? email;\n\n    [RelayCommand]\n    private void Submit()\n    {\n        ValidateAllProperties();\n        if (HasErrors) return;\n        \u002F\u002F submit...\n    }\n}\n```\n\nOther entry points: `TrySetProperty`, `ValidateProperty(value, name)`,\n`ClearAllErrors()`, `GetErrors(propertyName)`. Custom rules support\n`[CustomValidation]` methods and custom `ValidationAttribute` subclasses.\n\nSee [`references\u002Fvalidation.md`](references\u002Fvalidation.md) for the full\nvalidator surface area.\n\n---\n\n## Top pitfalls\n\n1. **Forgetting `partial`.** Class (and every enclosing type) must be\n   `partial`. Compile error `MVVMTK0008` \u002F `MVVMTK0042`.\n2. **PascalCase field name.** `[ObservableProperty] private string Name;`\n   collides with the generated property. Use `name`, `_name`, or `m_name`.\n3. **`async void` on `[RelayCommand]`.** The generator only wraps\n   `Task`-returning methods as `IAsyncRelayCommand`. `async void` becomes\n   a sync `RelayCommand` and exceptions are unobserved. Always return\n   `Task`.\n4. **Forgetting `[NotifyCanExecuteChangedFor]`.** The Save button stays\n   disabled even though `CanSave()` would now return `true`.\n5. **Mutating the same reference held by an `[ObservableProperty]`\n   field.** `EqualityComparer\u003CT>.Default` returns `true`, no notification\n   fires. Replace the instance instead of mutating it.\n\nFor the full diagnostic table (`MVVMTK0xxx`) and more pitfalls, see\n[`references\u002Ftroubleshooting.md`](references\u002Ftroubleshooting.md).\n\n---\n\n## End-to-end mini walkthrough\n\nA two-pane Notes app demonstrating generators + commands +\n`[NotifyCanExecuteChangedFor]`:\n\n```csharp\npublic sealed partial class NoteViewModel(INotesService notes,\n    IMessenger messenger) : ObservableRecipient(messenger)\n{\n    [ObservableProperty]\n    [NotifyCanExecuteChangedFor(nameof(SaveCommand))]\n    [NotifyCanExecuteChangedFor(nameof(DeleteCommand))]\n    private string? filename;\n\n    [ObservableProperty]\n    [NotifyCanExecuteChangedFor(nameof(SaveCommand))]\n    private string? text;\n\n    [RelayCommand(CanExecute = nameof(CanSave))]\n    private Task SaveAsync()\n    {\n        Messenger.Send(new NoteSavedMessage(Filename!));\n        return notes.SaveAsync(Filename!, Text!);\n    }\n\n    [RelayCommand(CanExecute = nameof(CanDelete))]\n    private Task DeleteAsync() => notes.DeleteAsync(Filename!);\n\n    private bool CanSave() =>\n        !string.IsNullOrWhiteSpace(Filename) && !string.IsNullOrEmpty(Text);\n    private bool CanDelete() => !string.IsNullOrWhiteSpace(Filename);\n}\n```\n\nFor the full sample (DI wiring, View code-behind, XAML, unit tests), see\n[`references\u002Fend-to-end-walkthrough.md`](references\u002Fend-to-end-walkthrough.md).\n\n---\n\n## References & companion skills\n\n| Topic | Where |\n|-------|-------|\n| Source generator attribute reference | [`references\u002Fsource-generators.md`](references\u002Fsource-generators.md) |\n| RelayCommand recipes | [`references\u002Frelaycommand-cookbook.md`](references\u002Frelaycommand-cookbook.md) |\n| Validation deep dive | [`references\u002Fvalidation.md`](references\u002Fvalidation.md) |\n| Full Notes-app walkthrough | [`references\u002Fend-to-end-walkthrough.md`](references\u002Fend-to-end-walkthrough.md) |\n| `MVVMTK0xxx` diagnostics & pitfalls | [`references\u002Ftroubleshooting.md`](references\u002Ftroubleshooting.md) |\n| **Messenger pub\u002Fsub** | Companion skill: **`mvvm-toolkit-messenger`** |\n| **`Microsoft.Extensions.DependencyInjection` wiring** | Companion skill: **`mvvm-toolkit-di`** |\n\nExternal sources:\n\n- Toolkit overview: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcommunitytoolkit\u002Fmvvm\u002F>\n- WinUI MVVM Toolkit tutorial: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fwindows\u002Fapps\u002Ftutorials\u002Fwinui-mvvm-toolkit\u002Fintro>\n- Source: \u003Chttps:\u002F\u002Fgithub.com\u002FCommunityToolkit\u002Fdotnet>\n- Samples: \u003Chttps:\u002F\u002Fgithub.com\u002FCommunityToolkit\u002FMVVM-Samples>\n",{"description":7},"main","58843b159d7a4050d6b785a98b908cce505c0b92","agent\u002Fskills\u002Fmvvm-toolkit",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",{"tool":38,"command":39},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill mvvm-toolkit",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill mvvm-toolkit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit\u002FSKILL.md",true,[46,52,56,60,64],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fend-to-end-walkthrough.md","REFERENCE","参考文档",11394,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit\u002Freferences\u002Fend-to-end-walkthrough.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Frelaycommand-cookbook.md",6887,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit\u002Freferences\u002Frelaycommand-cookbook.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fsource-generators.md",9534,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit\u002Freferences\u002Fsource-generators.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Ftroubleshooting.md",7171,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit\u002Freferences\u002Ftroubleshooting.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fvalidation.md",5840,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fmvvm-toolkit\u002Freferences\u002Fvalidation.md",[69,76,83,90,97,104],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"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":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"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":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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",[],[]]