async-command-expert

Community

Master asynchronous commands in C# MVVM.

Authorkongliuli
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables developers to implement robust asynchronous commands in C# MVVM WPF applications.

Core Features & Use Cases

  • IAsyncRelayCommand implementation: Provide a robust asynchronous command base with proper CanExecute, IsExecuting state, and cancellation support.
  • Cancellation support: Enable canceling long-running commands via CancellationToken.
  • Progress reporting: Provide progress reporting mechanism via IProgress.
  • CanExecute management: Centralized state management for command availability.
  • Exception handling: Built-in error capture and reporting.
  • Use Case: In a WPF ViewModel, wire up commands to perform asynchronous work while updating UI and respecting CanExecute states.

Quick Start

Instantiate an AsyncRelayCommand in your ViewModel, for example: SaveCommand = new AsyncRelayCommand(SaveData, CanSave). Bind the command to a Button in XAML and implement SaveData and CanSave as async methods.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: async-command-expert
Download link: https://github.com/kongliuli/VibeSkills/archive/main.zip#async-command-expert

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.