desktop-wpf
Use when the user asks about WPF, XAML desktop apps, MVVM with CommunityToolkit.Mvvm, data binding, commands, styles and templates, custom controls or WPF on…
от j4flmao★ 47 звёзд на GitHub
Установить desktop-wpf в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
WPF
Purpose
Build Windows desktop applications using Windows Presentation Foundation (WPF) — .NET's XAML-based UI framework with powerful data binding, templating, styling, and hardware-accelerated rendering via DirectX. WPF excels at complex LOB applications with rich UI requirements.
Agent Protocol
Trigger
Exact user phrases: "WPF", "WPF app", "XAML", "MVVM WPF", "WPF data binding", "WPF custom control", "WPF styles", "WPF template", "WPF binding", "ICommand", "INotifyPropertyChanged", "WPF UserControl".
Input Context
- .NET target (current LTS such as .NET 8/10 for new work; .NET Framework 4.8.x for legacy)
- Architecture (MVVM, MVC, code-behind)
- UI patterns (master-detail, wizard, dashboard, document MDI)
- Data access (Entity Framework, NHibernate, Dapper, ADO.NET)
- Performance requirements (large data sets, real-time updates, complex visuals)
- Third-party controls (DevExpress, Telerik, Infragistics, or none)
Output Artifact
WPF application architecture with XAML view tree, ViewModel layer, data access, and styling strategy.
Response Format
Target: {.NET version} Pattern: MVVM ({CommunityToolkit.Mvvm|custom})
Views -> ViewModels: {mapping}
Commands: {RelayCommand/AsyncRelayCommand list}
Styling: {ResourceDictionaries, theme}
Code: {XAML + C# files}
Completion Criteria
- Application class configured (App.xaml, startup, resources)
- Main window with layout (Grid, DockPanel, or custom shell)
- MVVM pattern with ViewModels and ICommand/RelayCommand
- Data binding across views (
{Binding}with INotifyPropertyChanged, converters;x:Binddoes not exist in WPF — it is UWP/WinUI only) - Styles and resources defined (global, theme-aware)
- Data templates for list/detail views
- Custom controls or UserControls (if needed)
- Data validation (IDataErrorInfo, ValidationRule, INotifyDataErrorInfo)
- Async operations (async Command, progress reporting)
- Deployment (ClickOnce, MSIX, MSI, Squirrel)
Max Response Length
250 lines.
Framework/Methodology
WPF Architecture Decision Tree
What is the WPF app complexity?
├── Simple CRUD (single form, few fields)
│ → Window with data-bound controls
│ → RelCommand, INotifyPropertyChanged in code-behind
├── Standard LOB (master-detail, search, reports)
│ → MVVM with dedicated ViewModels
│ → Navigation via ContentControl + DataTemplate
│ → Entity Framework for data access
├── Complex dashboard (real-time, charts, drag-drop)
│ → MVVM with messaging (Mediator/Messenger)
│ → VirtualizingCollection for large data
│ → 3rd party charts or custom DrawingVisual rendering
└── Enterprise (modular, plugins, multiple teams)
→ Prism/MAUI for modularity, region navigation
→ MEF/DI for plugin loading
→ Separate assemblies per module
MVVM Core Pattern
View (XAML) — Data Binding, Commands, Triggers
↑ ↓
ViewModel — Observable Properties, ICommand, INotifyDataErrorInfo
↑
Model — Business Logic, Data Access, Validation Rules
Workflow
Step 1: Set Up WPF Project with MVVM
// App.xaml
<Application x:Class="MyApp.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:local="clr-namespace:MyApp"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles.xaml" />
<ResourceDictionary Source="Resources/Converters.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
// App.xaml.cs - Configure DI
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
var services = new ServiceCollection();
services.AddSingleton<IDataService, DataService>();
services.AddTransient<MainViewModel>();
services.AddTransient<MainWindow>();
var provider = services.BuildServiceProvider();
var window = provider.GetRequiredService<MainWindow>();
window.DataContext = provider.GetRequiredService<MainViewModel>();
window.Show();
}
}
Step 2: Create RelayCommand and BaseViewModel
// Infrastructure/RelayCommand.cs
public class RelayCommand : ICommand
{
private readonly Action<object?> _execute;
private readonly Func<object?, bool>? _canExecute;
public RelayCommand(Action<object?> execute, Func<object?, bool>? canExecute = null)
{
_execute = execute;
_canExecute = canExecute;
}
public event EventHandler? CanExecuteChanged
{
add => CommandManager.RequerySuggested += value;
remove => CommandManager.RequerySuggested -= value;
}
public bool CanExecute(object? parameter) => _canExecute?.Invoke(parameter) ?? true;
public void Execute(object? parameter) => _execute(parameter);
}
//
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/wpf-advanced.md
- references/wpf-architecture.md
- references/wpf-best-practices.md
- references/wpf-fundamentals.md
- references/wpf-mvvm-patterns.md
- references/wpf-performance.md
FAQ
Что делает скилл desktop-wpf?
Use when the user asks about WPF, XAML desktop apps, MVVM with CommunityToolkit.Mvvm, data binding, commands, styles and templates, custom controls or WPF on modern .NET. Produces WPF application architecture and XAML. Not for WinForms (use desktop-winforms) or UWP/WinUI (use desktop-uwp).
Как установить скилл desktop-wpf?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл desktop-wpf запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…