code-smell-detector
Automated detection of code smells and anti-patterns to identify refactoring opportunities
npx skills add a5c-ai/babysitter --skill code-smell-detector --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Code Smell Detector Skill Automated detection of code smells, anti-patterns, and design issues that indicate deeper problems in the codebase. This skill identifies refactoring opportunities and prioritizes them by impact. ## Purpose Enable systematic detection of code smells for: - Refactoring prioritization - Technical debt identification - Code quality improvement - Migration preparation - Design pattern violations ## Capabilities ### 1. Long Method Detection - Identify methods exceeding line thresholds - Analyze parameter counts - Detect high cyclomatic complexity - Suggest extraction candidates ### 2. Large Class Identification - Detect classes with too many responsibilities - Identify god classes - Analyze class cohesion - Suggest decomposition strategies ### 3. Feature Envy Analysis - Find methods using other classes' data excessively - Identify misplaced functionality - Suggest method relocation - Map cross-class dependencies ### 4. Primitive Obsession Detection - Identify overuse of primitives - Find missing value objects - Detect stringly-typed code - Suggest domain type extraction ### 5. Parallel Inheritance Hierarchy - Detect mirrored class hierarchies - Identify inher
- Purpose
- Capabilities
- 1. Long Method Detection
- 2. Large Class Identification
- 3. Feature Envy Analysis
- 4. Primitive Obsession Detection
- 5. Parallel Inheritance Hierarchy
- 6. Shotgun Surgery Detection
- 7. God Class Identification
- Tool Integrations
- Output Schema
- Integration with Migration Processes
- Related Skills
- Related Agents
What does the code-smell-detector skill do?
Automated detection of code smells and anti-patterns to identify refactoring opportunities
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill code-smell-detector --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
