wpf-rule-mvvm-constraints
БесплатноБез исполняемых скриптовНе проверенWPF MVVM layer-separation rules: no System.Windows in ViewModels, BCL-only types, CommunityToolkit.Mvvm base classes. Preloaded into MVVM-related wpf-dev-pack…
от christian289★ 42 звезды на GitHubОб этом скилле
MVVM Constraints
Rules for enforcing strict MVVM layer separation in wpf-dev-pack projects.
Prohibited DLL References in ViewModel Projects
ViewModel projects must NOT reference these assemblies:
WindowsBase.dllPresentationFramework.dllPresentationCore.dll
If any of these appear in a .csproj targeting the ViewModel layer, remove them immediately.
Prohibited Using Statements
The following namespaces must never appear in ViewModel code:
// Prohibited in ViewModel projects
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Input; // except ICommand — use CommunityToolkit.Mvvm instead
Allowed Using Statements
These namespaces are safe for ViewModels:
// Allowed
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.ComponentModel;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
ViewModel Type Restrictions
ViewModel properties and constructor parameters must use BCL types only:
string,int,double,bool,decimal,DateTime,GuidObservableCollection<T>,List<T>,IEnumerable<T>- Other ViewModels or domain model types
Do NOT expose WPF types (Brush, Visibility, ImageSource, Thickness, etc.) as ViewModel properties. Convert in the View layer using converters or triggers.
CommunityToolkit.Mvvm
Prefer CommunityToolkit.Mvvm for all ViewModel base classes and commands:
- Inherit from
ObservableObjectorObservableRecipient - Use
[ObservableProperty]for bindable properties (source-generated) - Use
[RelayCommand]for commands (source-generated) - Never hand-roll
INotifyPropertyChangedorICommandimplementations
Установить wpf-rule-mvvm-constraints в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл wpf-rule-mvvm-constraints?
WPF MVVM layer-separation rules: no System.Windows in ViewModels, BCL-only types, CommunityToolkit.Mvvm base classes. Preloaded into MVVM-related wpf-dev-pack agents.
Как установить скилл wpf-rule-mvvm-constraints?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wpf-rule-mvvm-constraints запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic