Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

oop-principles

Sterne4
Forks0
Aktualisiert26. Juni 2026 um 09:05

Evaluate code against Dave Thomas's OO principles, SOLID principles, and the Tell Don't Ask rule. Routes to `design-patterns/` and `solid/` sub-skills. TRIGGER when: class has only static methods; class has a single public method + constructor; code uses GoF pattern names (Decorator/Factory/Strategy/Builder/Command/Observer); class is invalid until setters are called; data class with only constructor + properties; external code reads getters to make decisions (Tell Don't Ask); user asks "is this OOP design smell?", "is this a class design issue?", "is this an OOP anti-pattern?", "should this be a class or a function?", or "why does my code feel procedural?". DO NOT USE when: the smell is at the function/method level (long method, primitive obsession, feature envy on values, etc.) — that is `refactoring`'s domain. Activate here only for *class-shape* issues.

Installation

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

Datei-Explorer
10 Dateien
SKILL.md
readonly