detect-code-smells

Installation
SKILL.md

Detect Code Smells

Detect common code smells and anti-patterns in code, providing immediate feedback on quality issues.

Code Smell Categories

1. Complexity Smells

  • Long Method: Functions/methods > 50 lines
  • Long Parameter List: > 4 parameters
  • Complex Conditionals: Deeply nested if/else, complex boolean expressions
  • High Cyclomatic Complexity: > 10 branches
  • Deep Nesting: > 4 levels of indentation

2. Duplication Smells

  • Duplicate Code: Repeated code blocks
  • Similar Functions: Functions with nearly identical logic
  • Magic Numbers: Hardcoded numbers without explanation
  • String Duplication: Repeated string literals
Related skills

More from kjgarza/marketplace-claude

Installs
10
GitHub Stars
2
First Seen
Jan 27, 2026