Install any skill in seconds. Free to start, no credit card required.
Get Started Free →asymmetric-al/clean-code
Applies principles from Robert C. Martin's 'Clean Code'.
Passed 21 of 23 test cases with the skill, and 19 of 23 without it.
3 fixed18 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
In a Go microservice, a developer named a method `func (s *Store) ProductData(id string) Product` and another `func (s *Store) Page(id string)`. Rename these methods according to clean code naming conventions.
| Checked | Without skill | With skill |
|---|---|---|
| The method names are changed to start with verbs. | Missed | Passed |
The instructions your model reads when the skill loads.
This skill embodies the principles of "Clean Code" by Robert C. Martin (Uncle Bob). Use it to transform "code that works" into "code that is clean."
"Code is clean if it can be read, and enhanced by a developer other than its original author." — Grady Booch
Use this skill when:
elapsedTimeInDays instead of d.accountList if it's actually a Map.ProductData vs ProductInfo.genymdhms.Customer, WikiPage). Avoid Manager, Data.postPayment, deletePage).isPasswordValid is better than check.
test cases passed, vs 19 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.