solid-principles-ai-kit

Community

Refactor .NET code to be cleaner and safer.

Authorducthang-hub
Version1.0.0
Installs0

System Documentation

What problem does it solve?

SOLID principles help you fix tangled object-oriented designs by making responsibilities clear, reducing coupling, and improving extensibility without repeatedly breaking existing code.

Core Features & Use Cases

  • SRP (Single Responsibility): Spot god classes and methods doing multiple jobs, then split responsibilities into cohesive services and collaborators.
  • OCP (Open/Closed): Replace fragile if/else or “modify existing code” patterns with extension via abstractions (e.g., strategies, polymorphism).
  • LSP/ISP/DIP (Substitution, Segregation, Inversion): Improve inheritance correctness, avoid fat interfaces with unneeded methods, and inject dependencies through interfaces to make code easier to test and mock.
  • Use Cases: Refactoring bloated services, designing feature growth without regressions, setting up .NET dependency injection correctly, and stabilizing unit tests that are brittle and hard to mock.

Quick Start

Ask the AI: “Refactor my C# class that does too many things using SOLID (SRP, OCP, LSP, ISP, DIP). Suggest an improved design and show how I should register dependencies with .NET DI, then outline how to write more reliable unit tests for it.”

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: solid-principles-ai-kit
Download link: https://github.com/ducthang-hub/nw-ai-kit/archive/main.zip#solid-principles-ai-kit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.