Make Wpf Project
БесплатноБез исполняемых скриптовНе проверенScaffolds a complete WPF project structure with MVVM, DI, and best practices. Use when starting a new WPF application, creating a WPF solution from scratch…
от christian289★ 42 звезды на GitHubОб этом скилле
WPF Project Scaffolder
If $0 is empty, use the AskUserQuestion tool to ask: "Enter the WPF project name (e.g., MyApp, Dashboard)". Do NOT proceed until a valid name is provided. Use the response as the ProjectName for all subsequent steps.
Scaffold a WPF project named $0 with MVVM, DI, and best practices.
Usage
# Default project (recommended) - CommunityToolkit.Mvvm + GenericHost
/wpf-dev-pack:make-wpf-project $0
# Minimal structure
/wpf-dev-pack:make-wpf-project $0 --minimal
# Full structure (all layers separated)
/wpf-dev-pack:make-wpf-project $0 --full
# Prism framework (module-based architecture)
/wpf-dev-pack:make-wpf-project $0 --prism
Framework Options
| Option | Framework | Features |
|---|---|---|
| (default) | CommunityToolkit.Mvvm | Lightweight, Source Generator, GenericHost DI |
--prism |
Prism.DryIoc | Region Navigation, Module, Dialog Service |
Prism details: See PRISM.md for complete Prism project structure and examples.
Project naming (consistency contract): the WPF application project is suffixed
.WpfApp. Themake-wpf-viewmodelandmake-wpf-servicegenerators locate the app project by this suffix to place Views and register DI. Keep.WpfAppso the wholemake-wpf-*family wires into one solution.
Project Structures
Default Structure
$0/
├── $0.sln
├── $0.WpfApp/ # WPF Application (entry point + Views)
│ ├── App.xaml # merges Mappings.xaml
│ ├── App.xaml.cs # GenericHost + DI
│ ├── MainWindow.xaml # shell: ContentControl nav host
│ ├── MainWindow.xaml.cs
│ ├── GlobalUsings.cs
│ ├── Mappings.xaml # ViewModel→View DataTemplate map
│ ├── Views/
│ ├── Converters/
│ └── $0.WpfApp.csproj
├── $0.ViewModels/ # ViewModel (pure C#, no System.Windows)
│ ├── MainViewModel.cs
│ ├── GlobalUsings.cs
│ └── $0.ViewModels.csproj
└── $0.Core/ # Business logic + service interfaces
├── Models/
├── Services/
└── $0.Core.csproj
Minimal Structure
$0/
├── $0.sln
└── $0/
├── App.xaml
├── App.xaml.cs
├── MainWindow.xaml
├── MainWindow.xaml.cs
├── Mappings.xaml
├── ViewModels/
│ └── MainViewModel.cs
├── Views/
├── Models/
├── Services/
└── $0.csproj
Full Structure
$0/
├── $0.slnx
├── src/
│ ├── $0.Abstractions/ # Interfaces, abstract classes
│ ├── $0.Core/ # Business logic
│ ├── $0.ViewModels/ # ViewModel
│ ├── $0.WpfServices/ # WPF services (CollectionView etc.)
│ ├── $0.UI/ # CustomControl library (Themes/Generic.xaml)
│ └── $0.WpfApp/ # WPF Application
└── tests/
├── $0.Core.Tests/
└── $0.ViewModels.Tests/
Prism Structure (--prism)
See PRISM.md for complete structure.
Composition Style (CommunityToolkit.Mvvm)
This scaffold establishes ViewModel First Composition + Stateful ViewModel from the start:
- the shell
MainViewModelexposesCurrentViewModel, - the shell
MainWindowhosts it in aContentControl, and Mappings.xamlresolves the View from the ViewModel type via an implicitDataTemplate(nox:Key).
Add screens with /wpf-dev-pack:make-wpf-viewmodel <Name> --with-view, which
appends one DataTemplate to Mappings.xaml and registers DI.
ViewModelLocator, code-behind DataContext = new VM(), and inline XAML
DataContext are prohibited (see prohibitions.md).
Generated Files
$0.WpfApp.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<!-- Assembly is $0.WpfApp but root namespace is $0, so View/ViewModel
namespaces ($0.Views / $0.ViewModels) line up across projects. -->
<RootNamespace>$0</RootNamespace>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.*" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.*" />
</ItemGroup>
<ItemGroup>
<!-- Forward slashes: MSBuild accepts them on Windows, and a "\$" sequence
in this skill body is consumed as an argument escape at invocation. -->
<ProjectReference Include="../$0.ViewModels/$0.ViewModels.csproj" />
<ProjectReference Include="../$0.Core/$0.Core.csproj" />
</ItemGroup>
</Project>
App.xaml (merges Mappings.xaml)
<Application x:Class="$0.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Mappings.
Установить Make Wpf Project в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Make Wpf Project?
Scaffolds a complete WPF project structure with MVVM, DI, and best practices. Use when starting a new WPF application, creating a WPF solution from scratch, or setting up project structure with CommunityToolkit.Mvvm or Prism. Usage: /wpf-dev-pack:make-wpf-project <ProjectName> [--minimal|--full|--prism]
Как установить скилл Make Wpf Project?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Make Wpf Project запускает скрипты?
Нет, скилл состоит только из инструкций (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