Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dokhacgiakhoa/clean-code
Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments
Passed 14 of 20 test cases with the skill, and 14 of 20 without it.
and 1 more in the full report
3 fixed12 passed either way4 still failing3 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.
Implement a slugify function in `StringUtils.ts` that converts arbitrary strings into URL-safe slugs.
| Checked | Without skill | With skill |
|---|---|---|
| The response output begins directly with the code implementation | Missed | Passed |
| The response contains no educational narrative explaining regular expressions or slugification concepts | Missed | Passed |
The instructions your model reads when the skill loads.
CRITICAL SKILL - Be concise, direct, and solution-focused.
| Principle | Rule |
|---|---|
| SRP | Single Responsibility - each function/class does ONE thing |
| DRY | Don't Repeat Yourself - extract duplicates, reuse |
| KISS | Keep It Simple - simplest solution that works |
| YAGNI | You Aren't Gonna Need It - don't build unused features |
| Boy Scout | Leave code cleaner than you found it |
| Element | Convention |
|---|---|
| Variables | Reveal intent: userCount not n |
| Functions | Verb + noun: getUserById() not user() |
| Booleans | Question form: isActive, hasPermission, canEdit |
| Constants | SCREAMING_SNAKE: MAX_RETRY_COUNT |
Rule: If you need a comment to explain a name, rename it.
| Rule | Description |
|---|---|
| Small | Max 20 lines, ideally 5-10 |
| One Thing | Does one thing, does it well |
| One Level | One level of abstraction per function |
| Few Args | Max 3 arguments, prefer 0-2 |
| No Side Effects | Don't mutate inputs unexpectedly |
test cases passed, vs 14 / 20 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.