detect-code-smells | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / detect-code-smells

detect-code-smells

maintained by HomericIntelligence

star 14 account_tree 4 verified_user MIT License
bolt View GitHub

name: detect-code-smells description: "Identify code quality issues and anti-patterns. Use when reviewing code for maintainability problems." mcp_fallback: none category: analysis tier: 2 user-invocable: false

Detect Code Smells

Identify code quality issues, anti-patterns, and maintainability problems that suggest need for refactoring.

When to Use

  • Code review before merging
  • Identifying refactoring priorities
  • Mentoring and code quality improvement
  • Planning technical debt reduction

Quick Reference

# Python code smell detection
pip install pylint radon
pylint --disable=all --enable=convention,refactor module.py
radon cc -a module.py  # Cyclomatic complexity
radon mi -s module.py  # Maintainability index

Workflow

  1. Scan for patterns: Identify common code smell patterns (long functions, duplication, magic numbers)
  2. Check complexity: Measure cyclomatic and cognitive complexity
  3. Evaluate naming: Check for unclear variable/function names
  4. Review structure: Identify violations of SOLID principles
  5. Document findings: List smells with severity and recommendations

Output Format

Code quality report:

  • Code smell type (duplication, long method, magic number, etc.)
  • Location (file:line)
  • Severity (critical/high/medium/low)
  • Explanation of the issue
  • Suggested fix or refactoring approach

References

  • See CLAUDE.md > SOLID principles for design guidance
  • See CLAUDE.md > DRY and KISS principles for quality standards
  • See refactor-code skill for applying fixes

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 14
GitHub Forks 4
Created Mar 2026
Last Updated 3 months ago
tools tools automation tools

Related Skills

specs-gen
chevron_right
glm-coding-agent
chevron_right
creating-pr
chevron_right
writing-skills
chevron_right
reviewing-pr
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.