Install any skill in seconds. Free to start, no credit card required.
Get Started Free →athola/code-quality-principles
Applies KISS, YAGNI, and SOLID principles for clean code with reduced complexity.
Passed 23 of 23 test cases with the skill, and 19 of 23 without it.
and 3 more in the full report
4 fixed19 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
I wrote a Python user management class that handles database records, sends welcome emails, and exports PDF activity reports. Could you conduct a code quality review using foundational software design principles? Please highlight any misplaced responsibilities or structural design smells, provide refactored code, and explain how to handle trade-offs when simplicity conflicts with abstraction principles.
| Checked | Without skill | With skill |
|---|---|---|
| Recommends checking file line counts with wc -l against a 500 line god class threshold | Missed | Passed |
| States that KISS takes precedence over SOLID abstraction in smaller or less complex projects | Passed | Passed |
| Notes that single implementation abstractions should be avoided unless serving as testing mock boundaries | Passed | Passed |
The instructions your model reads when the skill loads.
Guidance on KISS, YAGNI, and SOLID principles with language-specific examples.
Principle: Avoid unnecessary complexity. Prefer obvious solutions over clever ones.
| Prefer | Avoid |
|---|---|
| Simple conditionals | Complex regex for simple checks |
| Explicit code | Magic numbers/strings |
| Standard patterns | Clever shortcuts |
| Direct solutions | Over-abstracted layers |
# Bad: Overly clever one-liner
users = [u for u in (db.get(id) for id in ids) if u and u.active and not u.banned]
# Good: Clear and readable
users = []
for user_id in ids:
user = db.get(user_id)
if user and user.active and not user.banned:
users.append(user)
test cases passed, vs 19 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.