wpf-best-practices — Claude Code skill: features and installation
This skill guides C# and .NET WPF work, from project layout to MVVM patterns. Use it when building a desktop UI with XAML.
npx skills add jcurbelo/skills --skill wpf-best-practices -a claude-codeWhat wpf-best-practices does
The skill gives an AI agent coding conventions and a suggested layout for WPF projects. It covers naming, explicit types, nullable reference types and file-scoped namespaces, then separates app code into views, models, ViewModels and services.
For MVVM, it describes a shared ViewModelBase that raises property-change notifications, along with RelayCommand implementations for XAML bindings. Project examples include .csproj settings for a WPF app and a shared library. These are coding guidelines, not a ready-made application.
What it helps with
- organize files in a WPF project
- separate presentation logic into ViewModels
- bind UI actions to XAML commands
- configure nullable reference types in a C# project
Example prompts for the agent
- Create a settings-window ViewModel using this skill's guidance.
- Review my WPF project layout and suggest how to split its services and ViewModels.
- Add a RelayCommand for this XAML button and explain how the ViewModel connects to it.
How to install wpf-best-practices
1Skills CLI (Vercel)
npx skills add jcurbelo/skills --skill wpf-best-practices -a claude-code2Manually: put the files in place
~/.claude/skills/wpf-best-practices/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/wpf-best-practices/
1Skills CLI (Vercel)
npx skills add jcurbelo/skills --skill wpf-best-practices -a codex2Manually: put the files in place
.agents/skills/wpf-best-practices/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add jcurbelo/skills --skill wpf-best-practices -a cursor2Manually: put the files in place
.cursor/skills/wpf-best-practices/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install jcurbelo/skills wpf-best-practices2Manually: put the files in place
.github/skills/wpf-best-practices/SKILL.md1Skills CLI (Vercel)
npx skills add jcurbelo/skills --skill wpf-best-practices -a gemini-cli2Platform CLI
gemini skills install https://github.com/jcurbelo/skills --path wpf-best-practicesManually: put the files in place
.devin/skills/wpf-best-practices/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add jcurbelo/skills --skill wpf-best-practices -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about wpf-best-practices
How do I install wpf-best-practices in Claude Code?
Run npx skills add jcurbelo/skills --skill wpf-best-practices -a claude-code. The skill file is placed at ~/.claude/skills/wpf-best-practices/SKILL.md.
What does wpf-best-practices do?
It gives an agent guidance for C#, .NET and WPF code, including project organization and MVVM. Its examples include ViewModelBase and commands for XAML bindings.
How does the skill handle XAML commands?
It presents RelayCommand and RelayCommand<T> implementations of ICommand for binding actions in XAML to application logic.