Clean Code Oop

Write and refactor clean, object-oriented, maintainable code by applying SOLID properly, with one deliberate carve-out — drop the extreme reading of SRP that demands one class per method or action. Classes are cohesive and grouped by domain concept (one AuthenticationController holding login/register/logout/verify); OCP, LSP, ISP, and DIP are applied in full; and code stays cleanly separated into Request Validation, DTOs, Services, Repositories, and Response/Resource layers, depending on abstractions at real seams. Use this skill WHENEVER the user asks to write, design, scaffold, refactor, clean up, or review code with real structure — controllers, services, business logic, API endpoints, or app modules — even if they never say "clean code", "OOP", or "SOLID". Language-agnostic; examples cover PHP/Laravel, TypeScript/NestJS, Python/FastAPI, Java/Spring, C#/.NET, Go, Rust, Ruby on Rails, and Dart/Flutter.

bajelanmehran 26a4d39 12 files · 53.0 KB Updated

File contents

bajelanmehran/clean-code-oop/tree/main/skills/clean-code-oop commit 26a4d394cc

Frequently asked questions

npx skillmds@latest add bajelanmehran/clean-code-oop