Install any skill in seconds. Free to start, no credit card required.
Get Started Free →arabelatso/design-smell-detector
Identify design quality issues in code including high coupling, low cohesion, God classes, long methods, and other code smells.
Passed 22 of 24 test cases with the skill, and 16 of 24 without it.
and 4 more in the full report
6 fixed16 passed either way2 still failing0 broke1 errored
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
During code review, a developer wrote a 55-line helper function in utils/helpers.py. The team is debating whether this exceeds the maximum line threshold for a long method smell. What is the line-of-code limit for methods in this detector script?
| Checked | Without skill | With skill |
|---|---|---|
| States that the Long Method threshold is greater than 50 lines of code | Missed | Passed |
The instructions your model reads when the skill loads.
Identify and address design quality issues in code through automated smell detection and refactoring guidance.
# Analyze a single file
python scripts/detect_smells.py src/app.py
# Analyze entire directory
python scripts/detect_smells.py src/
# Output as JSON
python scripts/detect_smells.py src/ --format json
Found 5 design smell(s): 1 critical, 3 major, 1 minor
CRITICAL ISSUES:
🔴 src/services.py:45 - God Class
Class 'UserManager' has 25 methods (threshold: 20)
💡 Split into multiple smaller, focused classes
MAJOR ISSUES:
🟠 src/models.py:120 - Low Cohesion
Class 'Order' has low cohesion (score: 0.25)
💡 Group related methods/attributes or split class
🟠 src/utils.py:89 - Long Method
Method 'process_order' has 67 lines (threshold: 50)
💡 Extract smaller methods or refactor
test cases passed, vs 16 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.