Skip to main content
skill CX Codex

dotnet-solid-principles — Claude Code skill: what it does

dotnet-solid-principles — a skill for Claude Code that applies SOLID, DRY, and SRP principles in .NET projects. Detects C# anti-patterns and suggests specific refactoring steps.

no license 112 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-solid-principles -a claude-code
Open on GitHub

What dotnet-solid-principles does

This skill analyzes code structure to identify violations of SOLID, DRY, and SRP principles. It provides fixes for common anti-patterns like "God Class" or "Fat Controller," guiding developers through class design and interface contract creation.

The agent uses these principles to improve dependency management and class organization. The tool focuses specifically on class and interface logic, delegating architectural patterns and DI container registration to other specialized skills within the wshaddix/dotnet-skills repository.

What it helps with

  • Identify violations of the Single Responsibility Principle
  • Eliminate "God Class" code structures
  • Replace conditional chains with the Strategy pattern
  • Break down bloated controllers into handler classes

Example prompts for the agent

  • Apply SRP to OrderService to decouple validation and database logic.
  • Review OrderController for OCP violations.
  • Refactor this module using SOLID principles via dotnet-solid-principles.

How to install dotnet-solid-principles

1Skills CLI (Vercel)

npx skills add wshaddix/dotnet-skills --skill dotnet-solid-principles -a claude-code

2Manually: put the files in place

~/.claude/skills/dotnet-solid-principles/SKILL.md

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

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about dotnet-solid-principles

How to install dotnet-solid-principles in Claude Code?

Run npx skills add wshaddix/dotnet-skills --skill dotnet-solid-principles -a claude-code. Verify the setup in ~/.claude/skills/dotnet-solid-principles/SKILL.md.

What does dotnet-solid-principles do?

The skill automates code analysis based on SOLID, DRY, and SRP guidelines. It detects C# anti-patterns and suggests refactoring strategies.

What is required to use dotnet-solid-principles?

The skill is part of the dotnet-skills suite. For broader tasks like DI container configuration or architectural patterns, use the related skills from the same repository.

Similar skills

All skills for Code review and refactoring →

From the same set24

The whole set →
dotnet-csharp-dependency-injection dotnet-csharp-dependency-injection guides Microsoft DI in .NET, from service lifetimes and keyed registrations to decoration and hosted workers. CX Codex +1 125installs bootstrap5-ui bootstrap5-ui provides Bootstrap 5.3 layout patterns and component snippets for HTML and ASP.NET Core Razor views. CX Codex +1 122installs dotnet-performance-patterns dotnet-performance-patterns is a Claude Code skill for .NET 8+ architecture patterns that reduce allocations using Span, Memory, and ArrayPool. CX Codex +1 122installs Razor Pages Patterns The Razor Pages Patterns skill gives the agent a fixed set of rules for ASP.NET Core Razor Pages: page layout, PageModel design, binding and validation, form security. Fits projects on .NET 8+ with Razor Pages as the UI. CX Codex +1 121installs dotnet-integration-testing The dotnet-integration-testing Claude Code skill covers .NET integration tests against real infrastructure. Ask for API test setup with an in-process server or a database running in Docker. CX Codex +1 111installs signalr-integration The signalr-integration skill provides SignalR patterns for ASP.NET Core Razor Pages, including hubs and client connections. Use it when adding live notifications or order updates. CX Codex +1 107installs dotnet-blazor-patterns The dotnet-blazor-patterns Claude Code skill covers Blazor project setup, hosting choices, and render modes. It applies to routing, prerendering, and streaming-render tasks. CX Codex +1 104installs dotnet-winui The dotnet-winui Claude Code skill supports WinUI 3 app development. It covers project setup, XAML patterns, deployment choices, and moving apps from UWP. CX Codex +1 103installs

Project sponsors

Companies that keep this analytics open