No slash command · from wpf-dev-pack
Formats WPF XAML and C# code using XamlStyler and dotnet format. Generates Settings.XamlStyler and .editorconfig files automatically.
Ships in wpf-dev-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Applies consistent code style to XAML and C# files.
All commands use dotnet dnx for cross-platform compatibility (Windows, Linux, macOS).
# Verify .NET 10 is available
dotnet --version # Should be 10.0.x or higher
Run via dotnet dnx (dotnet tool runner). No manual installation required.
Included with .NET SDK by default.
Copy from template to workspace root if Settings.XamlStyler doesn't exist.
Template location: templates/Settings.XamlStyler
Key settings:
AttributesTolerance: 1 - Allow up to 1 attribute on same lineKeepFirstAttributeOnSameLine: true - Keep first attribute on element lineCopy from template to workspace root if .editorconfig doesn't exist.
Template location: templates/.editorconfig
Key settings:
# Format all XAML files in workspace
dotnet dnx -y XamlStyler.Console -- -d "{workspace}" -r -c "{workspace}/Settings.XamlStyler"
# Format single file
dotnet dnx -y XamlStyler.Console -- -f "{file.xaml}" -c "{workspace}/Settings.XamlStyler"
dotnet dnx Options:
-y: Auto-accept confirmation prompt--: Separator between dnx options and tool argumentsXamlStyler Options:
-d: Target directory-f: Target file-r: Recursive processing-c: Configuration file path# Format entire solution
dotnet format "{solution.sln}" --no-restore
# Format specific project only
dotnet format "{project.csproj}" --no-restore
# Format single file
dotnet format "{project.csproj}" --include "{file.cs}" --no-restore
Options:
--no-restore: Skip NuGet restore (faster)--include: Target specific fileTask Progress:
- [ ] Step 1: Check if Settings.XamlStyler exists, create if not
- [ ] Step 2: Check if .editorconfig exists, create if not
- [ ] Step 3: Run dotnet dnx XamlStyler.Console for XAML formatting
- [ ] Step 4: Run dotnet format for C# formatting
- When .xaml file modified: Run dotnet dnx XamlStyler.Console
- When .cs file modified: Run dotnet format
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
wpf, xaml, csharp, code-formatting, dotnet-format, xamlstyler
npx claudepluginhub christian289/dotnet-with-claudecode --plugin wpf-dev-pack28 skills in this plugin
/collecting-wpf-dev-pack-feedbackCollecting wpf-dev-pack FeedbackAnalyzes the current WPF working session and produces an accumulable wpf-dev-pack improvement-feedback markdown file in the current directory. Use when, after doing WPF work with wpf-dev-pack skills/scaffolders in a project OUTSIDE the dotnet-with-claudecode repo, you want to capture anti-patterns you hand-fixed, missing or outdated skill guidance, mistaken or missed triggers, and scaffolder gaps — without editing wpf-dev-pack directly. The output md is meant to be contributed to dotnet-with-claudecode/FeedbackDocs via a pull request./configuring-wpf-dev-pack-languageConfiguring wpf-dev-pack LanguageConfigures the user-facing response language for the wpf-dev-pack plugin by writing a per-project preference file at .claude/wpf-dev-pack.local.md. Use when starting work with wpf-dev-pack in a new project and the default language does not match the user's expectation, or when switching language mid-project. The setting is read by the LanguagePreferenceLoader SessionStart hook on the next conversation start and takes effect automatically from then on./make-wpf-behaviorWPF Behavior GeneratorGenerates WPF Behavior<T> classes using Microsoft.Xaml.Behaviors.Wpf. Use when adding reusable interaction logic to controls, creating drag behaviors, or scaffolding a new Behavior class. Usage: /wpf-dev-pack:make-wpf-behavior <BehaviorName>/make-wpf-chat-bubble-templateWPF Chat Bubble Template GeneratorGenerates a role-differentiated chat bubble DataTemplate (color, alignment, asymmetric margin, content-sized) plus the turn ViewModel for an ItemsControl of chat turns. Use when laying out a chat/conversation list where user and assistant turns must look distinct. Usage: /wpf-dev-pack:make-wpf-chat-bubble-template <TurnName>/make-wpf-chatclientWPF Chat Client Generator (one-button)One-button generator for a complete, runnable streaming LLM chat client in WPF (CommunityToolkit.Mvvm): markdown bubbles, provider-agnostic IChatClient with a shared HttpClient pool, MCP tools, Enter-to-send, and pin-to-bottom auto-scroll — defaulting to a keyless mock provider so it runs immediately. Use when adding a chat/assistant panel to a WPF app. Usage: /wpf-dev-pack:make-wpf-chatclient <Name>/make-wpf-chatclient-factoryWPF ChatClient Factory GeneratorGenerates a provider-agnostic IChatClient factory that shares one SocketsHttpHandler across LLM SDKs (OpenAI, Ollama, Anthropic, Gemini) and includes a MockChatClient for account-less development. Use when wiring multiple LLM providers behind Microsoft.Extensions.AI in a WPF app. Usage: /wpf-dev-pack:make-wpf-chatclient-factory <Name>Other plugins' skills for the same job