# Detect Code Smells

> Find common code smells and suggest small fixes without changing behavior.

- Skill: `dvasyliev/detect-code-smells` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dvasyliev/detect-code-smells`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvasyliev/detect-code-smells/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dvasyliev (https://skillmd.com/u/dvasyliev)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dvasyliev/detect-code-smells

---


# Skill: Detect Code Smell

## Overview

This skill checks code for common problems and suggests simple improvements.

## Instructions

- Review the files provided (or only changed files if a diff is provided).
- Find code smells like:
  - long functions/components
  - duplicated code
  - unclear names
  - too much logic in one file
  - deep nesting and complex conditions
  - unused code
- Do not change behavior.
- Suggest small, safe fixes.

## Expected output

- Short summary
- List of smells (file + where)
- 3–7 fix suggestions

