Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reviews generated or changed code before merge against Clean Code, SOLID, DRY, KISS, YAGNI, and LLM-specific failure-mode checks.
Use this skill ↓45% 77%+32 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 10 of 22 without it.
3 of 3 safety checks passed
Not used yet
Source: Robert C. Martin. The five principles were collected on Uncle Bob's "Principles of OOD" page on objectmentor.com (mirrored at butunclebob.com) and updated on blog.cleancoder.com. Original papers from C++ Report circa 1995–1996.
Definition (Martin 2014, hardened from the original). "A module should be responsible to one, and only one, actor."
Older form: "A class should have only one reason to change."
Source: blog.cleancoder.com — SRP, 2014.
The axis is people. Different stakeholders (Accounting, HR, DBA) want different things from the same class. When their needs change, they edit the same file, conflict, and break each other.
"A class should do one thing." No. SRP is about cohesion around an actor, not method count. A 12-method InvoiceRepository answerable only to the data-access layer satisfies SRP. A 3-method class with one HTTP call, one Jinja render, and one DB write does not.
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.