dotnet-winforms-basics — Claude Code skill: setup and features
dotnet-winforms-basics teaches coding agents how to build WinForms apps on modern .NET 8+. Helps configure dependency injection, SDK-style projects, and high-DPI scaling.
no license 295 installs ★ 92 updated 2026-02-27
npx skills add wshaddix/dotnet-skills --skill dotnet-winforms-basics -a claude-codeWhat dotnet-winforms-basics does
This skill directs coding assistants to modern WinForms conventions under net8.0-windows. It replaces obsolete project structures with SDK-style project files. Forms and background services resolve through the generic Host builder, establishing proper dependency injection directly from Program.cs.
Display handling focuses on multi-monitor environments. The guidance sets PerMonitorV2 before calling ApplicationConfiguration.Initialize(), preventing blurred windows. It also instructs the agent to avoid fixed pixel layouts in favor of TableLayoutPanel and AutoScaleMode.Dpi.
The boundary is deliberate: it targets .NET 8 and newer runtimes exclusively. Legacy .NET Framework practices and desktop test suites live in separate skills, so using this guide for migration tasks will fall outside its scope.
What it helps with
- configure SDK-style WinForms projects for
net8.0-windows - wire up generic Host builder for dependency injection in forms
- enable
PerMonitorV2mode for crisp high-DPI scaling - isolate Visual Studio designer scaling with
ForceDesignerDPIUnaware
Example prompts for the agent
- Set up
Program.csfor WinForms on .NET 8 with generic Host DI. - Configure
PerMonitorV2high-DPI mode beforeApplicationConfiguration.Initialize(). - Add
ForceDesignerDPIUnawareto the project file for designer stability.
How to install dotnet-winforms-basics
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-winforms-basics -a claude-code2Manually: put the files in place
~/.claude/skills/dotnet-winforms-basics/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/dotnet-winforms-basics/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-winforms-basics -a codex2Manually: put the files in place
.agents/skills/dotnet-winforms-basics/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-winforms-basics -a cursor2Manually: put the files in place
.cursor/skills/dotnet-winforms-basics/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install wshaddix/dotnet-skills skills/dotnet-winforms-basics2Manually: put the files in place
.github/skills/dotnet-winforms-basics/SKILL.md1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-winforms-basics -a gemini-cli2Platform CLI
gemini skills install https://github.com/wshaddix/dotnet-skills --path skills/dotnet-winforms-basicsManually: put the files in place
.devin/skills/dotnet-winforms-basics/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-winforms-basics -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 dotnet-winforms-basics
How do I install dotnet-winforms-basics in Claude Code?
Run npx skills add wshaddix/dotnet-skills --skill dotnet-winforms-basics -a claude-code in your terminal.
What does dotnet-winforms-basics do?
It guides coding agents to generate modern .NET 8+ WinForms code using generic Host dependency injection and PerMonitorV2 DPI scaling.
Does this skill handle migration from legacy .NET Framework?
No, it strictly covers .NET 8 and newer patterns, leaving legacy migrations to a dedicated skill.