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
npx skills add wshaddix/dotnet-skills --skill dotnet-solid-principles -a claude-codeWhat 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
OrderServiceto decouple validation and database logic. - Review
OrderControllerfor 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-code2Manually: put the files in place
~/.claude/skills/dotnet-solid-principles/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/dotnet-solid-principles/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-solid-principles -a codex2Manually: put the files in place
.agents/skills/dotnet-solid-principles/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-solid-principles -a cursor2Manually: put the files in place
.cursor/skills/dotnet-solid-principles/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install wshaddix/dotnet-skills skills/dotnet-solid-principles2Manually: put the files in place
.github/skills/dotnet-solid-principles/SKILL.md1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-solid-principles -a gemini-cli2Platform CLI
gemini skills install https://github.com/wshaddix/dotnet-skills --path skills/dotnet-solid-principlesManually: put the files in place
.devin/skills/dotnet-solid-principles/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-solid-principles -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-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.