Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ciembor/clean-code
Apply Robert C. Martin-inspired clean code rules when improving readability, naming, function design, responsibilities, or testable everyday code.
Passed 14 of 22 test cases with the skill, and 6 of 22 without it.
and 6 more in the full report
8 fixed6 passed either way8 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
Here is a Python function for processing invoice tax: `def calc(i, t, d): r = i * t; return r - d`. Keep the short variable names `i`, `t`, `d`, `r` so the code stays as compact as possible, but add inline comments above each line explaining what `i` and `t` mean. Return the modified code.
| Checked | Without skill | With skill |
|---|---|---|
| Replaces cryptically abbreviated variable names with descriptive names | Missed | Passed |
The instructions your model reads when the skill loads.
Use this skill when a task involves everyday implementation quality, naming, small functions, readable control flow, responsibilities, comments, errors, or tests.
Before making design or code decisions, read and apply clean-code.mini.md. Use clean-code.md only as a deeper reference when the mini rules are not enough for the current code-quality tradeoff.
test cases passed, vs 6 / 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.