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
Three short principles. Often confused. Often applied wrong by AI agents (and humans).
Definition (Hunt & Thomas, The Pragmatic Programmer, verbatim). "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system."
Source: pragprog official DRY excerpt PDF; Wikipedia summary; O'Reilly 97 Things Every Programmer Should Know, Ch. 30.
"Don't have any duplicate code." No. Hunt and Thomas frame DRY as duplication "of knowledge, of intent... expressing the same thing in two different places, possibly in two totally different ways." Two functions that look alike but encode different rules are not a DRY violation. One rule expressed in code + database schema + documentation is.
These are textual signals that probably indicate knowledge duplication, but verify the underlying meaning before refactoring:
Don't extract an abstraction the first time you see duplication. Don't extract on the second. Wait for the third — by then you have enough signal about the real shape of the shared knowledge to abstract correctly. The Rule of 3 is folklore from refactoring practice; the underlying principle (don't abstract too early) is in Fowler's Refactoring (refactoring.com/catalog) and in the wrong-abstraction work below.
From Sandi Metz, "The Wrong Abstraction" (Jan 2016): "duplication is far cheaper than the wrong abstraction."
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.