Skip to content
Back to skills

Detect Code Smells

ASecurity

Identify code quality issues and anti-patterns. Use when reviewing code for maintainability problems.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
developmentpythongobashrefactoring

Works with

  • mcp

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill detect-code-smells --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Detect Code Smells?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Detect Code Smells
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-detect-code-smells/badge)](https://www.skillsdirectory.com/skills/majiayu000-detect-code-smells)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

```bash
# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.