Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add wshaddix/dotnet-skills --skill dotnet-winforms-basics -a claude-code
Open on GitHub

What 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 PerMonitorV2 mode for crisp high-DPI scaling
  • isolate Visual Studio designer scaling with ForceDesignerDPIUnaware

Example prompts for the agent

  • Set up Program.cs for WinForms on .NET 8 with generic Host DI.
  • Configure PerMonitorV2 high-DPI mode before ApplicationConfiguration.Initialize().
  • Add ForceDesignerDPIUnaware to 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-code

2Manually: put the files in place

~/.claude/skills/dotnet-winforms-basics/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dotnet-winforms-basics/

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.

Similar skills

All skills for Frontend and UI →

From the same set24

The whole set →
logging-observability logging-observability adds structured Serilog logging, request correlation, and HTTP request logs for ASP.NET Core Razor Pages. Use it when wiring observability into an app. CX Codex +1 550installs validation-patterns validation-patterns — a skill that tells your agent how to validate data in ASP.NET Core, from attributes to FluentValidation and startup option checks. CX Codex +1 545installs dotnet-domain-modeling dotnet-domain-modeling guides pure C# Domain-Driven Design modeling with entities, aggregate roots, value objects, and domain events, keeping business logic isolated from ORM concerns. CX Codex +1 539installs dotnet-wpf-modern dotnet-wpf-modern — a skill that steers your coding agent through modern WPF: generic host, MVVM Toolkit, Fluent theme, current C# features. CX Codex +1 358installs dotnet-csharp-code-smells dotnet-csharp-code-smells — a C# review skill: the agent catches leaked IDisposable, misused async and DI, suppressed warnings and other anti-patterns while it plans, writes or reviews code. CX Codex +1 180installs dotnet-security-owasp dotnet-security-owasp flags OWASP Top 10 vulnerabilities in .NET solutions and guides safe coding. Useful for reviewing ASP.NET Core endpoints and data queries. CX Codex +1 175installs dotnet-api-security dotnet-api-security is a Claude Code skill that handles authentication and authorization in ASP.NET Core APIs. CX Codex +1 169installs dotnet-csharp-async-patterns dotnet-csharp-async-patterns teaches AI agents proper C# async patterns, stopping common blunders like .Result deadlocks, unhandled fire-and-forget tasks, and dropped cancellation tokens. CX Codex +1 136installs

Project sponsors

Companies that keep this analytics open