Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wondelai/clean-code
Write readable, maintainable code through disciplined naming, small functions, and clean error handling.
Passed 20 of 22 test cases with the skill, and 17 of 22 without it.
and 1 more in the full report
3 fixed17 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
While fixing a small bug in a legacy file, a developer notices several poorly named local variables in adjacent functions. What team practice governs whether to fix them during this PR?
| Checked | Without skill | With skill |
|---|---|---|
| The response applies the Boy Scout Rule to leave the modified code cleaner than found. | Missed | Passed |
The instructions your model reads when the skill loads.
A disciplined approach to writing code that communicates intent, minimizes surprises, and welcomes change. Apply these principles when writing new code, reviewing pull requests, refactoring legacy systems, or advising on code quality.
Code is read far more often than it is written — optimize for the reader. The read-to-write ratio is well over 10:1, so every naming choice, function boundary, and formatting decision either adds clarity or adds cost. Clean code reads like well-written prose: names reveal intent, functions tell a story one step at a time, and the Boy Scout Rule applies — always leave the code cleaner than you found it.
Goal: 10/10. Rate any code 0-10 against the principles below. Report the current score and the specific improvements needed to reach 10/10.
Six disciplines for writing code that communicates clearly and adapts to change:
Core concept: Names should reveal intent, avoid disinformation, and make the code read like prose. If a name requires a comment to explain it, the name is wrong.
Why it works: Names are the most pervasive form of documentation — a well-chosen name eliminates the need to read the implementation; a poor one forces every reader to reverse-engineer intent.
Key insights:
fetch, retrieve, and getCode applications:
| Context | Pattern | Example |
|---|
test cases passed, vs 17 / 22 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.